| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 # symbols from official builds. | 261 # symbols from official builds. |
| 262 # TODO(mmoss) dump_syms segfaults on x64. Enable once dump_syms and | 262 # TODO(mmoss) dump_syms segfaults on x64. Enable once dump_syms and |
| 263 # crash server handle 64-bit symbols. | 263 # crash server handle 64-bit symbols. |
| 264 ['linux_chromium_dump_symbols==1 or ' | 264 ['linux_chromium_dump_symbols==1 or ' |
| 265 '(branding=="Chrome" and buildtype=="Official" and ' | 265 '(branding=="Chrome" and buildtype=="Official" and ' |
| 266 'target_arch=="ia32")', { | 266 'target_arch=="ia32")', { |
| 267 'linux_dump_symbols%': 1, | 267 'linux_dump_symbols%': 1, |
| 268 }, { | 268 }, { |
| 269 'linux_dump_symbols%': 0, | 269 'linux_dump_symbols%': 0, |
| 270 }], | 270 }], |
| 271 ['toolkit_views==0 and chromeos==0', { | 271 ['toolkit_views==0', { |
| 272 # GTK wants Title Case strings | 272 # GTK wants Title Case strings |
| 273 'use_titlecase_in_grd_files%': 1, | 273 'use_titlecase_in_grd_files%': 1, |
| 274 }], | 274 }], |
| 275 ], | 275 ], |
| 276 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" | 276 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" |
| 277 ['OS=="mac"', { | 277 ['OS=="mac"', { |
| 278 # Mac wants Title Case strings | 278 # Mac wants Title Case strings |
| 279 'use_titlecase_in_grd_files%': 1, | 279 'use_titlecase_in_grd_files%': 1, |
| 280 'conditions': [ | 280 'conditions': [ |
| 281 # mac_product_name is set to the name of the .app bundle as it should | 281 # mac_product_name is set to the name of the .app bundle as it should |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 'release_extra_cflags%': '', | 381 'release_extra_cflags%': '', |
| 382 'debug_extra_cflags%': '', | 382 'debug_extra_cflags%': '', |
| 383 'release_valgrind_build%': 0, | 383 'release_valgrind_build%': 0, |
| 384 }, | 384 }, |
| 385 'conditions': [ | 385 'conditions': [ |
| 386 ['branding=="Chrome"', { | 386 ['branding=="Chrome"', { |
| 387 'defines': ['GOOGLE_CHROME_BUILD'], | 387 'defines': ['GOOGLE_CHROME_BUILD'], |
| 388 }, { # else: branding!="Chrome" | 388 }, { # else: branding!="Chrome" |
| 389 'defines': ['CHROMIUM_BUILD'], | 389 'defines': ['CHROMIUM_BUILD'], |
| 390 }], | 390 }], |
| 391 ['toolkit_views==1 or chromeos==1', { | 391 ['toolkit_views==1', { |
| 392 'defines': ['TOOLKIT_VIEWS=1'], | 392 'defines': ['TOOLKIT_VIEWS=1'], |
| 393 }], | 393 }], |
| 394 ['chromeos==1', { | 394 ['chromeos==1', { |
| 395 'defines': ['OS_CHROMEOS=1'], | 395 'defines': ['OS_CHROMEOS=1'], |
| 396 }], | 396 }], |
| 397 ['fastbuild!=0', { | 397 ['fastbuild!=0', { |
| 398 'conditions': [ | 398 'conditions': [ |
| 399 # Finally, for Windows, we simply turn on profiling. | 399 # Finally, for Windows, we simply turn on profiling. |
| 400 ['OS=="win"', { | 400 ['OS=="win"', { |
| 401 'msvs_settings': { | 401 'msvs_settings': { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 'sources/': [ ['exclude', '_posix\\.cc$'] ], | 538 'sources/': [ ['exclude', '_posix\\.cc$'] ], |
| 539 }], | 539 }], |
| 540 # Though Skia is conceptually shared by Linux and Windows, | 540 # Though Skia is conceptually shared by Linux and Windows, |
| 541 # the only _skia files in our tree are Linux-specific. | 541 # the only _skia files in our tree are Linux-specific. |
| 542 ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { | 542 ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { |
| 543 'sources/': [ ['exclude', '_skia\\.cc$'] ], | 543 'sources/': [ ['exclude', '_skia\\.cc$'] ], |
| 544 }], | 544 }], |
| 545 ['chromeos!=1', { | 545 ['chromeos!=1', { |
| 546 'sources/': [ ['exclude', '_chromeos\\.cc$'] ] | 546 'sources/': [ ['exclude', '_chromeos\\.cc$'] ] |
| 547 }], | 547 }], |
| 548 ['OS!="win" and (toolkit_views==0 and chromeos==0)', { | 548 ['toolkit_views==0', { |
| 549 'sources/': [ ['exclude', '_views\\.cc$'] ] | 549 'sources/': [ ['exclude', '_views\\.cc$'] ] |
| 550 }], | 550 }], |
| 551 ], | 551 ], |
| 552 }], | 552 }], |
| 553 ], # target_conditions for 'target_defaults' | 553 ], # target_conditions for 'target_defaults' |
| 554 'default_configuration': 'Debug', | 554 'default_configuration': 'Debug', |
| 555 'configurations': { | 555 'configurations': { |
| 556 # VCLinkerTool LinkIncremental values below: | 556 # VCLinkerTool LinkIncremental values below: |
| 557 # 0 == default | 557 # 0 == default |
| 558 # 1 == /INCREMENTAL:NO | 558 # 1 == /INCREMENTAL:NO |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 # compiler optimized the code, since the value is always kept | 916 # compiler optimized the code, since the value is always kept |
| 917 # in its specified precision. | 917 # in its specified precision. |
| 918 'conditions': [ | 918 'conditions': [ |
| 919 ['branding=="Chromium"', { | 919 ['branding=="Chromium"', { |
| 920 'cflags': [ | 920 'cflags': [ |
| 921 '-march=pentium4', | 921 '-march=pentium4', |
| 922 '-msse2', | 922 '-msse2', |
| 923 '-mfpmath=sse', | 923 '-mfpmath=sse', |
| 924 ], | 924 ], |
| 925 }], | 925 }], |
| 926 # ChromeOS targets Pinetrail, which is ssse3, but most of the | 926 # ChromeOS targets Pinetrail, which is sse3, but most of the |
| 927 # benefit comes from sse2 so this setting allows ChromeOS | 927 # benefit comes from sse2 so this setting allows ChromeOS |
| 928 # to build on other CPUs. In the future -march=atom would help | 928 # to build on other CPUs. In the future -march=atom would help |
| 929 # but requires a newer compiler. | 929 # but requires a newer compiler. |
| 930 ['chromeos==1', { | 930 ['chromeos==1', { |
| 931 'cflags': [ | 931 'cflags': [ |
| 932 '-msse2', | 932 '-msse2', |
| 933 ], | 933 ], |
| 934 }], | 934 }], |
| 935 ], | 935 ], |
| 936 # -mmmx allows mmintrin.h to be used for mmx intrinsics. | 936 # -mmmx allows mmintrin.h to be used for mmx intrinsics. |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 # and therefore SYMROOT, needs to be set at the project level. | 1305 # and therefore SYMROOT, needs to be set at the project level. |
| 1306 'SYMROOT': '<(DEPTH)/xcodebuild', | 1306 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1307 }, | 1307 }, |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 # Local Variables: | 1310 # Local Variables: |
| 1311 # tab-width:2 | 1311 # tab-width:2 |
| 1312 # indent-tabs-mode:nil | 1312 # indent-tabs-mode:nil |
| 1313 # End: | 1313 # End: |
| 1314 # vim: set expandtab tabstop=2 shiftwidth=2: | 1314 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |