diff options
author | Tomasz Olszak <olszak.tomasz@gmail.com> | 2015-02-26 15:41:35 +0100 |
---|---|---|
committer | Tomasz Olszak <olszak.tomasz@gmail.com> | 2015-02-26 15:41:35 +0100 |
commit | f92494471b41bdbe66532ed5837e1e825671a3a7 (patch) | |
tree | 92f1327507a1864a36489cccba1b06b01f9470cd /mkspecs | |
parent | b756e6e57882751e130950ef838149ebfcd11e2d (diff) | |
download | qtbase-f92494471b41bdbe66532ed5837e1e825671a3a7.tar.gz qtbase-f92494471b41bdbe66532ed5837e1e825671a3a7.tar.bz2 qtbase-f92494471b41bdbe66532ed5837e1e825671a3a7.zip |
Added handling of Tizen 2.3 Mobile cross-compilation and deployment.
Mkspec and configure refactored similar to Android.
Change-Id: I311af56ca9060d933905b876975e83113c685270
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/devices/common/linux_tizen_device_pre.conf | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/mkspecs/devices/common/linux_tizen_device_pre.conf b/mkspecs/devices/common/linux_tizen_device_pre.conf index 2b2c73fb0a..e3f0ffff22 100644 --- a/mkspecs/devices/common/linux_tizen_device_pre.conf +++ b/mkspecs/devices/common/linux_tizen_device_pre.conf @@ -1,13 +1,44 @@ #tizen common mkspec -include(linux_device_pre.conf) +TIZEN_SDK_ROOT = $$(TIZEN_SDK_ROOT) +TIZEN_TOOLCHAIN_PREFIX = $$(TIZEN_TOOLCHAIN_PREFIX) +TIZEN_TOOLCHAIN_VERSION = $$(TIZEN_TOOLCHAIN_VERSION) +TIZEN_SYSROOT = $$(TIZEN_SYSROOT) + +!isEmpty(TIZEN_SDK_ROOT):!isEmpty(TIZEN_TOOLCHAIN_PREFIX):!isEmpty(TIZEN_TOOLCHAIN_VERSION) { + + isEmpty(TIZEN_SYSROOT): error("Tizen Compiler defined but no Tizen sysroot defined. Please define Tizen sysroot in TIZEN_SYSROOT env variable") -!isEmpty(CROSS_COMPILE) { - QMAKE_INCDIR = $$[QT_SYSROOT]/usr/include - QMAKE_LIBDIR = $$[QT_SYSROOT]/lib - QMAKE_LIBDIR += $$[QT_SYSROOT]/usr/lib + CROSS_COMPILE = $$TIZEN_SDK_ROOT/tools/$$TIZEN_TOOLCHAIN_PREFIX-gcc-$$TIZEN_TOOLCHAIN_VERSION/bin/$$TIZEN_TOOLCHAIN_PREFIX- } +include(linux_device_pre.conf) + +!isEmpty(TIZEN_SDK_ROOT):!isEmpty(TIZEN_TOOLCHAIN_PREFIX):!isEmpty(TIZEN_TOOLCHAIN_VERSION) { + + # modifications to parameters set by linux_device_pre.conf + QMAKE_LFLAGS += --sysroot=$$TIZEN_SYSROOT + QMAKE_CFLAGS += --sysroot=$$TIZEN_SYSROOT + QMAKE_CXXFLAGS += --sysroot=$$TIZEN_SYSROOT + + # TIZEN_ADDITIONAL_INCLUDES and TIZEN_ADDITIONAL_LIBS may be undefined + QMAKE_INCDIR += \ + $$TIZEN_SYSROOT/usr/include \ + $$TIZEN_SYSROOT/usr/include/dbus-1.0 \ + $$TIZEN_SYSROOT/usr/include/fontconfig \ + $$TIZEN_SYSROOT/usr/include/freetype2 \ + $$TIZEN_SYSROOT/usr/include/appfw \ + $$TIZEN_SYSROOT/usr/lib/dbus-1.0/include \ + $$TIZEN_SYSROOT/usr/include/appfw \ + $$TIZEN_SYSROOT/usr/include/system \ + $$TIZEN_SYSROOT/usr/include/dlog \ + $$TIZEN_ADDITIONAL_INCLUDES + + QMAKE_LIBDIR += \ + $$TIZEN_SYSROOT/lib \ + $$TIZEN_SYSROOT/usr/lib \ + $$TIZEN_ADDITIONAL_LIBS +} QMAKE_PLATFORM = tizen $$QMAKE_PLATFORM DEFINES += Q_OS_LINUX_TIZEN
\ No newline at end of file |