| OLD | NEW |
| 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 # "Maximum allowed" refers to the operating system version whose APIs are | 635 # "Maximum allowed" refers to the operating system version whose APIs are |
| 636 # available in the headers. | 636 # available in the headers. |
| 637 # The deployment target identifies the minimum system version that the | 637 # The deployment target identifies the minimum system version that the |
| 638 # built products are expected to function on. It corresponds to the | 638 # built products are expected to function on. It corresponds to the |
| 639 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. | 639 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. |
| 640 # To ensure these macros are available, #include <AvailabilityMacros.h>. | 640 # To ensure these macros are available, #include <AvailabilityMacros.h>. |
| 641 # Additional documentation on these macros is available at | 641 # Additional documentation on these macros is available at |
| 642 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO
N3 | 642 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO
N3 |
| 643 # Chrome normally builds with the Mac OS X 10.6 SDK and sets the | 643 # Chrome normally builds with the Mac OS X 10.6 SDK and sets the |
| 644 # deployment target to 10.5. Other projects, such as O3D, may override | 644 # deployment target to 10.5. Other projects, such as O3D, may override |
| 645 # these defaults. | 645 # these defaults. If the SDK is installed someplace that Xcode doesn't |
| 646 # know about, set mac_sdk_path to the path to the SDK. If set to a |
| 647 # non-empty string, mac_sdk_path will be used in preference to mac_sdk. |
| 646 'mac_sdk%': '10.6', | 648 'mac_sdk%': '10.6', |
| 649 'mac_sdk_path%': '', |
| 647 'mac_deployment_target%': '10.5', | 650 'mac_deployment_target%': '10.5', |
| 648 | 651 |
| 649 # The default value for mac_strip in target_defaults. This cannot be | 652 # The default value for mac_strip in target_defaults. This cannot be |
| 650 # set there, per the comment about variable% in a target_defaults. | 653 # set there, per the comment about variable% in a target_defaults. |
| 651 'mac_strip_release%': 1, | 654 'mac_strip_release%': 1, |
| 652 | 655 |
| 653 # Set to 1 to enable code coverage. In addition to build changes | 656 # Set to 1 to enable code coverage. In addition to build changes |
| 654 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 657 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
| 655 # project file called "coverage". | 658 # project file called "coverage". |
| 656 # Currently ignored on Windows. | 659 # Currently ignored on Windows. |
| (...skipping 2632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3289 ], | 3292 ], |
| 3290 }], | 3293 }], |
| 3291 ], | 3294 ], |
| 3292 'xcode_settings': { | 3295 'xcode_settings': { |
| 3293 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 3296 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
| 3294 # This block adds *project-wide* configuration settings to each project | 3297 # This block adds *project-wide* configuration settings to each project |
| 3295 # file. It's almost always wrong to put things here. Specify your | 3298 # file. It's almost always wrong to put things here. Specify your |
| 3296 # custom xcode_settings in target_defaults to add them to targets instead. | 3299 # custom xcode_settings in target_defaults to add them to targets instead. |
| 3297 | 3300 |
| 3298 'conditions': [ | 3301 'conditions': [ |
| 3299 ['OS=="mac"', { | 3302 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
| 3300 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 3303 # setting sets the SDK on a project-wide basis. In order to get the |
| 3301 # setting sets the SDK on a project-wide basis. In order to get the | 3304 # configured SDK to show properly in the Xcode UI, SDKROOT must be set |
| 3302 # configured SDK to show properly in the Xcode UI, SDKROOT must be set | 3305 # here at the project level. |
| 3303 # here at the project level. | 3306 ['mac_sdk_path==""', { |
| 3304 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | 3307 'conditions': [ |
| 3308 ['OS=="mac"', { |
| 3309 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
| 3310 }], |
| 3311 ['OS=="ios"', { |
| 3312 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot |
| 3313 }], |
| 3314 ], |
| 3315 }, { # else: mac_sdk_path!="" |
| 3316 'SDKROOT': '<(mac_sdk_path)', # -isysroot |
| 3305 }], | 3317 }], |
| 3306 ['OS=="ios"', { | 3318 ['OS=="ios"', { |
| 3307 # Just build armv7 since iOS 4.3+ only supports armv7. | 3319 # Just build armv7 since iOS 4.3+ only supports armv7. |
| 3308 'ARCHS': '$(ARCHS_UNIVERSAL_IPHONE_OS)', | 3320 'ARCHS': '$(ARCHS_UNIVERSAL_IPHONE_OS)', |
| 3309 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', | 3321 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', |
| 3310 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot | |
| 3311 # Target both iPhone and iPad. | 3322 # Target both iPhone and iPad. |
| 3312 'TARGETED_DEVICE_FAMILY': '1,2', | 3323 'TARGETED_DEVICE_FAMILY': '1,2', |
| 3313 }], | 3324 }], |
| 3314 ], | 3325 ], |
| 3315 | 3326 |
| 3316 # The Xcode generator will look for an xcode_settings section at the root | 3327 # The Xcode generator will look for an xcode_settings section at the root |
| 3317 # of each dict and use it to apply settings on a file-wide basis. Most | 3328 # of each dict and use it to apply settings on a file-wide basis. Most |
| 3318 # settings should not be here, they should be in target-specific | 3329 # settings should not be here, they should be in target-specific |
| 3319 # xcode_settings sections, or better yet, should use non-Xcode-specific | 3330 # xcode_settings sections, or better yet, should use non-Xcode-specific |
| 3320 # settings in target dicts. SYMROOT is a special case, because many other | 3331 # settings in target dicts. SYMROOT is a special case, because many other |
| 3321 # Xcode variables depend on it, including variables such as | 3332 # Xcode variables depend on it, including variables such as |
| 3322 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3333 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3323 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3334 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3324 # files to appear (when present) in the UI as actual files and not red | 3335 # files to appear (when present) in the UI as actual files and not red |
| 3325 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3336 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3326 # and therefore SYMROOT, needs to be set at the project level. | 3337 # and therefore SYMROOT, needs to be set at the project level. |
| 3327 'SYMROOT': '<(DEPTH)/xcodebuild', | 3338 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3328 }, | 3339 }, |
| 3329 } | 3340 } |
| OLD | NEW |