1 # Copyright (c) 2014 Google Inc. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 { 5 'make_global_settings': [ 6 ['CC', '/usr/bin/clang'], 7 ], 8 'targets': [ 9 # This target will not be built, but is here so that ninja Xcode emulation 10 # understand this is a multi-platform (ios + mac) build. 11 { 12 'target_name': 'TestDummy', 13 'product_name': 'TestDummy', 14 'toolsets': ['target'], 15 'type': 'executable', 16 'mac_bundle': 1, 17 'sources': [ 18 'tool_main.cc', 19 ], 20 'xcode_settings': { 21 'SDKROOT': 'iphonesimulator', # -isysroot 22 'TARGETED_DEVICE_FAMILY': '1,2', 23 'IPHONEOS_DEPLOYMENT_TARGET': '7.0', 24 }, 25 }, 26 { 27 'target_name': 'TestHost', 28 'product_name': 'TestHost', 29 'toolsets': ['host'], 30 'type': 'executable', 31 'mac_bundle': 0, 32 'sources': [ 33 'tool_main.cc', 34 ], 35 'xcode_settings': { 36 'SDKROOT': 'macosx', 37 'ARCHS': [ 38 '$(ARCHS_STANDARD)', 39 'x86_64', 40 ], 41 'VALID_ARCHS': [ 42 'x86_64', 43 ], 44 } 45 } 46 ], 47 } 48