OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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': { | 9 'variables': { |
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 # Override chromium_mac_pch and set it to 0 to suppress the use of | 48 # Override chromium_mac_pch and set it to 0 to suppress the use of |
49 # precompiled headers on the Mac. Prefix header injection may still be | 49 # precompiled headers on the Mac. Prefix header injection may still be |
50 # used, but prefix headers will not be precompiled. This is useful when | 50 # used, but prefix headers will not be precompiled. This is useful when |
51 # using distcc to distribute a build to compile slaves that don't | 51 # using distcc to distribute a build to compile slaves that don't |
52 # share the same compiler executable as the system driving the compilation, | 52 # share the same compiler executable as the system driving the compilation, |
53 # because precompiled headers rely on pointers into a specific compiler | 53 # because precompiled headers rely on pointers into a specific compiler |
54 # executable's image. Setting this to 0 is needed to use an experimental | 54 # executable's image. Setting this to 0 is needed to use an experimental |
55 # Linux-Mac cross compiler distcc farm. | 55 # Linux-Mac cross compiler distcc farm. |
56 'chromium_mac_pch%': 1, | 56 'chromium_mac_pch%': 1, |
57 | 57 |
58 # We normally expect MacOS X 10.5 at runtime in the product generated. | 58 # Mac OS X SDK and deployment target support. |
59 # Set to 1 to enable MacOS X 10.4 support where possible. | 59 # The SDK identifies the version of the system headers that will be used, |
60 # Harmless to set on other platforms, as it has no effect. | 60 # and corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time macro. |
61 # This is designed so that products such as O3D can use some Chrome source | 61 # "Maximum allowed" refers to the operating system version whose APIs are |
62 # without losing 10.4 support. | 62 # available in the headers. |
63 # Look for support_macosx_10_4 later in the file to see where it turns on | 63 # The deployment target identifies the minimum system version that the |
64 # compile flags, defines SUPPORT_MACOSX_10_4 in the C preprocessor, | 64 # built products are expected to function on. It corresponds to the |
65 # and changes the Xcode deployment target setting. | 65 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. |
66 'support_macosx_10_4%': 0, | 66 # To ensure these macros are available, #include <AvailabilityMacros.h>. |
| 67 # Additional documentation on these macros is available at |
| 68 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO
N3 |
| 69 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the |
| 70 # deployment target to 10.5. Other projects, such as O3D, may override |
| 71 # these defaults. |
| 72 'mac_sdk%': '10.5', |
| 73 'mac_deployment_target%': '10.5', |
67 | 74 |
68 # Set to 1 to enable code coverage. In addition to build changes | 75 # Set to 1 to enable code coverage. In addition to build changes |
69 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 76 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
70 # project file called "coverage". | 77 # project file called "coverage". |
71 # Currently ignored on Windows. | 78 # Currently ignored on Windows. |
72 'coverage%': 0, | 79 'coverage%': 0, |
73 | 80 |
74 # Overridable specification for potential use of alternative | 81 # Overridable specification for potential use of alternative |
75 # JavaScript engines. | 82 # JavaScript engines. |
76 'javascript_engine%': 'v8', | 83 'javascript_engine%': 'v8', |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 'mac_bundle': 0, | 610 'mac_bundle': 0, |
604 'xcode_settings': { | 611 'xcode_settings': { |
605 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 612 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
606 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 | 613 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
607 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 614 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
608 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 615 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
609 # (Equivalent to -fPIC) | 616 # (Equivalent to -fPIC) |
610 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 617 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
611 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 618 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
612 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 619 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
613 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidde
n | 620 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
| 621 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
614 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors | 622 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors |
615 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 623 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
616 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 624 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
617 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 625 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
618 'GCC_VERSION': '4.2', | 626 'GCC_VERSION': '4.2', |
619 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof | 627 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
620 'MACOSX_DEPLOYMENT_TARGET': '10.5', # -mmacosx-version-min=10.5 | 628 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
| 629 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
621 'PREBINDING': 'NO', # No -Wl,-prebind | 630 'PREBINDING': 'NO', # No -Wl,-prebind |
622 'SDKROOT': 'macosx10.5', # -isysroot | 631 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
623 'USE_HEADERMAP': 'NO', | 632 'USE_HEADERMAP': 'NO', |
624 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], | 633 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], |
625 'conditions': [ | 634 'conditions': [ |
626 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 635 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
627 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} | 636 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} |
628 ], | 637 ], |
629 ['support_macosx_10_4', | |
630 { | |
631 'OTHER_CFLAGS': ['-D', 'SUPPORT_MACOSX_10_4',], | |
632 'MACOSX_DEPLOYMENT_TARGET': '10.4', # mmacosx-version-min=10.4 | |
633 }, | |
634 { | |
635 'MACOSX_DEPLOYMENT_TARGET': '10.5', # mmacosx-version-min=10.5 | |
636 } | |
637 ], | |
638 ], | 638 ], |
639 }, | 639 }, |
640 'target_conditions': [ | 640 'target_conditions': [ |
641 ['_type!="static_library"', { | 641 ['_type!="static_library"', { |
642 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 642 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
643 }], | 643 }], |
644 ['_mac_bundle', { | 644 ['_mac_bundle', { |
645 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 645 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
646 }], | 646 }], |
647 ['_type=="executable" or _type=="shared_library"', { | 647 ['_type=="executable" or _type=="shared_library"', { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 # settings in target dicts. SYMROOT is a special case, because many other | 818 # settings in target dicts. SYMROOT is a special case, because many other |
819 # Xcode variables depend on it, including variables such as | 819 # Xcode variables depend on it, including variables such as |
820 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 820 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
821 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 821 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
822 # files to appear (when present) in the UI as actual files and not red | 822 # files to appear (when present) in the UI as actual files and not red |
823 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 823 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
824 # and therefore SYMROOT, needs to be set at the project level. | 824 # and therefore SYMROOT, needs to be set at the project level. |
825 'SYMROOT': '<(DEPTH)/xcodebuild', | 825 'SYMROOT': '<(DEPTH)/xcodebuild', |
826 }, | 826 }, |
827 } | 827 } |
OLD | NEW |