Gyp changes for ninja iOS build.

Various tweaks to make ninja happy with our gyp files.
ninja iOS builds don't CODE_SIGN yet.
ninja only supports i386/simulator for now.
pass parent_generator to mac_build.gypi for iOS sub-ninja builds

BUG=236517

Review URL: https://chromiumcodereview.appspot.com/14577007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198084 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
justincohen@google.com 2013-05-03 11:06:40 +00:00
Родитель a629a3a4b2
Коммит e8e7289940
3 изменённых файлов: 30 добавлений и 13 удалений

Просмотреть файл

@ -4032,17 +4032,22 @@
},
},
},
'xcode_settings': {
'conditions': [
['chromium_ios_signing', {
# iOS SDK wants everything for device signed.
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
}, {
'CODE_SIGNING_REQUIRED': 'NO',
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
}],
],
},
'conditions': [
# TODO(justincohen): ninja builds don't support signing yet.
['"<(GENERATOR)"!="ninja"', {
'xcode_settings': {
'conditions': [
['chromium_ios_signing', {
# iOS SDK wants everything for device signed.
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
}, {
'CODE_SIGNING_REQUIRED': 'NO',
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
}],
],
},
}],
],
}],
], # target_conditions
}, # target_defaults
@ -4391,7 +4396,14 @@
['OS=="ios"', {
'conditions': [
['ios_sdk_path==""', {
'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot
'conditions': [
# TODO(justincohen): Ninja only supports simulator for now.
['"<(GENERATOR)"=="ninja"', {
'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot
}, {
'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot
}],
],
}, {
'SDKROOT': '<(ios_sdk_path)', # -isysroot
}],

Просмотреть файл

@ -39,6 +39,10 @@
# }
{
'variables': {
'variables': {
'parent_generator%': '<(GENERATOR)',
},
'parent_generator%': '<(parent_generator)',
# Common ninja command line flags.
'ninja_cmd': [
# Bounce through clean_env to clean up the environment so things
@ -67,6 +71,7 @@
'-Dios_mac_build=1',
# Pass through the Mac SDK version.
'-Dmac_sdk=<(mac_sdk)',
'-Dparent_generator=<(parent_generator)'
],
# Rerun gyp for each of the projects needed. This is what actually

Просмотреть файл

@ -167,7 +167,7 @@ def get_target_build_dir(build_tool, target, is_iphone=False):
target + ('-iphoneos' if is_iphone else ''))
elif build_tool == 'make':
ret = os.path.join(SRC_DIR, 'out', target)
elif build_tool == 'ninja':
elif build_tool in ['ninja', 'ninja-ios']:
ret = os.path.join(SRC_DIR, 'out', target)
elif build_tool in ['msvs', 'vs', 'ib']:
ret = os.path.join(SRC_DIR, 'build', target)