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

Side by Side Diff: build/common.gypi

Issue 2853011: Enable gpu on all targets (Closed)
Patch Set: Created 10 years, 6 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 | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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': { 9 'variables': {
10 # .gyp files or targets should set chromium_code to 1 if they build 10 # .gyp files or targets should set chromium_code to 1 if they build
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 # Set ARM fpu compilation flags (only meaningful if armv7==1 and 268 # Set ARM fpu compilation flags (only meaningful if armv7==1 and
269 # arm_neon==0). 269 # arm_neon==0).
270 'arm_fpu%': 'vfpv3', 270 'arm_fpu%': 'vfpv3',
271 271
272 # Enable new NPDevice API. 272 # Enable new NPDevice API.
273 'enable_new_npdevice_api%': 0, 273 'enable_new_npdevice_api%': 0,
274 274
275 # Enable EGLImage support in OpenMAX 275 # Enable EGLImage support in OpenMAX
276 'enable_eglimage%': 0, 276 'enable_eglimage%': 0,
277 277
278 # Enable a variable used elsewhere throughout the GYP files to determine
279 # whether to compile in the sources for the GPU plugin / process.
280 'enable_gpu%': 1,
281
278 'conditions': [ 282 'conditions': [
279 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 283 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
280 # This will set gcc_version to XY if you are running gcc X.Y.*. 284 # This will set gcc_version to XY if you are running gcc X.Y.*.
281 # This is used to tweak build flags for gcc 4.4. 285 # This is used to tweak build flags for gcc 4.4.
282 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', 286 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
283 # Figure out the python architecture to decide if we build pyauto. 287 # Figure out the python architecture to decide if we build pyauto.
284 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/l ib/libpython<(python_ver).so.1.0)', 288 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/l ib/libpython<(python_ver).so.1.0)',
285 'conditions': [ 289 'conditions': [
286 ['branding=="Chrome" or linux_chromium_breakpad==1', { 290 ['branding=="Chrome" or linux_chromium_breakpad==1', {
287 'linux_breakpad%': 1, 291 'linux_breakpad%': 1,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 },{ 356 },{
353 'msvs_large_module_debug_link_mode%': '2', # Yes 357 'msvs_large_module_debug_link_mode%': '2', # Yes
354 }], 358 }],
355 ], 359 ],
356 'nacl_win64_defines': [ 360 'nacl_win64_defines': [
357 # This flag is used to minimize dependencies when building 361 # This flag is used to minimize dependencies when building
358 # Native Client loader for 64-bit Windows. 362 # Native Client loader for 64-bit Windows.
359 'NACL_WIN64', 363 'NACL_WIN64',
360 ], 364 ],
361 }], 365 }],
362 # Compute based on OS and target architecture whether the GPU
363 # plugin / process is supported.
364 [ 'OS=="win" or (OS=="linux" and target_arch!="arm") or OS=="mac"', {
365 # Enable a variable used elsewhere throughout the GYP files to determine
366 # whether to compile in the sources for the GPU plugin / process.
367 'enable_gpu%': 1,
368 }, { # GPU plugin not supported
369 'enable_gpu%': 0,
370 }],
371 ], 366 ],
372 367
373 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_' 368 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_'
374 # so Cocoa is happy (http://crbug.com/20441). 369 # so Cocoa is happy (http://crbug.com/20441).
375 'locales': [ 370 'locales': [
376 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 371 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
377 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', 372 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he',
378 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', 373 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv',
379 'ml', 'mr', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 374 'ml', 'mr', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru',
380 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk', 375 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk',
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 # and therefore SYMROOT, needs to be set at the project level. 1412 # and therefore SYMROOT, needs to be set at the project level.
1418 'SYMROOT': '<(DEPTH)/xcodebuild', 1413 'SYMROOT': '<(DEPTH)/xcodebuild',
1419 }, 1414 },
1420 } 1415 }
1421 1416
1422 # Local Variables: 1417 # Local Variables:
1423 # tab-width:2 1418 # tab-width:2
1424 # indent-tabs-mode:nil 1419 # indent-tabs-mode:nil
1425 # End: 1420 # End:
1426 # vim: set expandtab tabstop=2 shiftwidth=2: 1421 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698