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

Side by Side Diff: build/common.gypi

Issue 203163003: Use the system provided harfbuzz on chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « build/check_return_value.py ('k') | third_party/harfbuzz-ng/harfbuzz.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 17 matching lines...) Expand all
28 'use_ash%': 0, 28 'use_ash%': 0,
29 29
30 # Whether or not we are using CRAS, the ChromeOS Audio Server. 30 # Whether or not we are using CRAS, the ChromeOS Audio Server.
31 'use_cras%': 0, 31 'use_cras%': 0,
32 32
33 # Use a raw surface abstraction. 33 # Use a raw surface abstraction.
34 'use_ozone%': 0, 34 'use_ozone%': 0,
35 35
36 # Configure the build for small devices. See crbug.com/318413 36 # Configure the build for small devices. See crbug.com/318413
37 'embedded%': 0, 37 'embedded%': 0,
38
39 'conditions': [
40 # Compute the architecture that we're building on.
41 ['OS=="win" or OS=="mac" or OS=="ios"', {
42 'host_arch%': 'ia32',
43 }, {
44 'host_arch%': '<!(python <(DEPTH)/build/linux/detect_host_arch.p y)',
45 }],
46 ],
38 }, 47 },
39 # Copy conditionally-set variables out one scope. 48 # Copy conditionally-set variables out one scope.
40 'chromeos%': '<(chromeos)', 49 'chromeos%': '<(chromeos)',
41 'use_aura%': '<(use_aura)', 50 'use_aura%': '<(use_aura)',
42 'use_ash%': '<(use_ash)', 51 'use_ash%': '<(use_ash)',
43 'use_cras%': '<(use_cras)', 52 'use_cras%': '<(use_cras)',
44 'use_ozone%': '<(use_ozone)', 53 'use_ozone%': '<(use_ozone)',
45 'embedded%': '<(embedded)', 54 'embedded%': '<(embedded)',
55 'host_arch%': '<(host_arch)',
46 56
47 # Whether we are using Views Toolkit 57 # Whether we are using Views Toolkit
48 'toolkit_views%': 0, 58 'toolkit_views%': 0,
49 59
50 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 60 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803
51 'use_openssl%': 0, 61 'use_openssl%': 0,
52 62
53 # Disable viewport meta tag by default. 63 # Disable viewport meta tag by default.
54 'enable_viewport%': 0, 64 'enable_viewport%': 0,
55 65
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 'use_aura%': 1, 99 'use_aura%': 1,
90 }], 100 }],
91 101
92 # Whether we're a traditional desktop unix. 102 # Whether we're a traditional desktop unix.
93 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { 103 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', {
94 'desktop_linux%': 1, 104 'desktop_linux%': 1,
95 }, { 105 }, {
96 'desktop_linux%': 0, 106 'desktop_linux%': 0,
97 }], 107 }],
98 108
99 # Compute the architecture that we're building on.
100 ['OS=="win" or OS=="mac" or OS=="ios"', {
101 'host_arch%': 'ia32',
102 }, {
103 'host_arch%': '<!(python <(DEPTH)/build/linux/detect_host_arch.py) ',
104 }],
105
106 # Embedded implies ozone. 109 # Embedded implies ozone.
107 ['embedded==1', { 110 ['embedded==1', {
108 'use_ozone%': 1, 111 'use_ozone%': 1,
109 }], 112 }],
110 113
111 ['embedded==1', { 114 ['embedded==1', {
112 'use_system_fontconfig%': 0, 115 'use_system_fontconfig%': 0,
113 }, { 116 }, {
114 'use_system_fontconfig%': 1, 117 'use_system_fontconfig%': 1,
115 }], 118 }],
119
120 ['OS=="android"', {
121 'target_arch%': 'arm',
122 }, {
123 # Default architecture we're building for is the architecture we'r e
124 # building on, and possibly sub-architecture (for iOS builds).
125 'target_arch%': '<(host_arch)',
126 }],
116 ], 127 ],
117 }, 128 },
118 # Copy conditionally-set variables out one scope. 129 # Copy conditionally-set variables out one scope.
119 'chromeos%': '<(chromeos)', 130 'chromeos%': '<(chromeos)',
120 'desktop_linux%': '<(desktop_linux)', 131 'desktop_linux%': '<(desktop_linux)',
121 'use_aura%': '<(use_aura)', 132 'use_aura%': '<(use_aura)',
122 'use_ash%': '<(use_ash)', 133 'use_ash%': '<(use_ash)',
123 'use_cras%': '<(use_cras)', 134 'use_cras%': '<(use_cras)',
124 'use_ozone%': '<(use_ozone)', 135 'use_ozone%': '<(use_ozone)',
125 'embedded%': '<(embedded)', 136 'embedded%': '<(embedded)',
126 'use_openssl%': '<(use_openssl)', 137 'use_openssl%': '<(use_openssl)',
127 'use_system_fontconfig%': '<(use_system_fontconfig)', 138 'use_system_fontconfig%': '<(use_system_fontconfig)',
128 'enable_viewport%': '<(enable_viewport)', 139 'enable_viewport%': '<(enable_viewport)',
129 'enable_hidpi%': '<(enable_hidpi)', 140 'enable_hidpi%': '<(enable_hidpi)',
130 'buildtype%': '<(buildtype)', 141 'buildtype%': '<(buildtype)',
131 'branding%': '<(branding)', 142 'branding%': '<(branding)',
132 'host_arch%': '<(host_arch)', 143 'host_arch%': '<(host_arch)',
144 'target_arch%': '<(target_arch)',
133 145
134 'target_subarch%': '', 146 'target_subarch%': '',
135 147
136 # This is set when building the Android WebView inside the Android 148 # This is set when building the Android WebView inside the Android
137 # build system, using the 'android' gyp backend. The WebView code is 149 # build system, using the 'android' gyp backend. The WebView code is
138 # still built when this is unset, but builds using the normal chromium 150 # still built when this is unset, but builds using the normal chromium
139 # build system. 151 # build system.
140 'android_webview_build%': 0, 152 'android_webview_build%': 0,
141 153
142 # Set ARM architecture version. 154 # Set ARM architecture version.
143 'arm_version%': 7, 155 'arm_version%': 7,
144 156
145 # Use aurax11 for clipboard implementation. This is true on linux_aura. 157 # Use aurax11 for clipboard implementation. This is true on linux_aura.
146 'use_clipboard_aurax11%': 0, 158 'use_clipboard_aurax11%': 0,
147 159
148 # goma settings. 160 # goma settings.
149 # 1 to use goma. 161 # 1 to use goma.
150 # If no gomadir is set, it uses the default gomadir. 162 # If no gomadir is set, it uses the default gomadir.
151 'use_goma%': 0, 163 'use_goma%': 0,
152 'gomadir%': '', 164 'gomadir%': '',
153 165
166 # The system root for cross-compiles. Default: none.
167 'sysroot%': '',
168 'chroot_cmd%': '',
169
154 'conditions': [ 170 'conditions': [
155 # Ash needs Aura. 171 # Ash needs Aura.
156 ['use_aura==0', { 172 ['use_aura==0', {
157 'use_ash%': 0, 173 'use_ash%': 0,
158 }], 174 }],
159 175
160 # Set default value of toolkit_views based on OS. 176 # Set default value of toolkit_views based on OS.
161 ['OS=="win" or chromeos==1 or use_aura==1', { 177 ['OS=="win" or chromeos==1 or use_aura==1', {
162 'toolkit_views%': 1, 178 'toolkit_views%': 1,
163 }, { 179 }, {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 # "arm64" and "both" (meaning a fat binary). 230 # "arm64" and "both" (meaning a fat binary).
215 # 231 #
216 # TODO(sdefresne): change the default from "arm32" to "both" for 232 # TODO(sdefresne): change the default from "arm32" to "both" for
217 # "target_subarch" once http://crbug.com/339477 is fixed. 233 # "target_subarch" once http://crbug.com/339477 is fixed.
218 # 234 #
219 # TODO(sdefresne): set the "target_arch" to "arm" once compilation 235 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
220 # of skia has been fixed for simulator. http://crbug.com/342377 236 # of skia has been fixed for simulator. http://crbug.com/342377
221 ['OS=="ios"', { 237 ['OS=="ios"', {
222 'target_subarch%': 'arm32', 238 'target_subarch%': 'arm32',
223 }], 239 }],
224 ['OS=="android"', {
225 'target_arch%': 'arm',
226 }, {
227 # Default architecture we're building for is the architecture we're
228 # building on, and possibly sub-architecture (for iOS builds).
229 'target_arch%': '<(host_arch)',
230 }],
231 ], 240 ],
232 }, 241 },
233 242
234 # Copy conditionally-set variables out one scope. 243 # Copy conditionally-set variables out one scope.
235 'chromeos%': '<(chromeos)', 244 'chromeos%': '<(chromeos)',
236 'host_arch%': '<(host_arch)', 245 'host_arch%': '<(host_arch)',
237 'target_arch%': '<(target_arch)', 246 'target_arch%': '<(target_arch)',
238 'target_subarch%': '<(target_subarch)', 247 'target_subarch%': '<(target_subarch)',
239 'toolkit_views%': '<(toolkit_views)', 248 'toolkit_views%': '<(toolkit_views)',
240 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 249 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
(...skipping 10 matching lines...) Expand all
251 'enable_viewport%': '<(enable_viewport)', 260 'enable_viewport%': '<(enable_viewport)',
252 'enable_hidpi%': '<(enable_hidpi)', 261 'enable_hidpi%': '<(enable_hidpi)',
253 'android_webview_build%': '<(android_webview_build)', 262 'android_webview_build%': '<(android_webview_build)',
254 'use_goma%': '<(use_goma)', 263 'use_goma%': '<(use_goma)',
255 'gomadir%': '<(gomadir)', 264 'gomadir%': '<(gomadir)',
256 'enable_app_list%': '<(enable_app_list)', 265 'enable_app_list%': '<(enable_app_list)',
257 'use_default_render_theme%': '<(use_default_render_theme)', 266 'use_default_render_theme%': '<(use_default_render_theme)',
258 'buildtype%': '<(buildtype)', 267 'buildtype%': '<(buildtype)',
259 'branding%': '<(branding)', 268 'branding%': '<(branding)',
260 'arm_version%': '<(arm_version)', 269 'arm_version%': '<(arm_version)',
270 'sysroot%': '<(sysroot)',
271 'chroot_cmd%': '<(chroot_cmd)',
261 272
262 # Whether content/chrome is using mojo: see http://crbug.com/353602 273 # Whether content/chrome is using mojo: see http://crbug.com/353602
263 'use_mojo%': 0, 274 'use_mojo%': 0,
264 275
265 # Set to 1 to enable fast builds. Set to 2 for even faster builds 276 # Set to 1 to enable fast builds. Set to 2 for even faster builds
266 # (it disables debug info for fastest compilation - only for use 277 # (it disables debug info for fastest compilation - only for use
267 # on compile-only bots). 278 # on compile-only bots).
268 'fastbuild%': 0, 279 'fastbuild%': 0,
269 280
270 # Set to 1 to enable dcheck in release. 281 # Set to 1 to enable dcheck in release.
271 'dcheck_always_on%': 0, 282 'dcheck_always_on%': 0,
272 283
273 # Set to 1 to make a build that disables unshipped tracing events. 284 # Set to 1 to make a build that disables unshipped tracing events.
274 # Note: this setting is ignored if buildtype=="Official". 285 # Note: this setting is ignored if buildtype=="Official".
275 'tracing_like_official_build%': 0, 286 'tracing_like_official_build%': 0,
276 287
277 # Disable image loader component extension by default. 288 # Disable image loader component extension by default.
278 'image_loader_extension%': 0, 289 'image_loader_extension%': 0,
279 290
280 # Python version. 291 # Python version.
281 'python_ver%': '2.6', 292 'python_ver%': '2.6',
282 293
283 # Set NEON compilation flags. 294 # Set NEON compilation flags.
284 'arm_neon%': 1, 295 'arm_neon%': 1,
285 296
286 # Detect NEON support at run-time. 297 # Detect NEON support at run-time.
287 'arm_neon_optional%': 0, 298 'arm_neon_optional%': 0,
288 299
289 # The system root for cross-compiles. Default: none.
290 'sysroot%': '',
291 'chroot_cmd%': '',
292
293 # The system libdir used for this ABI. 300 # The system libdir used for this ABI.
294 'system_libdir%': 'lib', 301 'system_libdir%': 'lib',
295 302
296 # Use libjpeg-turbo as the JPEG codec used by Chromium. 303 # Use libjpeg-turbo as the JPEG codec used by Chromium.
297 'use_libjpeg_turbo%': 1, 304 'use_libjpeg_turbo%': 1,
298 305
299 # Use system libjpeg. Note that the system's libjepg will be used even if 306 # Use system libjpeg. Note that the system's libjepg will be used even if
300 # use_libjpeg_turbo is set. 307 # use_libjpeg_turbo is set.
301 'use_system_libjpeg%': 0, 308 'use_system_libjpeg%': 0,
302 309
(...skipping 4855 matching lines...) Expand 10 before | Expand all | Expand 10 after
5158 # settings in target dicts. SYMROOT is a special case, because many other 5165 # settings in target dicts. SYMROOT is a special case, because many other
5159 # Xcode variables depend on it, including variables such as 5166 # Xcode variables depend on it, including variables such as
5160 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5167 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5161 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5168 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5162 # files to appear (when present) in the UI as actual files and not red 5169 # files to appear (when present) in the UI as actual files and not red
5163 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5170 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5164 # and therefore SYMROOT, needs to be set at the project level. 5171 # and therefore SYMROOT, needs to be set at the project level.
5165 'SYMROOT': '<(DEPTH)/xcodebuild', 5172 'SYMROOT': '<(DEPTH)/xcodebuild',
5166 }, 5173 },
5167 } 5174 }
OLDNEW
« no previous file with comments | « build/check_return_value.py ('k') | third_party/harfbuzz-ng/harfbuzz.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698