aboutsummaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-10-09 11:40:25 +0200
committerRobert Griebl <robert.griebl@pelagicore.com>2017-10-09 12:27:50 +0000
commit24ce34aa33a156d95b1e4fe20234afd829b710f6 (patch)
treea07805a6768bfcfcd961c7d545fbe1d59dd9751a /mkspecs
parente69d49d15d8414bc60d83e66ccf6fee4ddb7408d (diff)
Fix build for cross-compiling to android from windows
The ivigenerator qmake feature needs to check the host architecture instead of the target architecture. Change-Id: I8f2357c84dadf237408a8c472f4604a04c265eea Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/ivigenerator.prf10
1 files changed, 5 insertions, 5 deletions
diff --git a/mkspecs/features/ivigenerator.prf b/mkspecs/features/ivigenerator.prf
index b7a3991..6dcb53d 100644
--- a/mkspecs/features/ivigenerator.prf
+++ b/mkspecs/features/ivigenerator.prf
@@ -19,7 +19,7 @@ isEmpty(QFACE_SOURCES): error("QFACE_SOURCES must be set!")
}
# See the win32 section, why this is needed
-win32:!contains(CONFIG, debug_and_release) {
+equals(QMAKE_HOST.os, Windows):!contains(CONFIG, debug_and_release) {
error("The ivigenerator works only in the debug_and_release configuration on windows")
}
@@ -31,7 +31,7 @@ QFACE_YAML = $$QFACE_ABS_PWD/$${QFACE_BASE_NAME}.yaml
OTHER_FILES += $$QFACE_FILE
# The 'click' library used by the generator needs to have a utf8 locale setup.
-win32: ENV = chcp 65001 &&
+equals(QMAKE_HOST.os, Windows): ENV = chcp 65001 &&
else: ENV = LC_ALL="en_US.UTF-8"
# Detect whether we are using the feature inside the qtivi repository
@@ -45,11 +45,11 @@ QTEST_ENVIRONMENT = $$upper($$(QTEST_ENVIRONMENT))
!isEmpty(QTIVI_BUILD_ROOT):!equals(QTEST_ENVIRONMENT, CI):!qtConfig(system-ivigenerator) {
VIRTUALENV_PATH = $$INTERNAL_VIRTUALENV_PATH
IVI_GENERATOR_PATH = $$QTIVI_ROOT/src/tools/ivigenerator
- win32: ENV += set IVIGENERATOR_CONFIG="$$shell_path($$QTIVI_BUILD_ROOT/src/tools/ivigenerator/.config)" &&
+ equals(QMAKE_HOST.os, Windows): ENV += set IVIGENERATOR_CONFIG="$$shell_path($$QTIVI_BUILD_ROOT/src/tools/ivigenerator/.config)" &&
else: ENV += IVIGENERATOR_CONFIG="$$shell_path($$QTIVI_BUILD_ROOT/src/tools/ivigenerator/.config)"
}
-win32: VIRTUALENV_PYTHON = $$VIRTUALENV_PATH/Scripts/python.exe
+equals(QMAKE_HOST.os, Windows): VIRTUALENV_PYTHON = $$VIRTUALENV_PATH/Scripts/python.exe
else: VIRTUALENV_PYTHON = $$VIRTUALENV_PATH/bin/python
IVI_GENERATOR = $$VIRTUALENV_PYTHON $$IVI_GENERATOR_PATH/generate.py
@@ -136,7 +136,7 @@ QMAKE_EXTRA_TARGETS += Makefile qface_sources
# where we can envorce the run of the generator and qmake.
# Afterwards the sub makefiles are read (Makefile.debug/release), which have been
# regenerated before starting NMAKE on them.
-win32 {
+equals(QMAKE_HOST.os, Windows) {
qmake.depends = $$relative_path($$PRI, $$OUT_PWD)
debug.depends = qmake