summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/proxypac
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2021-02-25 18:45:10 +0100
committerMichal Klocek <michal.klocek@qt.io>2021-05-22 14:10:14 +0200
commit68de090b1fce66f36743d31f384398af8c140a1d (patch)
treefd1d56a9e4b9d7503b586bc8345eb5c027535b2e /tests/auto/widgets/proxypac
parentbd2e13ef62510b547cc07729cfa024a75987bee2 (diff)
Refactor and create gn target
Refactor the gn handling and add: * the gn target for encapsulating resources needed to run chromium builds * the support for SOURCES, INCLUDES, DEFINES, COMPILE OPTIONS. * the multi config support for cmake and enable debug, release builds * CONDITION evaluation for the gn target and the gn arg list * the linux specific config and all missing source sets * use REALPATH instead of ABSOLUTE, this fixes missing drive letter on windows Task-number: QTBUG-91760 Change-Id: Ib283d8ab817ff36ee9c94c2b8f44785709c45258 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/widgets/proxypac')
-rw-r--r--tests/auto/widgets/proxypac/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/widgets/proxypac/CMakeLists.txt b/tests/auto/widgets/proxypac/CMakeLists.txt
index 25d754cf7..6a20bc95a 100644
--- a/tests/auto/widgets/proxypac/CMakeLists.txt
+++ b/tests/auto/widgets/proxypac/CMakeLists.txt
@@ -9,7 +9,8 @@ qt_internal_add_test(tst_proxypac_file
)
if(WIN32)
- set(fileEnvArg "--proxy-pac-url=\"file:///${CMAKE_CURRENT_LIST_DIR}/proxy.pac\"")
+ get_filename_component(SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
+ set(fileEnvArg "--proxy-pac-url=\"file:///${SOURCE_DIR}/proxy.pac\"")
elseif(boot2qt)
set(fileEnvArg "--single-process --no-sandbox --proxy-pac-url=\"file://${CMAKE_CURRENT_LIST_DIR}/proxy.pac\"")
else()