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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', | 1045 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', |
1046 | 1046 |
1047 # Whether we are using the rlz library or not. Platforms like Android send | 1047 # Whether we are using the rlz library or not. Platforms like Android send |
1048 # rlz codes for searches but do not use the library. | 1048 # rlz codes for searches but do not use the library. |
1049 'enable_rlz%': 0, | 1049 'enable_rlz%': 0, |
1050 | 1050 |
1051 # MDNS is disabled by default. | 1051 # MDNS is disabled by default. |
1052 'enable_mdns%' : 0, | 1052 'enable_mdns%' : 0, |
1053 | 1053 |
1054 'conditions': [ | 1054 'conditions': [ |
| 1055 # The version of GCC in use, set later in platforms that use GCC and have |
| 1056 # not explicitly chosen to build with clang. Currently, this means all |
| 1057 # platforms except Windows, Mac and iOS. |
| 1058 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that |
| 1059 # it takes effect here. |
| 1060 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and tsa
n==0 and msan==0', { |
| 1061 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
| 1062 }, { |
| 1063 'gcc_version%': 0, |
| 1064 }], |
1055 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa
ult_path))"=="True"', { | 1065 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa
ult_path))"=="True"', { |
1056 'windows_sdk_path%': '<(windows_sdk_default_path)', | 1066 'windows_sdk_path%': '<(windows_sdk_default_path)', |
1057 }, { | 1067 }, { |
1058 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', | 1068 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', |
1059 }], | 1069 }], |
1060 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa
ult_path))"=="True"', { | 1070 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa
ult_path))"=="True"', { |
1061 'directx_sdk_path%': '<(directx_sdk_default_path)', | 1071 'directx_sdk_path%': '<(directx_sdk_default_path)', |
1062 }, { | 1072 }, { |
1063 'directx_sdk_path%': '$(DXSDK_DIR)', | 1073 'directx_sdk_path%': '$(DXSDK_DIR)', |
1064 }], | 1074 }], |
1065 ['OS=="win"', { | 1075 ['OS=="win"', { |
1066 'windows_driver_kit_path%': '$(WDK_DIR)', | 1076 'windows_driver_kit_path%': '$(WDK_DIR)', |
1067 # Set the python arch to prevent conflicts with pyauto on Win64 build. | 1077 # Set the python arch to prevent conflicts with pyauto on Win64 build. |
1068 # TODO(jschuh): crbug.com/177664 Investigate Win64 pyauto build. | 1078 # TODO(jschuh): crbug.com/177664 Investigate Win64 pyauto build. |
1069 'python_arch%': 'ia32', | 1079 'python_arch%': 'ia32', |
1070 }], | 1080 }], |
1071 # If use_official_google_api_keys is already set (to 0 or 1), we | 1081 # If use_official_google_api_keys is already set (to 0 or 1), we |
1072 # do none of the implicit checking. If it is set to 1 and the | 1082 # do none of the implicit checking. If it is set to 1 and the |
1073 # internal keys file is missing, the build will fail at compile | 1083 # internal keys file is missing, the build will fail at compile |
1074 # time. If it is set to 0 and keys are not provided by other | 1084 # time. If it is set to 0 and keys are not provided by other |
1075 # means, a warning will be printed at compile time. | 1085 # means, a warning will be printed at compile time. |
1076 ['use_official_google_api_keys==2', { | 1086 ['use_official_google_api_keys==2', { |
1077 'use_official_google_api_keys%': | 1087 'use_official_google_api_keys%': |
1078 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/goo
gle_apis/internal/google_chrome_api_keys.h)', | 1088 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/goo
gle_apis/internal/google_chrome_api_keys.h)', |
1079 }], | 1089 }], |
1080 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 1090 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
1081 # Figure out the python architecture to decide if we build pyauto. | 1091 # Figure out the python architecture to decide if we build pyauto. |
1082 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/<
(system_libdir)/libpython<(python_ver).so.1.0)', | 1092 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/<
(system_libdir)/libpython<(python_ver).so.1.0)', |
1083 'conditions': [ | 1093 'conditions': [ |
1084 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so | |
1085 # that it takes effect here. | |
1086 ['clang==0 and asan==0 and tsan==0 and msan==0', { | |
1087 # This will set gcc_version to XY if you are running gcc X.Y.*. | |
1088 # This is used to tweak build flags for gcc 4.5. | |
1089 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | |
1090 }, { | |
1091 'gcc_version%': 0, | |
1092 }], | |
1093 ['target_arch=="mipsel"', { | 1094 ['target_arch=="mipsel"', { |
1094 'werror%': '', | 1095 'werror%': '', |
1095 'disable_nacl%': 1, | 1096 'disable_nacl%': 1, |
1096 'nacl_untrusted_build%': 0, | 1097 'nacl_untrusted_build%': 0, |
1097 'linux_use_tcmalloc%': 0, | 1098 'linux_use_tcmalloc%': 0, |
1098 'linux_breakpad%': 0, | 1099 'linux_breakpad%': 0, |
1099 'sysroot%': '<(sysroot)', | 1100 'sysroot%': '<(sysroot)', |
1100 'CXX%': '<(CXX)', | 1101 'CXX%': '<(CXX)', |
1101 }], | 1102 }], |
1102 # All Chrome builds have breakpad symbols, but only process the | 1103 # All Chrome builds have breakpad symbols, but only process the |
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2710 }, | 2711 }, |
2711 'profile': { | 2712 'profile': { |
2712 'cflags': ['-pg', '-g'], | 2713 'cflags': ['-pg', '-g'], |
2713 'ldflags': ['-pg'], | 2714 'ldflags': ['-pg'], |
2714 }, | 2715 }, |
2715 'symbols': { | 2716 'symbols': { |
2716 'cflags': ['-g'], | 2717 'cflags': ['-g'], |
2717 }, | 2718 }, |
2718 }, | 2719 }, |
2719 'conditions': [ | 2720 'conditions': [ |
2720 # Don't warn about the "typedef 'foo' locally defined but not used" | |
2721 # for gcc 4.8. | |
2722 # TODO: remove this flag once all builds work. See crbug.com/227506 | |
2723 [ 'gcc_version>=48', { | |
2724 'cflags': [ | |
2725 '-Wno-unused-local-typedefs', | |
2726 ], | |
2727 }], | |
2728 ['target_arch=="ia32"', { | 2721 ['target_arch=="ia32"', { |
2729 'target_conditions': [ | 2722 'target_conditions': [ |
2730 ['_toolset=="target"', { | 2723 ['_toolset=="target"', { |
2731 'asflags': [ | 2724 'asflags': [ |
2732 # Needed so that libs with .s files (e.g. libicudata.a) | 2725 # Needed so that libs with .s files (e.g. libicudata.a) |
2733 # are compatible with the general 32-bit-ness. | 2726 # are compatible with the general 32-bit-ness. |
2734 '-32', | 2727 '-32', |
2735 ], | 2728 ], |
2736 # All floating-point computations on x87 happens in 80-bit | 2729 # All floating-point computations on x87 happens in 80-bit |
2737 # precision. Because the C and C++ language standards allow | 2730 # precision. Because the C and C++ language standards allow |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4180 }, | 4173 }, |
4181 }, | 4174 }, |
4182 }], | 4175 }], |
4183 ['enable_new_npdevice_api==1', { | 4176 ['enable_new_npdevice_api==1', { |
4184 'target_defaults': { | 4177 'target_defaults': { |
4185 'defines': [ | 4178 'defines': [ |
4186 'ENABLE_NEW_NPDEVICE_API', | 4179 'ENABLE_NEW_NPDEVICE_API', |
4187 ], | 4180 ], |
4188 }, | 4181 }, |
4189 }], | 4182 }], |
| 4183 # Don't warn about the "typedef 'foo' locally defined but not used" |
| 4184 # for gcc 4.8. |
| 4185 # TODO: remove this flag once all builds work. See crbug.com/227506 |
| 4186 ['gcc_version>=48', { |
| 4187 'target_defaults': { |
| 4188 'cflags': [ |
| 4189 '-Wno-unused-local-typedefs', |
| 4190 ], |
| 4191 }, |
| 4192 }], |
4190 ['clang==1', { | 4193 ['clang==1', { |
4191 'conditions': [ | 4194 'conditions': [ |
4192 ['OS=="android"', { | 4195 ['OS=="android"', { |
4193 # Android could use the goma with clang. | 4196 # Android could use the goma with clang. |
4194 'make_global_settings': [ | 4197 'make_global_settings': [ |
4195 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make
_clang_dir)/bin/clang)'], | 4198 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make
_clang_dir)/bin/clang)'], |
4196 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak
e_clang_dir)/bin/clang++)'], | 4199 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak
e_clang_dir)/bin/clang++)'], |
4197 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(ma
ke_clang_dir)/bin/clang++)'], | 4200 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(ma
ke_clang_dir)/bin/clang++)'], |
4198 ['CC.host', '$(CC)'], | 4201 ['CC.host', '$(CC)'], |
4199 ['CXX.host', '$(CXX)'], | 4202 ['CXX.host', '$(CXX)'], |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4285 # settings in target dicts. SYMROOT is a special case, because many other | 4288 # settings in target dicts. SYMROOT is a special case, because many other |
4286 # Xcode variables depend on it, including variables such as | 4289 # Xcode variables depend on it, including variables such as |
4287 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4290 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4288 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4291 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4289 # files to appear (when present) in the UI as actual files and not red | 4292 # files to appear (when present) in the UI as actual files and not red |
4290 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4293 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4291 # and therefore SYMROOT, needs to be set at the project level. | 4294 # and therefore SYMROOT, needs to be set at the project level. |
4292 'SYMROOT': '<(DEPTH)/xcodebuild', | 4295 'SYMROOT': '<(DEPTH)/xcodebuild', |
4293 }, | 4296 }, |
4294 } | 4297 } |
OLD | NEW |