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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. | 536 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. |
537 # To ensure these macros are available, #include <AvailabilityMacros.h>. | 537 # To ensure these macros are available, #include <AvailabilityMacros.h>. |
538 # Additional documentation on these macros is available at | 538 # Additional documentation on these macros is available at |
539 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO
N3 | 539 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO
N3 |
540 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the | 540 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the |
541 # deployment target to 10.5. Other projects, such as O3D, may override | 541 # deployment target to 10.5. Other projects, such as O3D, may override |
542 # these defaults. | 542 # these defaults. |
543 'mac_sdk%': '10.5', | 543 'mac_sdk%': '10.5', |
544 'mac_deployment_target%': '10.5', | 544 'mac_deployment_target%': '10.5', |
545 | 545 |
| 546 # The default value for mac_strip in target_defaults. This cannot be |
| 547 # set there, per the comment about variable% in a target_defaults. |
| 548 'mac_strip_release%': 1, |
| 549 |
546 # Set to 1 to enable code coverage. In addition to build changes | 550 # Set to 1 to enable code coverage. In addition to build changes |
547 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 551 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
548 # project file called "coverage". | 552 # project file called "coverage". |
549 # Currently ignored on Windows. | 553 # Currently ignored on Windows. |
550 'coverage%': 0, | 554 'coverage%': 0, |
551 | 555 |
552 # Although base/allocator lets you select a heap library via an | 556 # Although base/allocator lets you select a heap library via an |
553 # environment variable, the libcmt shim it uses sometimes gets in | 557 # environment variable, the libcmt shim it uses sometimes gets in |
554 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. | 558 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. |
555 # 'win_use_allocator_shim': 0, | 559 # 'win_use_allocator_shim': 0, |
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 'cflags_cc!': ['-fvisibility-inlines-hidden'], | 2391 'cflags_cc!': ['-fvisibility-inlines-hidden'], |
2388 }], | 2392 }], |
2389 ['OS=="mac"', { | 2393 ['OS=="mac"', { |
2390 'target_defaults': { | 2394 'target_defaults': { |
2391 'variables': { | 2395 'variables': { |
2392 # These should end with %, but there seems to be a bug with % in | 2396 # These should end with %, but there seems to be a bug with % in |
2393 # variables that are intended to be set to different values in | 2397 # variables that are intended to be set to different values in |
2394 # different targets, like these. | 2398 # different targets, like these. |
2395 'mac_pie': 1, # Most executables can be position-independent. | 2399 'mac_pie': 1, # Most executables can be position-independent. |
2396 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. | 2400 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
2397 'mac_strip': 1, # Strip debugging symbols from the target. | 2401 # Strip debugging symbols from the target. |
| 2402 'mac_strip': '<(mac_strip_release)', |
2398 }, | 2403 }, |
2399 'mac_bundle': 0, | 2404 'mac_bundle': 0, |
2400 'xcode_settings': { | 2405 'xcode_settings': { |
2401 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 2406 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
2402 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 | 2407 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
2403 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 2408 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
2404 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 2409 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
2405 # (Equivalent to -fPIC) | 2410 # (Equivalent to -fPIC) |
2406 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 2411 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
2407 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 2412 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2943 # settings in target dicts. SYMROOT is a special case, because many other | 2948 # settings in target dicts. SYMROOT is a special case, because many other |
2944 # Xcode variables depend on it, including variables such as | 2949 # Xcode variables depend on it, including variables such as |
2945 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2950 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2946 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2951 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2947 # files to appear (when present) in the UI as actual files and not red | 2952 # files to appear (when present) in the UI as actual files and not red |
2948 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2953 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2949 # and therefore SYMROOT, needs to be set at the project level. | 2954 # and therefore SYMROOT, needs to be set at the project level. |
2950 'SYMROOT': '<(DEPTH)/xcodebuild', | 2955 'SYMROOT': '<(DEPTH)/xcodebuild', |
2951 }, | 2956 }, |
2952 } | 2957 } |
OLD | NEW |