diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-06-26 19:46:17 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-07-01 12:34:50 +0000 |
commit | 6f9713a77c86b448e532d0210754619bab3f8dfd (patch) | |
tree | 7b7251e4a54ae6ba7b902078917cdb0f5d3d56fc /examples | |
parent | ddfa9a70ad02bc94d3178912b520b86506f9c08c (diff) |
Fix compiling with project.withExamples:true on Mac
First, if qbs.targetPlatform is set, it is desired to use a
corresponding architecture (armv7 or arm64); otherwise x86_64
architecture is used.
Second, when building in Qt Creator, xcode module can't be found (due to
different profile settings) and sysroot is not set to point to the
iPhoneOS.sdk which leads to unability to find some frameworks. Disable
this example when using QtC.
Change-Id: I9fe413e6feb8fe7cfc6ff2e58323b81d8bf06839
Reviewed-by: Qbs CI Bot <travis-bot@weickelt.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cocoa-touch-application/CocoaTouchApplication.qbs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/cocoa-touch-application/CocoaTouchApplication.qbs b/examples/cocoa-touch-application/CocoaTouchApplication.qbs index f8db6768f..cf0a273d5 100644 --- a/examples/cocoa-touch-application/CocoaTouchApplication.qbs +++ b/examples/cocoa-touch-application/CocoaTouchApplication.qbs @@ -52,11 +52,13 @@ import qbs 1.0 CppApplication { + Depends { name: "xcode"; required: false } Depends { condition: product.condition; name: "ib" } - condition: qbs.hostOS.contains("macos") + condition: qbs.hostOS.contains("macos") && xcode.present name: "Cocoa Touch Application" qbs.targetPlatform: "ios" + qbs.architecture: "arm64" cpp.useObjcPrecompiledHeader: true cpp.minimumIosVersion: "8.0" |