Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: build/common.gypi

Issue 1151753002: Fix use of 'sysroot' variable in harfbuzz.gyp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-g nu-gcc',
310 }],
285 ], 311 ],
286 }, 312 },
287 313
288 # Copy conditionally-set variables out one scope. 314 # Copy conditionally-set variables out one scope.
289 'chromeos%': '<(chromeos)', 315 'chromeos%': '<(chromeos)',
290 'chromecast%': '<(chromecast)', 316 'chromecast%': '<(chromecast)',
291 'host_arch%': '<(host_arch)', 317 'host_arch%': '<(host_arch)',
292 'target_arch%': '<(target_arch)', 318 'target_arch%': '<(target_arch)',
293 'target_subarch%': '<(target_subarch)', 319 'target_subarch%': '<(target_subarch)',
294 'mips_arch_variant%': '<(mips_arch_variant)', 320 'mips_arch_variant%': '<(mips_arch_variant)',
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 'enable_print_preview%': 1, 962 'enable_print_preview%': 1,
937 }], 963 }],
938 964
939 # Do not enable the Settings App on ChromeOS. 965 # Do not enable the Settings App on ChromeOS.
940 ['enable_app_list==1 and chromeos==0', { 966 ['enable_app_list==1 and chromeos==0', {
941 'enable_settings_app%': 1, 967 'enable_settings_app%': 1,
942 }, { 968 }, {
943 'enable_settings_app%': 0, 969 'enable_settings_app%': 0,
944 }], 970 }],
945 971
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
968 # Whether tests targets should be run, archived or just have the 972 # Whether tests targets should be run, archived or just have the
969 # dependencies verified. All the tests targets have the '_run' suffix, 973 # dependencies verified. All the tests targets have the '_run' suffix,
970 # e.g. base_unittests_run runs the target base_unittests. The test 974 # e.g. base_unittests_run runs the target base_unittests. The test
971 # target always calls tools/swarming_client/isolate.py. See the script's 975 # target always calls tools/swarming_client/isolate.py. See the script's
972 # --help for more information. Meant to be overriden with GYP_DEFINES. 976 # --help for more information. Meant to be overriden with GYP_DEFINES.
973 # TODO(maruel): Remove the conditions as more configurations are 977 # TODO(maruel): Remove the conditions as more configurations are
974 # supported. 978 # supported.
975 ['OS!="ios" and OS!="android" and chromeos==0', { 979 ['OS!="ios" and OS!="android" and chromeos==0', {
976 'test_isolation_mode%': 'check', 980 'test_isolation_mode%': 'check',
977 }, { 981 }, {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 'enable_wifi_bootstrapping%' : 1, 1016 'enable_wifi_bootstrapping%' : 1,
1013 }], 1017 }],
1014 1018
1015 # Path to sas.dll, which provides the SendSAS function. 1019 # Path to sas.dll, which provides the SendSAS function.
1016 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs. 85).aspx 1020 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs. 85).aspx
1017 ['target_arch=="x64"', { 1021 ['target_arch=="x64"', {
1018 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a md64', 1022 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a md64',
1019 }, { 1023 }, {
1020 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x 86', 1024 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x 86',
1021 }], 1025 }],
1026
1027 ['sysroot!=""', {
1028 'pkg-config': '<(DEPTH)/build/linux/pkg-config-wrapper "<(sysroot)" "< (target_arch)" "<(system_libdir)"',
1029 }, {
1030 'pkg-config': 'pkg-config'
1031 }],
1022 ], 1032 ],
1023 1033
1024 # Setting this to '0' will cause V8's startup snapshot to be 1034 # Setting this to '0' will cause V8's startup snapshot to be
1025 # embedded in the binary instead of being a external files. 1035 # embedded in the binary instead of being a external files.
1026 'v8_use_external_startup_data%': 1, 1036 'v8_use_external_startup_data%': 1,
1027 1037
1028 # Set this to 1 to enable use of concatenated impulse responses 1038 # Set this to 1 to enable use of concatenated impulse responses
1029 # for the HRTF panner in WebAudio. 1039 # for the HRTF panner in WebAudio.
1030 'use_concatenated_impulse_responses': 1, 1040 'use_concatenated_impulse_responses': 1,
1031 1041
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 'image_loader_extension%': '<(image_loader_extension)', 1133 'image_loader_extension%': '<(image_loader_extension)',
1124 'fastbuild%': '<(fastbuild)', 1134 'fastbuild%': '<(fastbuild)',
1125 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', 1135 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)',
1126 'win_z7%': '<(win_z7)', 1136 'win_z7%': '<(win_z7)',
1127 'dcheck_always_on%': '<(dcheck_always_on)', 1137 'dcheck_always_on%': '<(dcheck_always_on)',
1128 'tracing_like_official_build%': '<(tracing_like_official_build)', 1138 'tracing_like_official_build%': '<(tracing_like_official_build)',
1129 'arm_version%': '<(arm_version)', 1139 'arm_version%': '<(arm_version)',
1130 'arm_neon%': '<(arm_neon)', 1140 'arm_neon%': '<(arm_neon)',
1131 'arm_neon_optional%': '<(arm_neon_optional)', 1141 'arm_neon_optional%': '<(arm_neon_optional)',
1132 'sysroot%': '<(sysroot)', 1142 'sysroot%': '<(sysroot)',
1143 'pkg-config%': '<(pkg-config)',
1133 'chroot_cmd%': '<(chroot_cmd)', 1144 'chroot_cmd%': '<(chroot_cmd)',
1134 'system_libdir%': '<(system_libdir)', 1145 'system_libdir%': '<(system_libdir)',
1135 'component%': '<(component)', 1146 'component%': '<(component)',
1136 'win_analyze%': '<(win_analyze)', 1147 'win_analyze%': '<(win_analyze)',
1137 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)', 1148 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)',
1138 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', 1149 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)',
1139 'use_third_party_translations%': '<(use_third_party_translations)', 1150 'use_third_party_translations%': '<(use_third_party_translations)',
1140 'remoting%': '<(remoting)', 1151 'remoting%': '<(remoting)',
1141 'enable_one_click_signin%': '<(enable_one_click_signin)', 1152 'enable_one_click_signin%': '<(enable_one_click_signin)',
1142 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', 1153 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)',
(...skipping 5100 matching lines...) Expand 10 before | Expand all | Expand 10 after
6243 # settings in target dicts. SYMROOT is a special case, because many other 6254 # settings in target dicts. SYMROOT is a special case, because many other
6244 # Xcode variables depend on it, including variables such as 6255 # Xcode variables depend on it, including variables such as
6245 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6256 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6246 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6257 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6247 # files to appear (when present) in the UI as actual files and not red 6258 # files to appear (when present) in the UI as actual files and not red
6248 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6259 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6249 # and therefore SYMROOT, needs to be set at the project level. 6260 # and therefore SYMROOT, needs to be set at the project level.
6250 'SYMROOT': '<(DEPTH)/xcodebuild', 6261 'SYMROOT': '<(DEPTH)/xcodebuild',
6251 }, 6262 },
6252 } 6263 }
OLDNEW
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698