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:
Родитель
a629a3a4b2
Коммит
e8e7289940
36
common.gypi
36
common.gypi
|
@ -4032,17 +4032,22 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'xcode_settings': {
|
'conditions': [
|
||||||
'conditions': [
|
# TODO(justincohen): ninja builds don't support signing yet.
|
||||||
['chromium_ios_signing', {
|
['"<(GENERATOR)"!="ninja"', {
|
||||||
# iOS SDK wants everything for device signed.
|
'xcode_settings': {
|
||||||
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
|
'conditions': [
|
||||||
}, {
|
['chromium_ios_signing', {
|
||||||
'CODE_SIGNING_REQUIRED': 'NO',
|
# iOS SDK wants everything for device signed.
|
||||||
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
|
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
|
||||||
}],
|
}, {
|
||||||
],
|
'CODE_SIGNING_REQUIRED': 'NO',
|
||||||
},
|
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
|
||||||
|
}],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}],
|
||||||
|
],
|
||||||
}],
|
}],
|
||||||
], # target_conditions
|
], # target_conditions
|
||||||
}, # target_defaults
|
}, # target_defaults
|
||||||
|
@ -4391,7 +4396,14 @@
|
||||||
['OS=="ios"', {
|
['OS=="ios"', {
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['ios_sdk_path==""', {
|
['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
|
'SDKROOT': '<(ios_sdk_path)', # -isysroot
|
||||||
}],
|
}],
|
||||||
|
|
|
@ -39,6 +39,10 @@
|
||||||
# }
|
# }
|
||||||
{
|
{
|
||||||
'variables': {
|
'variables': {
|
||||||
|
'variables': {
|
||||||
|
'parent_generator%': '<(GENERATOR)',
|
||||||
|
},
|
||||||
|
'parent_generator%': '<(parent_generator)',
|
||||||
# Common ninja command line flags.
|
# Common ninja command line flags.
|
||||||
'ninja_cmd': [
|
'ninja_cmd': [
|
||||||
# Bounce through clean_env to clean up the environment so things
|
# Bounce through clean_env to clean up the environment so things
|
||||||
|
@ -67,6 +71,7 @@
|
||||||
'-Dios_mac_build=1',
|
'-Dios_mac_build=1',
|
||||||
# Pass through the Mac SDK version.
|
# Pass through the Mac SDK version.
|
||||||
'-Dmac_sdk=<(mac_sdk)',
|
'-Dmac_sdk=<(mac_sdk)',
|
||||||
|
'-Dparent_generator=<(parent_generator)'
|
||||||
],
|
],
|
||||||
|
|
||||||
# Rerun gyp for each of the projects needed. This is what actually
|
# 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 ''))
|
target + ('-iphoneos' if is_iphone else ''))
|
||||||
elif build_tool == 'make':
|
elif build_tool == 'make':
|
||||||
ret = os.path.join(SRC_DIR, 'out', target)
|
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)
|
ret = os.path.join(SRC_DIR, 'out', target)
|
||||||
elif build_tool in ['msvs', 'vs', 'ib']:
|
elif build_tool in ['msvs', 'vs', 'ib']:
|
||||||
ret = os.path.join(SRC_DIR, 'build', target)
|
ret = os.path.join(SRC_DIR, 'build', target)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче