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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 # Disable viewport meta tag by default. | 79 # Disable viewport meta tag by default. |
80 'enable_viewport%': 0, | 80 'enable_viewport%': 0, |
81 | 81 |
82 # Enable HiDPI support. | 82 # Enable HiDPI support. |
83 'enable_hidpi%': 0, | 83 'enable_hidpi%': 0, |
84 | 84 |
85 # Enable top chrome material design. | 85 # Enable top chrome material design. |
86 'enable_topchrome_md%' : 0, | 86 'enable_topchrome_md%' : 0, |
87 | 87 |
88 # Force building against pre-built sysroot image on linux. By default | |
89 # the sysroot image is only used for Official builds or when cross | |
90 # compiling to arm or mips. | |
91 'use_sysroot%': 0, | |
92 | |
93 # Override buildtype to select the desired build flavor. | 88 # Override buildtype to select the desired build flavor. |
94 # Dev - everyday build for development/testing | 89 # Dev - everyday build for development/testing |
95 # Official - release build (generally implies additional processing) | 90 # Official - release build (generally implies additional processing) |
96 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 91 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
97 # conversion is done), some of the things which are now controlled by | 92 # conversion is done), some of the things which are now controlled by |
98 # 'branding', such as symbol generation, will need to be refactored | 93 # 'branding', such as symbol generation, will need to be refactored |
99 # based on 'buildtype' (i.e. we don't care about saving symbols for | 94 # based on 'buildtype' (i.e. we don't care about saving symbols for |
100 # non-Official # builds). | 95 # non-Official # builds). |
101 'buildtype%': 'Dev', | 96 'buildtype%': 'Dev', |
102 | 97 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 'use_clipboard_aurax11%': 0, | 170 'use_clipboard_aurax11%': 0, |
176 | 171 |
177 # goma settings. | 172 # goma settings. |
178 # 1 to use goma. | 173 # 1 to use goma. |
179 # If no gomadir is set, it uses the default gomadir. | 174 # If no gomadir is set, it uses the default gomadir. |
180 'use_goma%': 0, | 175 'use_goma%': 0, |
181 'gomadir%': '', | 176 'gomadir%': '', |
182 | 177 |
183 # The system root for cross-compiles. Default: none. | 178 # The system root for cross-compiles. Default: none. |
184 'sysroot%': '', | 179 'sysroot%': '', |
| 180 'use_sysroot%': 0, |
185 'chroot_cmd%': '', | 181 'chroot_cmd%': '', |
186 | 182 |
187 # The system libdir used for this ABI. | 183 # The system libdir used for this ABI. |
188 'system_libdir%': 'lib', | 184 'system_libdir%': 'lib', |
189 | 185 |
190 # Default MIPS arch variant. This is set in the conditions block | 186 # Default MIPS arch variant. This is set in the conditions block |
191 # below for MIPS targets. | 187 # below for MIPS targets. |
192 'mips_arch_variant%': '', | 188 'mips_arch_variant%': '', |
193 | 189 |
194 # MIPS DSP ASE revision. Possible values are: | 190 # MIPS DSP ASE revision. Possible values are: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 'mips_arch_variant%': 'r6', | 275 'mips_arch_variant%': 'r6', |
280 }, { | 276 }, { |
281 'mips_arch_variant%': 'r2', | 277 'mips_arch_variant%': 'r2', |
282 }], | 278 }], |
283 ], | 279 ], |
284 }], | 280 }], |
285 | 281 |
286 ['target_arch=="mipsel"', { | 282 ['target_arch=="mipsel"', { |
287 'mips_arch_variant%': 'r1', | 283 'mips_arch_variant%': 'r1', |
288 }], | 284 }], |
289 | |
290 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | |
291 # sysroot needs to be an absolute path otherwise it generates | |
292 # incorrect results when passed to pkg-config | |
293 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian
_wheezy_arm-sysroot', | |
294 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | |
295 | |
296 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and c
hromeos==0) or use_sysroot==1)' , { | |
297 'conditions': [ | |
298 ['target_arch=="x64"', { | |
299 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/de
bian_wheezy_amd64-sysroot', | |
300 }], | |
301 ['target_arch=="ia32"', { | |
302 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/de
bian_wheezy_i386-sysroot', | |
303 }], | |
304 ], | |
305 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and
chromeos==0 | |
306 | |
307 ['OS=="linux" and target_arch=="mipsel"', { | |
308 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', | |
309 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-g
nu-gcc', | |
310 }], | |
311 ], | 285 ], |
312 }, | 286 }, |
313 | 287 |
314 # Copy conditionally-set variables out one scope. | 288 # Copy conditionally-set variables out one scope. |
315 'chromeos%': '<(chromeos)', | 289 'chromeos%': '<(chromeos)', |
316 'chromecast%': '<(chromecast)', | 290 'chromecast%': '<(chromecast)', |
317 'host_arch%': '<(host_arch)', | 291 'host_arch%': '<(host_arch)', |
318 'target_arch%': '<(target_arch)', | 292 'target_arch%': '<(target_arch)', |
319 'target_subarch%': '<(target_subarch)', | 293 'target_subarch%': '<(target_subarch)', |
320 'mips_arch_variant%': '<(mips_arch_variant)', | 294 'mips_arch_variant%': '<(mips_arch_variant)', |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 'enable_print_preview%': 1, | 936 'enable_print_preview%': 1, |
963 }], | 937 }], |
964 | 938 |
965 # Do not enable the Settings App on ChromeOS. | 939 # Do not enable the Settings App on ChromeOS. |
966 ['enable_app_list==1 and chromeos==0', { | 940 ['enable_app_list==1 and chromeos==0', { |
967 'enable_settings_app%': 1, | 941 'enable_settings_app%': 1, |
968 }, { | 942 }, { |
969 'enable_settings_app%': 0, | 943 'enable_settings_app%': 0, |
970 }], | 944 }], |
971 | 945 |
| 946 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
| 947 # sysroot needs to be an absolute path otherwise it generates |
| 948 # incorrect results when passed to pkg-config |
| 949 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_w
heezy_arm-sysroot', |
| 950 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
| 951 |
| 952 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and chr
omeos==0) or use_sysroot==1)' , { |
| 953 'conditions': [ |
| 954 ['target_arch=="x64"', { |
| 955 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_amd64-sysroot', |
| 956 }], |
| 957 ['target_arch=="ia32"', { |
| 958 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_i386-sysroot', |
| 959 }], |
| 960 ], |
| 961 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and c
hromeos==0 |
| 962 |
| 963 ['OS=="linux" and target_arch=="mipsel"', { |
| 964 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', |
| 965 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu
-gcc', |
| 966 }], |
| 967 |
972 # Whether tests targets should be run, archived or just have the | 968 # Whether tests targets should be run, archived or just have the |
973 # dependencies verified. All the tests targets have the '_run' suffix, | 969 # dependencies verified. All the tests targets have the '_run' suffix, |
974 # e.g. base_unittests_run runs the target base_unittests. The test | 970 # e.g. base_unittests_run runs the target base_unittests. The test |
975 # target always calls tools/swarming_client/isolate.py. See the script's | 971 # target always calls tools/swarming_client/isolate.py. See the script's |
976 # --help for more information. Meant to be overriden with GYP_DEFINES. | 972 # --help for more information. Meant to be overriden with GYP_DEFINES. |
977 # TODO(maruel): Remove the conditions as more configurations are | 973 # TODO(maruel): Remove the conditions as more configurations are |
978 # supported. | 974 # supported. |
979 ['OS!="ios" and OS!="android" and chromeos==0', { | 975 ['OS!="ios" and OS!="android" and chromeos==0', { |
980 'test_isolation_mode%': 'check', | 976 'test_isolation_mode%': 'check', |
981 }, { | 977 }, { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 'enable_wifi_bootstrapping%' : 1, | 1012 'enable_wifi_bootstrapping%' : 1, |
1017 }], | 1013 }], |
1018 | 1014 |
1019 # Path to sas.dll, which provides the SendSAS function. | 1015 # Path to sas.dll, which provides the SendSAS function. |
1020 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.
85).aspx | 1016 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.
85).aspx |
1021 ['target_arch=="x64"', { | 1017 ['target_arch=="x64"', { |
1022 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a
md64', | 1018 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a
md64', |
1023 }, { | 1019 }, { |
1024 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x
86', | 1020 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x
86', |
1025 }], | 1021 }], |
1026 | |
1027 ['sysroot!=""', { | |
1028 'pkg-config': '<(DEPTH)/build/linux/pkg-config-wrapper "<(sysroot)" "<
(target_arch)" "<(system_libdir)"', | |
1029 }, { | |
1030 'pkg-config': 'pkg-config' | |
1031 }], | |
1032 ], | 1022 ], |
1033 | 1023 |
1034 # Setting this to '0' will cause V8's startup snapshot to be | 1024 # Setting this to '0' will cause V8's startup snapshot to be |
1035 # embedded in the binary instead of being a external files. | 1025 # embedded in the binary instead of being a external files. |
1036 'v8_use_external_startup_data%': 1, | 1026 'v8_use_external_startup_data%': 1, |
1037 | 1027 |
1038 # Set this to 1 to enable use of concatenated impulse responses | 1028 # Set this to 1 to enable use of concatenated impulse responses |
1039 # for the HRTF panner in WebAudio. | 1029 # for the HRTF panner in WebAudio. |
1040 'use_concatenated_impulse_responses': 1, | 1030 'use_concatenated_impulse_responses': 1, |
1041 | 1031 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 'image_loader_extension%': '<(image_loader_extension)', | 1123 'image_loader_extension%': '<(image_loader_extension)', |
1134 'fastbuild%': '<(fastbuild)', | 1124 'fastbuild%': '<(fastbuild)', |
1135 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', | 1125 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', |
1136 'win_z7%': '<(win_z7)', | 1126 'win_z7%': '<(win_z7)', |
1137 'dcheck_always_on%': '<(dcheck_always_on)', | 1127 'dcheck_always_on%': '<(dcheck_always_on)', |
1138 'tracing_like_official_build%': '<(tracing_like_official_build)', | 1128 'tracing_like_official_build%': '<(tracing_like_official_build)', |
1139 'arm_version%': '<(arm_version)', | 1129 'arm_version%': '<(arm_version)', |
1140 'arm_neon%': '<(arm_neon)', | 1130 'arm_neon%': '<(arm_neon)', |
1141 'arm_neon_optional%': '<(arm_neon_optional)', | 1131 'arm_neon_optional%': '<(arm_neon_optional)', |
1142 'sysroot%': '<(sysroot)', | 1132 'sysroot%': '<(sysroot)', |
1143 'pkg-config%': '<(pkg-config)', | |
1144 'chroot_cmd%': '<(chroot_cmd)', | 1133 'chroot_cmd%': '<(chroot_cmd)', |
1145 'system_libdir%': '<(system_libdir)', | 1134 'system_libdir%': '<(system_libdir)', |
1146 'component%': '<(component)', | 1135 'component%': '<(component)', |
1147 'win_analyze%': '<(win_analyze)', | 1136 'win_analyze%': '<(win_analyze)', |
1148 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', | 1137 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', |
1149 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', | 1138 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', |
1150 'use_third_party_translations%': '<(use_third_party_translations)', | 1139 'use_third_party_translations%': '<(use_third_party_translations)', |
1151 'remoting%': '<(remoting)', | 1140 'remoting%': '<(remoting)', |
1152 'enable_one_click_signin%': '<(enable_one_click_signin)', | 1141 'enable_one_click_signin%': '<(enable_one_click_signin)', |
1153 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', | 1142 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', |
(...skipping 5100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6254 # settings in target dicts. SYMROOT is a special case, because many other | 6243 # settings in target dicts. SYMROOT is a special case, because many other |
6255 # Xcode variables depend on it, including variables such as | 6244 # Xcode variables depend on it, including variables such as |
6256 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6245 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6257 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6246 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6258 # files to appear (when present) in the UI as actual files and not red | 6247 # files to appear (when present) in the UI as actual files and not red |
6259 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6248 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6260 # and therefore SYMROOT, needs to be set at the project level. | 6249 # and therefore SYMROOT, needs to be set at the project level. |
6261 'SYMROOT': '<(DEPTH)/xcodebuild', | 6250 'SYMROOT': '<(DEPTH)/xcodebuild', |
6262 }, | 6251 }, |
6263 } | 6252 } |
OLD | NEW |