OLD | NEW |
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 }], | 314 }], |
315 # Compute based on OS and target architecture whether the GPU | 315 # Compute based on OS and target architecture whether the GPU |
316 # plugin / process is supported. | 316 # plugin / process is supported. |
317 [ 'OS=="win" or (OS=="linux" and target_arch!="arm") or OS=="mac"', { | 317 [ 'OS=="win" or (OS=="linux" and target_arch!="arm") or OS=="mac"', { |
318 # Enable a variable used elsewhere throughout the GYP files to determine | 318 # Enable a variable used elsewhere throughout the GYP files to determine |
319 # whether to compile in the sources for the GPU plugin / process. | 319 # whether to compile in the sources for the GPU plugin / process. |
320 'enable_gpu%': 1, | 320 'enable_gpu%': 1, |
321 }, { # GPU plugin not supported | 321 }, { # GPU plugin not supported |
322 'enable_gpu%': 0, | 322 'enable_gpu%': 0, |
323 }], | 323 }], |
| 324 # Compute based on OS, target architecture and device whether GLES |
| 325 # is supported |
| 326 [ 'OS=="linux" and target_arch=="arm" and chromeos==1', { |
| 327 # Enable a variable used elsewhere throughout the GYP files to determine |
| 328 # whether to compile in the sources for the GLES support. |
| 329 'enable_gles%': 1, |
| 330 }, { # GLES not supported |
| 331 'enable_gles%': 0, |
| 332 }], |
324 ], | 333 ], |
325 | 334 |
326 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_' | 335 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_' |
327 # so Cocoa is happy (http://crbug.com/20441). | 336 # so Cocoa is happy (http://crbug.com/20441). |
328 'locales': [ | 337 'locales': [ |
329 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', | 338 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', |
330 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', | 339 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', |
331 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', | 340 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', |
332 'ml', 'mr', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', | 341 'ml', 'mr', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', |
333 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk', | 342 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk', |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 ['OS=="win"', { | 407 ['OS=="win"', { |
399 'defines': ['NO_TCMALLOC'], | 408 'defines': ['NO_TCMALLOC'], |
400 }], | 409 }], |
401 ], | 410 ], |
402 }], | 411 }], |
403 ['enable_gpu==1', { | 412 ['enable_gpu==1', { |
404 'defines': [ | 413 'defines': [ |
405 'ENABLE_GPU=1', | 414 'ENABLE_GPU=1', |
406 ], | 415 ], |
407 }], | 416 }], |
| 417 ['enable_gles==1', { |
| 418 'defines': [ |
| 419 'ENABLE_GLES=1', |
| 420 ], |
| 421 }], |
408 ['coverage!=0', { | 422 ['coverage!=0', { |
409 'conditions': [ | 423 'conditions': [ |
410 ['OS=="mac"', { | 424 ['OS=="mac"', { |
411 'xcode_settings': { | 425 'xcode_settings': { |
412 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | 426 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
413 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | 427 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
414 }, | 428 }, |
415 # Add -lgcov for types executable, shared_library, and | 429 # Add -lgcov for types executable, shared_library, and |
416 # loadable_module; not for static_library. | 430 # loadable_module; not for static_library. |
417 # This is a delayed conditional. | 431 # This is a delayed conditional. |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 # and therefore SYMROOT, needs to be set at the project level. | 1293 # and therefore SYMROOT, needs to be set at the project level. |
1280 'SYMROOT': '<(DEPTH)/xcodebuild', | 1294 'SYMROOT': '<(DEPTH)/xcodebuild', |
1281 }, | 1295 }, |
1282 } | 1296 } |
1283 | 1297 |
1284 # Local Variables: | 1298 # Local Variables: |
1285 # tab-width:2 | 1299 # tab-width:2 |
1286 # indent-tabs-mode:nil | 1300 # indent-tabs-mode:nil |
1287 # End: | 1301 # End: |
1288 # vim: set expandtab tabstop=2 shiftwidth=2: | 1302 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |