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

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
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 # Set to 1 to enable fast builds. Set to 2 for even faster builds 273 # Set to 1 to enable fast builds. Set to 2 for even faster builds
263 # (it disables debug info for fastest compilation - only for use 274 # (it disables debug info for fastest compilation - only for use
264 # on compile-only bots). 275 # on compile-only bots).
265 'fastbuild%': 0, 276 'fastbuild%': 0,
266 277
267 # Set to 1 to enable dcheck in release. 278 # Set to 1 to enable dcheck in release.
268 'dcheck_always_on%': 0, 279 'dcheck_always_on%': 0,
269 280
270 # Set to 1 to make a build that disables unshipped tracing events. 281 # Set to 1 to make a build that disables unshipped tracing events.
271 # Note: this setting is ignored if buildtype=="Official". 282 # Note: this setting is ignored if buildtype=="Official".
272 'tracing_like_official_build%': 0, 283 'tracing_like_official_build%': 0,
273 284
274 # Disable image loader component extension by default. 285 # Disable image loader component extension by default.
275 'image_loader_extension%': 0, 286 'image_loader_extension%': 0,
276 287
277 # Python version. 288 # Python version.
278 'python_ver%': '2.6', 289 'python_ver%': '2.6',
279 290
280 # Set NEON compilation flags. 291 # Set NEON compilation flags.
281 'arm_neon%': 1, 292 'arm_neon%': 1,
282 293
283 # Detect NEON support at run-time. 294 # Detect NEON support at run-time.
284 'arm_neon_optional%': 0, 295 'arm_neon_optional%': 0,
285 296
286 # The system root for cross-compiles. Default: none.
287 'sysroot%': '',
288 'chroot_cmd%': '',
289
290 # The system libdir used for this ABI. 297 # The system libdir used for this ABI.
291 'system_libdir%': 'lib', 298 'system_libdir%': 'lib',
292 299
293 # Use libjpeg-turbo as the JPEG codec used by Chromium. 300 # Use libjpeg-turbo as the JPEG codec used by Chromium.
294 'use_libjpeg_turbo%': 1, 301 'use_libjpeg_turbo%': 1,
295 302
296 # Use system libjpeg. Note that the system's libjepg will be used even if 303 # Use system libjpeg. Note that the system's libjepg will be used even if
297 # use_libjpeg_turbo is set. 304 # use_libjpeg_turbo is set.
298 'use_system_libjpeg%': 0, 305 'use_system_libjpeg%': 0,
299 306
(...skipping 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2972 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], 2979 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
2973 }, 2980 },
2974 'Release_x64': { 2981 'Release_x64': {
2975 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], 2982 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
2976 }, 2983 },
2977 }], 2984 }],
2978 ], 2985 ],
2979 }, 2986 },
2980 }, 2987 },
2981 'conditions': [ 2988 'conditions': [
2982 # TODO(jochen): Enable this on chromeos. http://crbug.com/353127 2989 ['os_posix==1', {
2983 ['os_posix==1 and chromeos==0', {
2984 'target_defaults': { 2990 'target_defaults': {
2985 'ldflags': [ 2991 'ldflags': [
2986 '-Wl,--fatal-warnings', 2992 '-Wl,--fatal-warnings',
2987 '-Wl,-z,now', 2993 '-Wl,-z,now',
2988 '-Wl,-z,relro', 2994 '-Wl,-z,relro',
2989 ], 2995 ],
2990 }, 2996 },
2991 }], 2997 }],
2992 ['os_posix==1 and chromeos==0', { 2998 ['os_posix==1 and chromeos==0', {
2993 # Chrome OS enables -fstack-protector-strong via its build wrapper, 2999 # Chrome OS enables -fstack-protector-strong via its build wrapper,
(...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after
5064 # settings in target dicts. SYMROOT is a special case, because many other 5070 # settings in target dicts. SYMROOT is a special case, because many other
5065 # Xcode variables depend on it, including variables such as 5071 # Xcode variables depend on it, including variables such as
5066 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5072 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5067 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5073 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5068 # files to appear (when present) in the UI as actual files and not red 5074 # files to appear (when present) in the UI as actual files and not red
5069 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5075 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5070 # and therefore SYMROOT, needs to be set at the project level. 5076 # and therefore SYMROOT, needs to be set at the project level.
5071 'SYMROOT': '<(DEPTH)/xcodebuild', 5077 'SYMROOT': '<(DEPTH)/xcodebuild',
5072 }, 5078 },
5073 } 5079 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698