OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 # Set to 1 to enable code coverage. In addition to build changes | 119 # Set to 1 to enable code coverage. In addition to build changes |
120 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 120 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
121 # project file called "coverage". | 121 # project file called "coverage". |
122 # Currently ignored on Windows. | 122 # Currently ignored on Windows. |
123 'coverage%': 0, | 123 'coverage%': 0, |
124 | 124 |
125 # Overridable specification for potential use of alternative | 125 # Overridable specification for potential use of alternative |
126 # JavaScript engines. | 126 # JavaScript engines. |
127 'javascript_engine%': 'v8', | 127 'javascript_engine%': 'v8', |
128 | 128 |
129 # Although base/allocator lets you select a heap library via an | 129 # Although base/allocator lets you select a heap library via an |
130 # environment variable, the libcmt shim it uses sometimes gets in | 130 # environment variable, the libcmt shim it uses sometimes gets in |
131 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. | 131 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. |
132 # 'win_use_allocator_shim': 0, | 132 # 'win_use_allocator_shim': 0, |
133 # 'win_release_RuntimeLibrary': 2 | 133 # 'win_release_RuntimeLibrary': 2 |
134 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. | 134 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. |
135 'win_use_allocator_shim%': 1, # 0 = shim allocator via libcmt; 1 = msvcrt | 135 'win_use_allocator_shim%': 1, # 0 = shim allocator via libcmt; 1 = msvcrt |
136 | 136 |
137 # To do a shared build on linux we need to be able to choose between type | 137 # To do a shared build on linux we need to be able to choose between type |
138 # static_library and shared_library. We default to doing a static build | 138 # static_library and shared_library. We default to doing a static build |
139 # but you can override this with "gyp -Dlibrary=shared_library" or you | 139 # but you can override this with "gyp -Dlibrary=shared_library" or you |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 }], | 320 }], |
321 ['toolkit_views==1', { | 321 ['toolkit_views==1', { |
322 'defines': ['TOOLKIT_VIEWS=1'], | 322 'defines': ['TOOLKIT_VIEWS=1'], |
323 }], | 323 }], |
324 ['chromeos==1', { | 324 ['chromeos==1', { |
325 'defines': ['CHROMEOS_TRANSITIONAL=1'], | 325 'defines': ['CHROMEOS_TRANSITIONAL=1'], |
326 }], | 326 }], |
327 ['chromeos==1 or toolkit_views==1', { | 327 ['chromeos==1 or toolkit_views==1', { |
328 'defines': ['OS_CHROMEOS=1'], | 328 'defines': ['OS_CHROMEOS=1'], |
329 }], | 329 }], |
330 ['enable_gpu==1', { | |
331 'defines': ['ENABLE_GPU=1'], | |
332 }], | |
333 ['fastbuild!=0', { | 330 ['fastbuild!=0', { |
334 'conditions': [ | 331 'conditions': [ |
335 # Finally, for Windows, we simply turn on profiling. | 332 # Finally, for Windows, we simply turn on profiling. |
336 ['OS=="win"', { | 333 ['OS=="win"', { |
337 'msvs_settings': { | 334 'msvs_settings': { |
338 'VCLinkerTool': { | 335 'VCLinkerTool': { |
339 'GenerateDebugInformation': 'false', | 336 'GenerateDebugInformation': 'false', |
340 }, | 337 }, |
341 'VCCLCompilerTool': { | 338 'VCCLCompilerTool': { |
342 'DebugInformationFormat': '0', | 339 'DebugInformationFormat': '0', |
343 } | 340 } |
344 } | 341 } |
345 }], # OS==win | 342 }], # OS==win |
346 ], # conditions for fastbuild. | 343 ], # conditions for fastbuild. |
347 }], # fastbuild!=0 | 344 }], # fastbuild!=0 |
348 ['selinux==1', { | 345 ['selinux==1', { |
349 'defines': ['CHROMIUM_SELINUX=1'], | 346 'defines': ['CHROMIUM_SELINUX=1'], |
350 }], | 347 }], |
351 ['win_use_allocator_shim==0', { | 348 ['win_use_allocator_shim==0', { |
352 'conditions': [ | 349 'conditions': [ |
353 ['OS=="win"', { | 350 ['OS=="win"', { |
354 'defines': ['NO_TCMALLOC'], | 351 'defines': ['NO_TCMALLOC'], |
355 }], | 352 }], |
356 ], | 353 ], |
357 }], | 354 }], |
| 355 ['OS=="win"', { |
| 356 'defines': [ |
| 357 'ENABLE_GPU=1', |
| 358 ], |
| 359 }], |
358 ['coverage!=0', { | 360 ['coverage!=0', { |
359 'conditions': [ | 361 'conditions': [ |
360 ['OS=="mac"', { | 362 ['OS=="mac"', { |
361 'xcode_settings': { | 363 'xcode_settings': { |
362 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | 364 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
363 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | 365 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
364 }, | 366 }, |
365 # Add -lgcov for executables and shared_libraries, not for | 367 # Add -lgcov for executables and shared_libraries, not for |
366 # static_libraries. This is a delayed conditional. | 368 # static_libraries. This is a delayed conditional. |
367 'target_conditions': [ | 369 'target_conditions': [ |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 }, | 502 }, |
501 'conditions': [ | 503 'conditions': [ |
502 ['release_valgrind_build==0', { | 504 ['release_valgrind_build==0', { |
503 'defines': ['NVALGRIND'], | 505 'defines': ['NVALGRIND'], |
504 }], | 506 }], |
505 ['win_use_allocator_shim==0', { | 507 ['win_use_allocator_shim==0', { |
506 'defines': ['NO_TCMALLOC'], | 508 'defines': ['NO_TCMALLOC'], |
507 }], | 509 }], |
508 ['win_release_RuntimeLibrary==2', { | 510 ['win_release_RuntimeLibrary==2', { |
509 # Visual C++ 2008 barfs when building anything with /MD (msvcrt): | 511 # Visual C++ 2008 barfs when building anything with /MD (msvcrt): |
510 # VC\include\typeinfo(139) : warning C4275: non dll-interface | 512 # VC\include\typeinfo(139) : warning C4275: non dll-interface |
511 # class 'stdext::exception' used as base for dll-interface | 513 # class 'stdext::exception' used as base for dll-interface |
512 # class 'std::bad_cast' | 514 # class 'std::bad_cast' |
513 'msvs_disabled_warnings': [4275], | 515 'msvs_disabled_warnings': [4275], |
514 }], | 516 }], |
515 ['OS=="linux"', { | 517 ['OS=="linux"', { |
516 'cflags': [ | 518 'cflags': [ |
517 '<@(release_extra_cflags)', | 519 '<@(release_extra_cflags)', |
518 ], | 520 ], |
519 }], | 521 }], |
520 ], | 522 ], |
521 }, | 523 }, |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 # and therefore SYMROOT, needs to be set at the project level. | 1143 # and therefore SYMROOT, needs to be set at the project level. |
1142 'SYMROOT': '<(DEPTH)/xcodebuild', | 1144 'SYMROOT': '<(DEPTH)/xcodebuild', |
1143 }, | 1145 }, |
1144 } | 1146 } |
1145 | 1147 |
1146 # Local Variables: | 1148 # Local Variables: |
1147 # tab-width:2 | 1149 # tab-width:2 |
1148 # indent-tabs-mode:nil | 1150 # indent-tabs-mode:nil |
1149 # End: | 1151 # End: |
1150 # vim: set expandtab tabstop=2 shiftwidth=2: | 1152 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |