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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 # | 338 # |
339 # Note that a setting of 1 is probably suitable for most or all | 339 # Note that a setting of 1 is probably suitable for most or all |
340 # Windows developers using VS 2008, since precompiled headers | 340 # Windows developers using VS 2008, since precompiled headers |
341 # provide a build speedup of 20-25%. There are a couple of | 341 # provide a build speedup of 20-25%. There are a couple of |
342 # small workarounds you may need to use when using VS 2008 (but | 342 # small workarounds you may need to use when using VS 2008 (but |
343 # not 2010), see | 343 # not 2010), see |
344 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders | 344 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders |
345 # for details. | 345 # for details. |
346 'chromium_win_pch%': 0, | 346 'chromium_win_pch%': 0, |
347 | 347 |
348 # iOS SDK and deployment target support. The iOS 5.0 SDK is actually | |
349 # what is required, but the value is left blank so when it is set in | |
350 # the project files it will be the "current" iOS SDK. Forcing 5.0 | |
351 # even though it is "current" causes Xcode to spit out a warning for | |
352 # every single project file for not using the "current" SDK. | |
353 'ios_sdk%': '', | |
354 'ios_deployment_target%': '4.3', | |
355 | |
356 # Set this to true when building with Clang. | 348 # Set this to true when building with Clang. |
357 # See http://code.google.com/p/chromium/wiki/Clang for details. | 349 # See http://code.google.com/p/chromium/wiki/Clang for details. |
358 'clang%': 0, | 350 'clang%': 0, |
359 | 351 |
360 # Enable plug-in installation by default. | 352 # Enable plug-in installation by default. |
361 'enable_plugin_installation%': 1, | 353 'enable_plugin_installation%': 1, |
362 | 354 |
363 # Enable protector service by default. | 355 # Enable protector service by default. |
364 'enable_protector_service%': 1, | 356 'enable_protector_service%': 1, |
365 | 357 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 'notifications%': '<(notifications)', | 633 'notifications%': '<(notifications)', |
642 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 634 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
643 'asan%': '<(asan)', | 635 'asan%': '<(asan)', |
644 'tsan%': '<(tsan)', | 636 'tsan%': '<(tsan)', |
645 'clang_type_profiler%': '<(clang_type_profiler)', | 637 'clang_type_profiler%': '<(clang_type_profiler)', |
646 'order_profiling%': '<(order_profiling)', | 638 'order_profiling%': '<(order_profiling)', |
647 'order_text_section%': '<(order_text_section)', | 639 'order_text_section%': '<(order_text_section)', |
648 'enable_extensions%': '<(enable_extensions)', | 640 'enable_extensions%': '<(enable_extensions)', |
649 'enable_web_intents%': '<(enable_web_intents)', | 641 'enable_web_intents%': '<(enable_web_intents)', |
650 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 642 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
651 'ios_sdk%': '<(ios_sdk)', | |
652 'ios_deployment_target%': '<(ios_deployment_target)', | |
653 'enable_plugin_installation%': '<(enable_plugin_installation)', | 643 'enable_plugin_installation%': '<(enable_plugin_installation)', |
654 'enable_protector_service%': '<(enable_protector_service)', | 644 'enable_protector_service%': '<(enable_protector_service)', |
655 'enable_session_service%': '<(enable_session_service)', | 645 'enable_session_service%': '<(enable_session_service)', |
656 'enable_themes%': '<(enable_themes)', | 646 'enable_themes%': '<(enable_themes)', |
657 'use_oem_wallpaper%': '<(use_oem_wallpaper)', | 647 'use_oem_wallpaper%': '<(use_oem_wallpaper)', |
658 'enable_background%': '<(enable_background)', | 648 'enable_background%': '<(enable_background)', |
659 'linux_use_gold_binary%': '<(linux_use_gold_binary)', | 649 'linux_use_gold_binary%': '<(linux_use_gold_binary)', |
660 'linux_use_gold_flags%': '<(linux_use_gold_flags)', | 650 'linux_use_gold_flags%': '<(linux_use_gold_flags)', |
661 'use_canvas_skia%': '<(use_canvas_skia)', | 651 'use_canvas_skia%': '<(use_canvas_skia)', |
662 'test_isolation_mode%': '<(test_isolation_mode)', | 652 'test_isolation_mode%': '<(test_isolation_mode)', |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 # Override chromium_mac_pch and set it to 0 to suppress the use of | 686 # Override chromium_mac_pch and set it to 0 to suppress the use of |
697 # precompiled headers on the Mac. Prefix header injection may still be | 687 # precompiled headers on the Mac. Prefix header injection may still be |
698 # used, but prefix headers will not be precompiled. This is useful when | 688 # used, but prefix headers will not be precompiled. This is useful when |
699 # using distcc to distribute a build to compile slaves that don't | 689 # using distcc to distribute a build to compile slaves that don't |
700 # share the same compiler executable as the system driving the compilation, | 690 # share the same compiler executable as the system driving the compilation, |
701 # because precompiled headers rely on pointers into a specific compiler | 691 # because precompiled headers rely on pointers into a specific compiler |
702 # executable's image. Setting this to 0 is needed to use an experimental | 692 # executable's image. Setting this to 0 is needed to use an experimental |
703 # Linux-Mac cross compiler distcc farm. | 693 # Linux-Mac cross compiler distcc farm. |
704 'chromium_mac_pch%': 1, | 694 'chromium_mac_pch%': 1, |
705 | 695 |
706 # Mac OS X SDK and deployment target support. | |
707 # The SDK identifies the version of the system headers that will be used, | |
708 # and corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time macro. | |
709 # "Maximum allowed" refers to the operating system version whose APIs are | |
710 # available in the headers. | |
711 # The deployment target identifies the minimum system version that the | |
712 # built products are expected to function on. It corresponds to the | |
713 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. | |
714 # To ensure these macros are available, #include <AvailabilityMacros.h>. | |
715 # Additional documentation on these macros is available at | |
716 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTIO
N3 | |
717 # Chrome normally builds with the Mac OS X 10.6 SDK and sets the | |
718 # deployment target to 10.6. Other projects, such as O3D, may override | |
719 # these defaults. If the SDK is installed someplace that Xcode doesn't | |
720 # know about, set mac_sdk_path to the path to the SDK. If set to a | |
721 # non-empty string, mac_sdk_path will be used in preference to mac_sdk. | |
722 # mac_sdk gets its default value elsewhere in this file. | |
723 'mac_sdk_path%': '', | |
724 'mac_deployment_target%': '10.6', | |
725 | |
726 # The default value for mac_strip in target_defaults. This cannot be | 696 # The default value for mac_strip in target_defaults. This cannot be |
727 # set there, per the comment about variable% in a target_defaults. | 697 # set there, per the comment about variable% in a target_defaults. |
728 'mac_strip_release%': 1, | 698 'mac_strip_release%': 1, |
729 | 699 |
730 # Set to 1 to enable code coverage. In addition to build changes | 700 # Set to 1 to enable code coverage. In addition to build changes |
731 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 701 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
732 # project file called "coverage". | 702 # project file called "coverage". |
733 # Currently ignored on Windows. | 703 # Currently ignored on Windows. |
734 'coverage%': 0, | 704 'coverage%': 0, |
735 | 705 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 'enable_gpu%': 0, | 957 'enable_gpu%': 0, |
988 'icu_use_data_file_flag%': 1, | 958 'icu_use_data_file_flag%': 1, |
989 'use_system_bzip2%': 1, | 959 'use_system_bzip2%': 1, |
990 'use_system_libxml%': 1, | 960 'use_system_libxml%': 1, |
991 'use_system_sqlite%': 1, | 961 'use_system_sqlite%': 1, |
992 | 962 |
993 # The Mac SDK is set for iOS builds and passed through to Mac | 963 # The Mac SDK is set for iOS builds and passed through to Mac |
994 # sub-builds. This allows the Mac sub-build SDK in an iOS build to be | 964 # sub-builds. This allows the Mac sub-build SDK in an iOS build to be |
995 # overridden from the command line the same way it is for a Mac build. | 965 # overridden from the command line the same way it is for a Mac build. |
996 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py 10.6)', | 966 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py 10.6)', |
| 967 |
| 968 # iOS SDK and deployment target support. The iOS 5.0 SDK is actually |
| 969 # what is required, but the value is left blank so when it is set in |
| 970 # the project files it will be the "current" iOS SDK. Forcing 5.0 |
| 971 # even though it is "current" causes Xcode to spit out a warning for |
| 972 # every single project file for not using the "current" SDK. |
| 973 'ios_sdk%': '', |
| 974 'ios_sdk_path%': '', |
| 975 'ios_deployment_target%': '4.3', |
997 }], | 976 }], |
998 ['OS=="android"', { | 977 ['OS=="android"', { |
999 # Location of Android NDK. | 978 # Location of Android NDK. |
1000 'variables': { | 979 'variables': { |
1001 'variables': { | 980 'variables': { |
1002 'variables': { | 981 'variables': { |
1003 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', | 982 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', |
1004 }, | 983 }, |
1005 'android_ndk_root%': '<(android_ndk_root)', | 984 'android_ndk_root%': '<(android_ndk_root)', |
1006 'conditions': [ | 985 'conditions': [ |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 # TODO(steveblock): Investigate using the system version of sqlite. | 1076 # TODO(steveblock): Investigate using the system version of sqlite. |
1098 'use_system_sqlite%': 0, # '<(android_build_type)', | 1077 'use_system_sqlite%': 0, # '<(android_build_type)', |
1099 'use_system_expat%': '<(android_build_type)', | 1078 'use_system_expat%': '<(android_build_type)', |
1100 'use_system_icu%': '<(android_build_type)', | 1079 'use_system_icu%': '<(android_build_type)', |
1101 'use_system_stlport%': '<(android_build_type)', | 1080 'use_system_stlport%': '<(android_build_type)', |
1102 | 1081 |
1103 # Copy it out one scope. | 1082 # Copy it out one scope. |
1104 'android_build_type%': '<(android_build_type)', | 1083 'android_build_type%': '<(android_build_type)', |
1105 }], # OS=="android" | 1084 }], # OS=="android" |
1106 ['OS=="mac"', { | 1085 ['OS=="mac"', { |
| 1086 'variables': { |
| 1087 # Mac OS X SDK and deployment target support. The SDK identifies |
| 1088 # the version of the system headers that will be used, and |
| 1089 # corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time |
| 1090 # macro. "Maximum allowed" refers to the operating system version |
| 1091 # whose APIs are available in the headers. The deployment target |
| 1092 # identifies the minimum system version that the built products are |
| 1093 # expected to function on. It corresponds to the |
| 1094 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. To ensure these |
| 1095 # macros are available, #include <AvailabilityMacros.h>. Additional |
| 1096 # documentation on these macros is available at |
| 1097 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#
SECTION3 |
| 1098 # Chrome normally builds with the Mac OS X 10.6 SDK and sets the |
| 1099 # deployment target to 10.6. Other projects, such as O3D, may |
| 1100 # override these defaults. |
| 1101 |
| 1102 # Normally, mac_sdk_min is used to find an SDK that Xcode knows |
| 1103 # about that is at least the specified version. In official builds, |
| 1104 # the SDK must match mac_sdk_min exactly. If the SDK is installed |
| 1105 # someplace that Xcode doesn't know about, set mac_sdk_path to the |
| 1106 # path to the SDK; when set to a non-empty string, SDK detection |
| 1107 # based on mac_sdk_min will be bypassed entirely. |
| 1108 'mac_sdk_min%': '10.6', |
| 1109 'mac_sdk_path%': '', |
| 1110 |
| 1111 'mac_deployment_target%': '10.6', |
| 1112 }, |
| 1113 |
| 1114 'mac_sdk_min': '<(mac_sdk_min)', |
| 1115 'mac_sdk_path': '<(mac_sdk_path)', |
| 1116 'mac_deployment_target': '<(mac_deployment_target)', |
| 1117 |
1107 # Enable clang on mac by default! | 1118 # Enable clang on mac by default! |
1108 'clang%': 1, | 1119 'clang%': 1, |
| 1120 |
1109 # Compile in Breakpad support by default so that it can be | 1121 # Compile in Breakpad support by default so that it can be |
1110 # tested, even if it is not enabled by default at runtime. | 1122 # tested, even if it is not enabled by default at runtime. |
1111 'mac_breakpad_compiled_in%': 1, | 1123 'mac_breakpad_compiled_in%': 1, |
1112 'conditions': [ | 1124 'conditions': [ |
1113 # mac_product_name is set to the name of the .app bundle as it should | 1125 # mac_product_name is set to the name of the .app bundle as it should |
1114 # appear on disk. This duplicates data from | 1126 # appear on disk. This duplicates data from |
1115 # chrome/app/theme/chromium/BRANDING and | 1127 # chrome/app/theme/chromium/BRANDING and |
1116 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get | 1128 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get |
1117 # these names into the build system. | 1129 # these names into the build system. |
1118 ['branding=="Chrome"', { | 1130 ['branding=="Chrome"', { |
1119 'mac_product_name%': 'Google Chrome', | 1131 'mac_product_name%': 'Google Chrome', |
1120 }, { # else: branding!="Chrome" | 1132 }, { # else: branding!="Chrome" |
1121 'mac_product_name%': 'Chromium', | 1133 'mac_product_name%': 'Chromium', |
1122 }], | 1134 }], |
1123 | 1135 |
1124 ['branding=="Chrome" and buildtype=="Official"', { | 1136 ['branding=="Chrome" and buildtype=="Official"', { |
1125 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py --verify 10.6)
', | 1137 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py --verify <(mac
_sdk_min) --sdk_path=<(mac_sdk_path))', |
1126 # Enable uploading crash dumps. | 1138 # Enable uploading crash dumps. |
1127 'mac_breakpad_uploads%': 1, | 1139 'mac_breakpad_uploads%': 1, |
1128 # Enable dumping symbols at build time for use by Mac Breakpad. | 1140 # Enable dumping symbols at build time for use by Mac Breakpad. |
1129 'mac_breakpad%': 1, | 1141 'mac_breakpad%': 1, |
1130 # Enable Keystone auto-update support. | 1142 # Enable Keystone auto-update support. |
1131 'mac_keystone%': 1, | 1143 'mac_keystone%': 1, |
1132 }, { # else: branding!="Chrome" or buildtype!="Official" | 1144 }, { # else: branding!="Chrome" or buildtype!="Official" |
1133 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py 10.6)', | 1145 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py <(mac_sdk_min)
)', |
1134 'mac_breakpad_uploads%': 0, | 1146 'mac_breakpad_uploads%': 0, |
1135 'mac_breakpad%': 0, | 1147 'mac_breakpad%': 0, |
1136 'mac_keystone%': 0, | 1148 'mac_keystone%': 0, |
1137 }], | 1149 }], |
1138 ], | 1150 ], |
1139 }], # OS=="mac" | 1151 }], # OS=="mac" |
1140 | 1152 |
1141 ['OS=="win"', { | 1153 ['OS=="win"', { |
1142 'conditions': [ | 1154 'conditions': [ |
1143 ['component=="shared_library"', { | 1155 ['component=="shared_library"', { |
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3534 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 3546 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
3535 # This block adds *project-wide* configuration settings to each project | 3547 # This block adds *project-wide* configuration settings to each project |
3536 # file. It's almost always wrong to put things here. Specify your | 3548 # file. It's almost always wrong to put things here. Specify your |
3537 # custom xcode_settings in target_defaults to add them to targets instead. | 3549 # custom xcode_settings in target_defaults to add them to targets instead. |
3538 | 3550 |
3539 'conditions': [ | 3551 'conditions': [ |
3540 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 3552 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
3541 # setting sets the SDK on a project-wide basis. In order to get the | 3553 # setting sets the SDK on a project-wide basis. In order to get the |
3542 # configured SDK to show properly in the Xcode UI, SDKROOT must be set | 3554 # configured SDK to show properly in the Xcode UI, SDKROOT must be set |
3543 # here at the project level. | 3555 # here at the project level. |
3544 ['mac_sdk_path==""', { | 3556 ['OS=="mac"', { |
3545 'conditions': [ | 3557 'conditions': [ |
3546 ['OS=="mac"', { | 3558 ['mac_sdk_path==""', { |
3547 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | 3559 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
3548 }], | 3560 }, { |
3549 ['OS=="ios"', { | 3561 'SDKROOT': '<(mac_sdk_path)', # -isysroot |
3550 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot | |
3551 }], | 3562 }], |
3552 ], | 3563 ], |
3553 }, { # else: mac_sdk_path!="" | 3564 }], |
3554 'SDKROOT': '<(mac_sdk_path)', # -isysroot | 3565 ['OS=="ios"', { |
| 3566 'conditions': [ |
| 3567 ['ios_sdk_path==""', { |
| 3568 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot |
| 3569 }, { |
| 3570 'SDKROOT': '<(ios_sdk_path)', # -isysroot |
| 3571 }], |
| 3572 ], |
3555 }], | 3573 }], |
3556 ['OS=="ios"', { | 3574 ['OS=="ios"', { |
3557 # Just build armv7 since iOS 4.3+ only supports armv7. | 3575 # Just build armv7 since iOS 4.3+ only supports armv7. |
3558 'ARCHS': '$(ARCHS_UNIVERSAL_IPHONE_OS)', | 3576 'ARCHS': '$(ARCHS_UNIVERSAL_IPHONE_OS)', |
3559 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', | 3577 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', |
3560 # Target both iPhone and iPad. | 3578 # Target both iPhone and iPad. |
3561 'TARGETED_DEVICE_FAMILY': '1,2', | 3579 'TARGETED_DEVICE_FAMILY': '1,2', |
3562 }], | 3580 }], |
3563 ], | 3581 ], |
3564 | 3582 |
3565 # The Xcode generator will look for an xcode_settings section at the root | 3583 # The Xcode generator will look for an xcode_settings section at the root |
3566 # of each dict and use it to apply settings on a file-wide basis. Most | 3584 # of each dict and use it to apply settings on a file-wide basis. Most |
3567 # settings should not be here, they should be in target-specific | 3585 # settings should not be here, they should be in target-specific |
3568 # xcode_settings sections, or better yet, should use non-Xcode-specific | 3586 # xcode_settings sections, or better yet, should use non-Xcode-specific |
3569 # settings in target dicts. SYMROOT is a special case, because many other | 3587 # settings in target dicts. SYMROOT is a special case, because many other |
3570 # Xcode variables depend on it, including variables such as | 3588 # Xcode variables depend on it, including variables such as |
3571 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3589 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3572 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3590 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3573 # files to appear (when present) in the UI as actual files and not red | 3591 # files to appear (when present) in the UI as actual files and not red |
3574 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3592 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3575 # and therefore SYMROOT, needs to be set at the project level. | 3593 # and therefore SYMROOT, needs to be set at the project level. |
3576 'SYMROOT': '<(DEPTH)/xcodebuild', | 3594 'SYMROOT': '<(DEPTH)/xcodebuild', |
3577 }, | 3595 }, |
3578 } | 3596 } |
OLD | NEW |