| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 # Set to 1 to enable code coverage. In addition to build changes | 120 # Set to 1 to enable code coverage. In addition to build changes |
| 121 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 121 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
| 122 # project file called "coverage". | 122 # project file called "coverage". |
| 123 # Currently ignored on Windows. | 123 # Currently ignored on Windows. |
| 124 'coverage%': 0, | 124 'coverage%': 0, |
| 125 | 125 |
| 126 # Overridable specification for potential use of alternative | 126 # Overridable specification for potential use of alternative |
| 127 # JavaScript engines. | 127 # JavaScript engines. |
| 128 'javascript_engine%': 'v8', | 128 'javascript_engine%': 'v8', |
| 129 | 129 |
| 130 # Although base/allocator lets you select a heap library via an |
| 131 # environment variable, the libcmt shim it uses sometimes gets in |
| 132 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. |
| 133 # 'win_use_allocator_shim': 0, |
| 134 # 'win_release_RuntimeLibrary': 2 |
| 135 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. |
| 136 'win_use_allocator_shim%': 1, # 0 = shim allocator via libcmt; 1 = msvcrt |
| 137 |
| 130 # To do a shared build on linux we need to be able to choose between type | 138 # To do a shared build on linux we need to be able to choose between type |
| 131 # static_library and shared_library. We default to doing a static build | 139 # static_library and shared_library. We default to doing a static build |
| 132 # but you can override this with "gyp -Dlibrary=shared_library" or you | 140 # but you can override this with "gyp -Dlibrary=shared_library" or you |
| 133 # can add the following line (without the #) to ~/.gyp/include.gypi | 141 # can add the following line (without the #) to ~/.gyp/include.gypi |
| 134 # {'variables': {'library': 'shared_library'}} | 142 # {'variables': {'library': 'shared_library'}} |
| 135 # to compile as shared by default | 143 # to compile as shared by default |
| 136 'library%': 'static_library', | 144 'library%': 'static_library', |
| 137 | 145 |
| 138 # The Google Update appid. | 146 # The Google Update appid. |
| 139 'google_update_appid%': '{8A69D345-D564-463c-AFF1-A69D9E530F96}', | 147 'google_update_appid%': '{8A69D345-D564-463c-AFF1-A69D9E530F96}', |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', | 281 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', |
| 274 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', | 282 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', |
| 275 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', | 283 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', |
| 276 'ml', 'mr', 'nb', 'nl', 'or', 'pl', 'pt-BR', 'pt-PT', 'ro', | 284 'ml', 'mr', 'nb', 'nl', 'or', 'pl', 'pt-BR', 'pt-PT', 'ro', |
| 277 'ru', 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', | 285 'ru', 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', |
| 278 'uk', 'vi', 'zh-CN', 'zh-TW', | 286 'uk', 'vi', 'zh-CN', 'zh-TW', |
| 279 ], | 287 ], |
| 280 }, | 288 }, |
| 281 'target_defaults': { | 289 'target_defaults': { |
| 282 'variables': { | 290 'variables': { |
| 291 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html |
| 283 'mac_release_optimization%': '3', # Use -O3 unless overridden | 292 'mac_release_optimization%': '3', # Use -O3 unless overridden |
| 284 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 293 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
| 294 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx |
| 295 'win_release_Optimization%': '2', # 2 = /Os |
| 296 'win_debug_Optimization%': '0', # 0 = /Od |
| 297 # See http://msdn.microsoft.com/en-us/library/aa652367(VS.71).aspx |
| 298 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static) |
| 299 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static) |
| 300 |
| 285 'release_extra_cflags%': '', | 301 'release_extra_cflags%': '', |
| 286 'debug_extra_cflags%': '', | 302 'debug_extra_cflags%': '', |
| 287 'release_valgrind_build%': 0, | 303 'release_valgrind_build%': 0, |
| 288 }, | 304 }, |
| 289 'conditions': [ | 305 'conditions': [ |
| 290 ['branding=="Chrome"', { | 306 ['branding=="Chrome"', { |
| 291 'defines': ['GOOGLE_CHROME_BUILD'], | 307 'defines': ['GOOGLE_CHROME_BUILD'], |
| 292 }, { # else: branding!="Chrome" | 308 }, { # else: branding!="Chrome" |
| 293 'defines': ['CHROMIUM_BUILD'], | 309 'defines': ['CHROMIUM_BUILD'], |
| 294 }], | 310 }], |
| (...skipping 23 matching lines...) Expand all Loading... |
| 318 'VCCLCompilerTool': { | 334 'VCCLCompilerTool': { |
| 319 'DebugInformationFormat': '0', | 335 'DebugInformationFormat': '0', |
| 320 } | 336 } |
| 321 } | 337 } |
| 322 }], # OS==win | 338 }], # OS==win |
| 323 ], # conditions for fastbuild. | 339 ], # conditions for fastbuild. |
| 324 }], # fastbuild!=0 | 340 }], # fastbuild!=0 |
| 325 ['selinux==1', { | 341 ['selinux==1', { |
| 326 'defines': ['CHROMIUM_SELINUX=1'], | 342 'defines': ['CHROMIUM_SELINUX=1'], |
| 327 }], | 343 }], |
| 344 ['win_use_allocator_shim==0', { |
| 345 'conditions': [ |
| 346 ['OS=="win"', { |
| 347 'defines': ['NO_TCMALLOC'], |
| 348 }], |
| 349 ], |
| 350 }], |
| 328 ['coverage!=0', { | 351 ['coverage!=0', { |
| 329 'conditions': [ | 352 'conditions': [ |
| 330 ['OS=="mac"', { | 353 ['OS=="mac"', { |
| 331 'xcode_settings': { | 354 'xcode_settings': { |
| 332 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | 355 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
| 333 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | 356 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
| 334 }, | 357 }, |
| 335 # Add -lgcov for executables and shared_libraries, not for | 358 # Add -lgcov for executables and shared_libraries, not for |
| 336 # static_libraries. This is a delayed conditional. | 359 # static_libraries. This is a delayed conditional. |
| 337 'target_conditions': [ | 360 'target_conditions': [ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 }, | 405 }, |
| 383 'Debug': { | 406 'Debug': { |
| 384 'inherit_from': ['Common'], | 407 'inherit_from': ['Common'], |
| 385 'xcode_settings': { | 408 'xcode_settings': { |
| 386 'COPY_PHASE_STRIP': 'NO', | 409 'COPY_PHASE_STRIP': 'NO', |
| 387 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', | 410 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', |
| 388 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ], | 411 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ], |
| 389 }, | 412 }, |
| 390 'msvs_settings': { | 413 'msvs_settings': { |
| 391 'VCCLCompilerTool': { | 414 'VCCLCompilerTool': { |
| 392 'Optimization': '0', | 415 'Optimization': '<(win_debug_Optimization)', |
| 393 'PreprocessorDefinitions': ['_DEBUG'], | 416 'PreprocessorDefinitions': ['_DEBUG'], |
| 394 'BasicRuntimeChecks': '3', | 417 'BasicRuntimeChecks': '3', |
| 395 'RuntimeLibrary': '1', | 418 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)', |
| 396 }, | 419 }, |
| 397 'VCLinkerTool': { | 420 'VCLinkerTool': { |
| 398 'LinkIncremental': '<(msvs_debug_link_incremental)', | 421 'LinkIncremental': '<(msvs_debug_link_incremental)', |
| 399 }, | 422 }, |
| 400 'VCResourceCompilerTool': { | 423 'VCResourceCompilerTool': { |
| 401 'PreprocessorDefinitions': ['_DEBUG'], | 424 'PreprocessorDefinitions': ['_DEBUG'], |
| 402 }, | 425 }, |
| 403 }, | 426 }, |
| 404 'conditions': [ | 427 'conditions': [ |
| 405 ['OS=="linux"', { | 428 ['OS=="linux"', { |
| 406 'cflags': [ | 429 'cflags': [ |
| 407 '<@(debug_extra_cflags)', | 430 '<@(debug_extra_cflags)', |
| 408 ], | 431 ], |
| 409 }], | 432 }], |
| 410 ], | 433 ], |
| 411 }, | 434 }, |
| 412 'Release': { | 435 'Release': { |
| 413 'inherit_from': ['Common'], | 436 'inherit_from': ['Common'], |
| 414 'defines': [ | 437 'defines': [ |
| 415 'NDEBUG', | 438 'NDEBUG', |
| 416 ], | 439 ], |
| 417 'xcode_settings': { | 440 'xcode_settings': { |
| 418 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip | 441 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip |
| 419 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', | 442 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', |
| 420 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], | 443 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], |
| 421 }, | 444 }, |
| 422 'msvs_settings': { | 445 'msvs_settings': { |
| 446 'VCCLCompilerTool': { |
| 447 'Optimization': '<(win_release_Optimization)', |
| 448 'RuntimeLibrary': '<(win_release_RuntimeLibrary)', |
| 449 }, |
| 423 'VCLinkerTool': { | 450 'VCLinkerTool': { |
| 424 'LinkIncremental': '1', | 451 'LinkIncremental': '1', |
| 425 }, | 452 }, |
| 426 }, | 453 }, |
| 427 'conditions': [ | 454 'conditions': [ |
| 428 ['release_valgrind_build==0', { | 455 ['release_valgrind_build==0', { |
| 429 'defines': ['NVALGRIND'], | 456 'defines': ['NVALGRIND'], |
| 430 }], | 457 }], |
| 458 ['win_use_allocator_shim==0', { |
| 459 'defines': ['NO_TCMALLOC'], |
| 460 }], |
| 461 ['win_release_RuntimeLibrary==2', { |
| 462 # Visual C++ 2008 barfs when building anything with /MD (msvcrt): |
| 463 # VC\include\typeinfo(139) : warning C4275: non dll-interface |
| 464 # class 'stdext::exception' used as base for dll-interface |
| 465 # class 'std::bad_cast' |
| 466 'msvs_disabled_warnings': [4275], |
| 467 }], |
| 431 ['msvs_use_common_release', { | 468 ['msvs_use_common_release', { |
| 432 'msvs_props': ['release.vsprops'], | 469 'msvs_props': ['release.vsprops'], |
| 433 }], | 470 }], |
| 434 ['OS=="linux"', { | 471 ['OS=="linux"', { |
| 435 'cflags': [ | 472 'cflags': [ |
| 436 '<@(release_extra_cflags)', | 473 '<@(release_extra_cflags)', |
| 437 ], | 474 ], |
| 438 }], | 475 }], |
| 439 ], | 476 ], |
| 440 }, | 477 }, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 452 'Optimization': '0', | 489 'Optimization': '0', |
| 453 'RuntimeLibrary': '0', | 490 'RuntimeLibrary': '0', |
| 454 'BufferSecurityCheck': 'false', | 491 'BufferSecurityCheck': 'false', |
| 455 }, | 492 }, |
| 456 'VCLinkerTool': { | 493 'VCLinkerTool': { |
| 457 'EnableCOMDATFolding': '1', | 494 'EnableCOMDATFolding': '1', |
| 458 'LinkIncremental': '1', | 495 'LinkIncremental': '1', |
| 459 }, | 496 }, |
| 460 }, | 497 }, |
| 461 }, | 498 }, |
| 462 'Release - no tcmalloc': { | |
| 463 'inherit_from': ['Release'], | |
| 464 'defines': ['NO_TCMALLOC'], | |
| 465 }, | |
| 466 'Debug_x64': { | 499 'Debug_x64': { |
| 467 'inherit_from': ['Debug'], | 500 'inherit_from': ['Debug'], |
| 468 'msvs_configuration_platform': 'x64', | 501 'msvs_configuration_platform': 'x64', |
| 469 }, | 502 }, |
| 470 'Release_x64': { | 503 'Release_x64': { |
| 471 'inherit_from': ['Release'], | 504 'inherit_from': ['Release'], |
| 472 'msvs_configuration_platform': 'x64', | 505 'msvs_configuration_platform': 'x64', |
| 473 }, | 506 }, |
| 474 'Purify_x64': { | 507 'Purify_x64': { |
| 475 'inherit_from': ['Purify'], | 508 'inherit_from': ['Purify'], |
| 476 'msvs_configuration_platform': 'x64', | 509 'msvs_configuration_platform': 'x64', |
| 477 }, | 510 }, |
| 478 'Release - no tcmalloc_x64': { | |
| 479 'inherit_from': ['Release - no tcmalloc'], | |
| 480 'msvs_configuration_platform': 'x64', | |
| 481 }, | |
| 482 }], | 511 }], |
| 483 ], | 512 ], |
| 484 }, | 513 }, |
| 485 }, | 514 }, |
| 486 'conditions': [ | 515 'conditions': [ |
| 487 ['OS=="linux"', { | 516 ['OS=="linux"', { |
| 488 'target_defaults': { | 517 'target_defaults': { |
| 489 # Enable -Werror by default, but put it in a variable so it can | 518 # Enable -Werror by default, but put it in a variable so it can |
| 490 # be disabled in ~/.gyp/include.gypi on the valgrind builders. | 519 # be disabled in ~/.gyp/include.gypi on the valgrind builders. |
| 491 'variables': { | 520 'variables': { |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 # and therefore SYMROOT, needs to be set at the project level. | 1037 # and therefore SYMROOT, needs to be set at the project level. |
| 1009 'SYMROOT': '<(DEPTH)/xcodebuild', | 1038 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1010 }, | 1039 }, |
| 1011 } | 1040 } |
| 1012 | 1041 |
| 1013 # Local Variables: | 1042 # Local Variables: |
| 1014 # tab-width:2 | 1043 # tab-width:2 |
| 1015 # indent-tabs-mode:nil | 1044 # indent-tabs-mode:nil |
| 1016 # End: | 1045 # End: |
| 1017 # vim: set expandtab tabstop=2 shiftwidth=2: | 1046 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |