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
12
common.gypi
12
common.gypi
|
@ -4032,6 +4032,9 @@
|
|||
},
|
||||
},
|
||||
},
|
||||
'conditions': [
|
||||
# TODO(justincohen): ninja builds don't support signing yet.
|
||||
['"<(GENERATOR)"!="ninja"', {
|
||||
'xcode_settings': {
|
||||
'conditions': [
|
||||
['chromium_ios_signing', {
|
||||
|
@ -4044,6 +4047,8 @@
|
|||
],
|
||||
},
|
||||
}],
|
||||
],
|
||||
}],
|
||||
], # target_conditions
|
||||
}, # target_defaults
|
||||
}], # OS=="ios"
|
||||
|
@ -4391,7 +4396,14 @@
|
|||
['OS=="ios"', {
|
||||
'conditions': [
|
||||
['ios_sdk_path==""', {
|
||||
'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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче