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 |
88 # Override buildtype to select the desired build flavor. | 93 # Override buildtype to select the desired build flavor. |
89 # Dev - everyday build for development/testing | 94 # Dev - everyday build for development/testing |
90 # Official - release build (generally implies additional processing) | 95 # Official - release build (generally implies additional processing) |
91 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 96 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
92 # conversion is done), some of the things which are now controlled by | 97 # conversion is done), some of the things which are now controlled by |
93 # 'branding', such as symbol generation, will need to be refactored | 98 # 'branding', such as symbol generation, will need to be refactored |
94 # based on 'buildtype' (i.e. we don't care about saving symbols for | 99 # based on 'buildtype' (i.e. we don't care about saving symbols for |
95 # non-Official # builds). | 100 # non-Official # builds). |
96 'buildtype%': 'Dev', | 101 'buildtype%': 'Dev', |
97 | 102 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 'use_clipboard_aurax11%': 0, | 175 'use_clipboard_aurax11%': 0, |
171 | 176 |
172 # goma settings. | 177 # goma settings. |
173 # 1 to use goma. | 178 # 1 to use goma. |
174 # If no gomadir is set, it uses the default gomadir. | 179 # If no gomadir is set, it uses the default gomadir. |
175 'use_goma%': 0, | 180 'use_goma%': 0, |
176 'gomadir%': '', | 181 'gomadir%': '', |
177 | 182 |
178 # The system root for cross-compiles. Default: none. | 183 # The system root for cross-compiles. Default: none. |
179 'sysroot%': '', | 184 'sysroot%': '', |
180 'use_sysroot%': 0, | |
181 'chroot_cmd%': '', | 185 'chroot_cmd%': '', |
182 | 186 |
183 # The system libdir used for this ABI. | 187 # The system libdir used for this ABI. |
184 'system_libdir%': 'lib', | 188 'system_libdir%': 'lib', |
185 | 189 |
186 # Default MIPS arch variant. This is set in the conditions block | 190 # Default MIPS arch variant. This is set in the conditions block |
187 # below for MIPS targets. | 191 # below for MIPS targets. |
188 'mips_arch_variant%': '', | 192 'mips_arch_variant%': '', |
189 | 193 |
190 # MIPS DSP ASE revision. Possible values are: | 194 # MIPS DSP ASE revision. Possible values are: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 'mips_arch_variant%': 'r6', | 279 'mips_arch_variant%': 'r6', |
276 }, { | 280 }, { |
277 'mips_arch_variant%': 'r2', | 281 'mips_arch_variant%': 'r2', |
278 }], | 282 }], |
279 ], | 283 ], |
280 }], | 284 }], |
281 | 285 |
282 ['target_arch=="mipsel"', { | 286 ['target_arch=="mipsel"', { |
283 'mips_arch_variant%': 'r1', | 287 'mips_arch_variant%': 'r1', |
284 }], | 288 }], |
| 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 }], |
285 ], | 310 ], |
286 }, | 311 }, |
287 | 312 |
288 # Copy conditionally-set variables out one scope. | 313 # Copy conditionally-set variables out one scope. |
289 'chromeos%': '<(chromeos)', | 314 'chromeos%': '<(chromeos)', |
290 'chromecast%': '<(chromecast)', | 315 'chromecast%': '<(chromecast)', |
291 'host_arch%': '<(host_arch)', | 316 'host_arch%': '<(host_arch)', |
292 'target_arch%': '<(target_arch)', | 317 'target_arch%': '<(target_arch)', |
293 'target_subarch%': '<(target_subarch)', | 318 'target_subarch%': '<(target_subarch)', |
294 'mips_arch_variant%': '<(mips_arch_variant)', | 319 'mips_arch_variant%': '<(mips_arch_variant)', |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 'enable_print_preview%': 1, | 951 'enable_print_preview%': 1, |
927 }], | 952 }], |
928 | 953 |
929 # Do not enable the Settings App on ChromeOS. | 954 # Do not enable the Settings App on ChromeOS. |
930 ['enable_app_list==1 and chromeos==0', { | 955 ['enable_app_list==1 and chromeos==0', { |
931 'enable_settings_app%': 1, | 956 'enable_settings_app%': 1, |
932 }, { | 957 }, { |
933 'enable_settings_app%': 0, | 958 'enable_settings_app%': 0, |
934 }], | 959 }], |
935 | 960 |
936 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | |
937 # sysroot needs to be an absolute path otherwise it generates | |
938 # incorrect results when passed to pkg-config | |
939 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_w
heezy_arm-sysroot', | |
940 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | |
941 | |
942 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and chr
omeos==0) or use_sysroot==1)' , { | |
943 'conditions': [ | |
944 ['target_arch=="x64"', { | |
945 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_amd64-sysroot', | |
946 }], | |
947 ['target_arch=="ia32"', { | |
948 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_i386-sysroot', | |
949 }], | |
950 ], | |
951 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and c
hromeos==0 | |
952 | |
953 ['OS=="linux" and target_arch=="mipsel"', { | |
954 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', | |
955 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu
-gcc', | |
956 }], | |
957 | |
958 # Whether tests targets should be run, archived or just have the | 961 # Whether tests targets should be run, archived or just have the |
959 # dependencies verified. All the tests targets have the '_run' suffix, | 962 # dependencies verified. All the tests targets have the '_run' suffix, |
960 # e.g. base_unittests_run runs the target base_unittests. The test | 963 # e.g. base_unittests_run runs the target base_unittests. The test |
961 # target always calls tools/swarming_client/isolate.py. See the script's | 964 # target always calls tools/swarming_client/isolate.py. See the script's |
962 # --help for more information. Meant to be overriden with GYP_DEFINES. | 965 # --help for more information. Meant to be overriden with GYP_DEFINES. |
963 # TODO(maruel): Remove the conditions as more configurations are | 966 # TODO(maruel): Remove the conditions as more configurations are |
964 # supported. | 967 # supported. |
965 ['OS!="ios" and OS!="android" and chromeos==0', { | 968 ['OS!="ios" and OS!="android" and chromeos==0', { |
966 'test_isolation_mode%': 'check', | 969 'test_isolation_mode%': 'check', |
967 }, { | 970 }, { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 'enable_wifi_bootstrapping%' : 1, | 1005 'enable_wifi_bootstrapping%' : 1, |
1003 }], | 1006 }], |
1004 | 1007 |
1005 # Path to sas.dll, which provides the SendSAS function. | 1008 # Path to sas.dll, which provides the SendSAS function. |
1006 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.
85).aspx | 1009 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.
85).aspx |
1007 ['target_arch=="x64"', { | 1010 ['target_arch=="x64"', { |
1008 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a
md64', | 1011 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a
md64', |
1009 }, { | 1012 }, { |
1010 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x
86', | 1013 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x
86', |
1011 }], | 1014 }], |
| 1015 |
| 1016 ['sysroot!=""', { |
| 1017 'pkg-config': '<(DEPTH)/build/linux/pkg-config-wrapper "<(sysroot)" "<
(target_arch)" "<(system_libdir)"', |
| 1018 }, { |
| 1019 'pkg-config': 'pkg-config' |
| 1020 }], |
1012 ], | 1021 ], |
1013 | 1022 |
1014 # Setting this to '0' will cause V8's startup snapshot to be | 1023 # Setting this to '0' will cause V8's startup snapshot to be |
1015 # embedded in the binary instead of being a external files. | 1024 # embedded in the binary instead of being a external files. |
1016 'v8_use_external_startup_data%': 1, | 1025 'v8_use_external_startup_data%': 1, |
1017 | 1026 |
1018 # Set this to 1 to enable use of concatenated impulse responses | 1027 # Set this to 1 to enable use of concatenated impulse responses |
1019 # for the HRTF panner in WebAudio. | 1028 # for the HRTF panner in WebAudio. |
1020 'use_concatenated_impulse_responses': 1, | 1029 'use_concatenated_impulse_responses': 1, |
1021 | 1030 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 'use_xkbcommon%': '<(use_xkbcommon)', | 1111 'use_xkbcommon%': '<(use_xkbcommon)', |
1103 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 1112 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
1104 'desktop_linux%': '<(desktop_linux)', | 1113 'desktop_linux%': '<(desktop_linux)', |
1105 'use_x11%': '<(use_x11)', | 1114 'use_x11%': '<(use_x11)', |
1106 'use_gnome_keyring%': '<(use_gnome_keyring)', | 1115 'use_gnome_keyring%': '<(use_gnome_keyring)', |
1107 'linux_fpic%': '<(linux_fpic)', | 1116 'linux_fpic%': '<(linux_fpic)', |
1108 'chromeos%': '<(chromeos)', | 1117 'chromeos%': '<(chromeos)', |
1109 'chromecast%': '<(chromecast)', | 1118 'chromecast%': '<(chromecast)', |
1110 'enable_viewport%': '<(enable_viewport)', | 1119 'enable_viewport%': '<(enable_viewport)', |
1111 'enable_hidpi%': '<(enable_hidpi)', | 1120 'enable_hidpi%': '<(enable_hidpi)', |
1112 » 'enable_topchrome_md%': '<(enable_topchrome_md)', | 1121 'enable_topchrome_md%': '<(enable_topchrome_md)', |
1113 'image_loader_extension%': '<(image_loader_extension)', | 1122 'image_loader_extension%': '<(image_loader_extension)', |
1114 'fastbuild%': '<(fastbuild)', | 1123 'fastbuild%': '<(fastbuild)', |
1115 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', | 1124 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', |
1116 'win_z7%': '<(win_z7)', | 1125 'win_z7%': '<(win_z7)', |
1117 'dcheck_always_on%': '<(dcheck_always_on)', | 1126 'dcheck_always_on%': '<(dcheck_always_on)', |
1118 'tracing_like_official_build%': '<(tracing_like_official_build)', | 1127 'tracing_like_official_build%': '<(tracing_like_official_build)', |
1119 'arm_version%': '<(arm_version)', | 1128 'arm_version%': '<(arm_version)', |
1120 'arm_neon%': '<(arm_neon)', | 1129 'arm_neon%': '<(arm_neon)', |
1121 'arm_neon_optional%': '<(arm_neon_optional)', | 1130 'arm_neon_optional%': '<(arm_neon_optional)', |
1122 'sysroot%': '<(sysroot)', | 1131 'sysroot%': '<(sysroot)', |
| 1132 'pkg-config%': '<(pkg-config)', |
1123 'chroot_cmd%': '<(chroot_cmd)', | 1133 'chroot_cmd%': '<(chroot_cmd)', |
1124 'system_libdir%': '<(system_libdir)', | 1134 'system_libdir%': '<(system_libdir)', |
1125 'component%': '<(component)', | 1135 'component%': '<(component)', |
1126 'win_analyze%': '<(win_analyze)', | 1136 'win_analyze%': '<(win_analyze)', |
1127 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', | 1137 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', |
1128 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', | 1138 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', |
1129 'use_third_party_translations%': '<(use_third_party_translations)', | 1139 'use_third_party_translations%': '<(use_third_party_translations)', |
1130 'remoting%': '<(remoting)', | 1140 'remoting%': '<(remoting)', |
1131 'enable_one_click_signin%': '<(enable_one_click_signin)', | 1141 'enable_one_click_signin%': '<(enable_one_click_signin)', |
1132 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', | 1142 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1591 'windows_driver_kit_path%': '$(WDK_DIR)', | 1601 'windows_driver_kit_path%': '$(WDK_DIR)', |
1592 }], | 1602 }], |
1593 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 1603 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
1594 'conditions': [ | 1604 'conditions': [ |
1595 ['target_arch=="mipsel" or target_arch=="mips64el"', { | 1605 ['target_arch=="mipsel" or target_arch=="mips64el"', { |
1596 'werror%': '', | 1606 'werror%': '', |
1597 'disable_nacl%': 1, | 1607 'disable_nacl%': 1, |
1598 'nacl_untrusted_build%': 0, | 1608 'nacl_untrusted_build%': 0, |
1599 'use_allocator%': 'none', | 1609 'use_allocator%': 'none', |
1600 }], | 1610 }], |
1601 ['OS=="linux" and target_arch=="mipsel"', { | |
1602 'sysroot%': '<(sysroot)', | |
1603 'CXX%': '<(CXX)', | |
1604 }], | |
1605 # Use a 64-bit linker to avoid running out of address space. The | 1611 # Use a 64-bit linker to avoid running out of address space. The |
1606 # buildbots should have a 64-bit kernel and a 64-bit libc installed. | 1612 # buildbots should have a 64-bit kernel and a 64-bit libc installed. |
1607 ['host_arch=="ia32" and target_arch=="ia32"', { | 1613 ['host_arch=="ia32" and target_arch=="ia32"', { |
1608 # TODO(thestig) This is a horrible way to force the desired | 1614 # TODO(thestig) This is a horrible way to force the desired |
1609 # configuration. Our gyp variable scoping is likely wrong and | 1615 # configuration. Our gyp variable scoping is likely wrong and |
1610 # needs to be cleaned up. The GN configuration should be changed | 1616 # needs to be cleaned up. The GN configuration should be changed |
1611 # to match. | 1617 # to match. |
1612 'binutils_version%': 224, | 1618 'binutils_version%': 224, |
1613 'linux_use_bundled_binutils%': '1', | 1619 'linux_use_bundled_binutils%': '1', |
1614 'linux_use_bundled_gold%': '1', | 1620 'linux_use_bundled_gold%': '1', |
(...skipping 4569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6184 # settings in target dicts. SYMROOT is a special case, because many other | 6190 # settings in target dicts. SYMROOT is a special case, because many other |
6185 # Xcode variables depend on it, including variables such as | 6191 # Xcode variables depend on it, including variables such as |
6186 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6192 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6187 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6193 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6188 # files to appear (when present) in the UI as actual files and not red | 6194 # files to appear (when present) in the UI as actual files and not red |
6189 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6195 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6190 # and therefore SYMROOT, needs to be set at the project level. | 6196 # and therefore SYMROOT, needs to be set at the project level. |
6191 'SYMROOT': '<(DEPTH)/xcodebuild', | 6197 'SYMROOT': '<(DEPTH)/xcodebuild', |
6192 }, | 6198 }, |
6193 } | 6199 } |
OLD | NEW |