Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: build/common.gypi

Issue 15075006: Basic device support for ninja iOS builds. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove ARCHS for xcode builds Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 4143 matching lines...) Expand 10 before | Expand all | Expand 10 after
4154 '-Wno-c++11-narrowing', 4154 '-Wno-c++11-narrowing',
4155 '-Wno-reserved-user-defined-literal', 4155 '-Wno-reserved-user-defined-literal',
4156 ], 4156 ],
4157 }, 4157 },
4158 'target_conditions': [ 4158 'target_conditions': [
4159 ['_toolset=="host"', { 4159 ['_toolset=="host"', {
4160 'xcode_settings': { 4160 'xcode_settings': {
4161 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot 4161 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
4162 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', 4162 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
4163 }, 4163 },
4164 'conditions': [
4165 ['"<(GENERATOR)"!="xcode"', {
4166 'xcode_settings': { 'ARCHS': [ 'x86_64' ] },
4167 }],
4168 ],
4164 }], 4169 }],
4165 ['_toolset=="target"', { 4170 ['_toolset=="target"', {
4166 'xcode_settings': { 4171 'xcode_settings': {
4167 # This section should be for overriding host settings. But, 4172 # This section should be for overriding host settings. But,
4168 # since we can't negate the iphone deployment target above, we 4173 # since we can't negate the iphone deployment target above, we
4169 # instead set it here for target only. 4174 # instead set it here for target only.
4170 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', 4175 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)',
4171 }, 4176 },
4177 'conditions': [
4178 ['target_arch=="armv7" and "<(GENERATOR)"!="xcode"', {
4179 'xcode_settings': { 'ARCHS': [ 'armv7' ]},
4180 }, {
4181 'xcode_settings': { 'ARCHS': [ 'i386' ] },
4182 }],
4183 ],
4172 }], 4184 }],
4173 ['_type=="executable"', { 4185 ['_type=="executable"', {
4174 'configurations': { 4186 'configurations': {
4175 'Release_Base': { 4187 'Release_Base': {
4176 'xcode_settings': { 4188 'xcode_settings': {
4177 'DEPLOYMENT_POSTPROCESSING': 'YES', 4189 'DEPLOYMENT_POSTPROCESSING': 'YES',
4178 'STRIP_INSTALLED_PRODUCT': 'YES', 4190 'STRIP_INSTALLED_PRODUCT': 'YES',
4179 }, 4191 },
4180 }, 4192 },
4181 'Debug_Base': { 4193 'Debug_Base': {
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
4604 }, { 4616 }, {
4605 'SDKROOT': '<(mac_sdk_path)', # -isysroot 4617 'SDKROOT': '<(mac_sdk_path)', # -isysroot
4606 }], 4618 }],
4607 ], 4619 ],
4608 }], 4620 }],
4609 ['OS=="ios"', { 4621 ['OS=="ios"', {
4610 'conditions': [ 4622 'conditions': [
4611 ['ios_sdk_path==""', { 4623 ['ios_sdk_path==""', {
4612 'conditions': [ 4624 'conditions': [
4613 # TODO(justincohen): Ninja only supports simulator for now. 4625 # TODO(justincohen): Ninja only supports simulator for now.
4614 ['"<(GENERATOR)"=="ninja"', { 4626 ['"<(GENERATOR)"=="xcode" or ("<(GENERATOR)"=="ninja" and target_a rch=="armv7")', {
4627 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot
4628 }, {
4615 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot 4629 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot
4616 }, {
4617 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot
4618 }], 4630 }],
4619 ], 4631 ],
4620 }, { 4632 }, {
4621 'SDKROOT': '<(ios_sdk_path)', # -isysroot 4633 'SDKROOT': '<(ios_sdk_path)', # -isysroot
4622 }], 4634 }],
4623 ], 4635 ],
4624 }], 4636 }],
4625 ['OS=="ios"', { 4637 ['OS=="ios"', {
4626 # Just build armv7, until armv7s is correctly tested. 4638 # Just build armv7, until armv7s is correctly tested.
4627 'VALID_ARCHS': 'armv7 i386', 4639 'VALID_ARCHS': 'armv7 i386',
(...skipping 14 matching lines...) Expand all
4642 # settings in target dicts. SYMROOT is a special case, because many other 4654 # settings in target dicts. SYMROOT is a special case, because many other
4643 # Xcode variables depend on it, including variables such as 4655 # Xcode variables depend on it, including variables such as
4644 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4656 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4645 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4657 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4646 # files to appear (when present) in the UI as actual files and not red 4658 # files to appear (when present) in the UI as actual files and not red
4647 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4659 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4648 # and therefore SYMROOT, needs to be set at the project level. 4660 # and therefore SYMROOT, needs to be set at the project level.
4649 'SYMROOT': '<(DEPTH)/xcodebuild', 4661 'SYMROOT': '<(DEPTH)/xcodebuild',
4650 }, 4662 },
4651 } 4663 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698