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 expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 # These two variables can be set in GYP_DEFINES while running | 273 # These two variables can be set in GYP_DEFINES while running |
274 # |gclient runhooks| to let clang run a plugin in every compilation. | 274 # |gclient runhooks| to let clang run a plugin in every compilation. |
275 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. | 275 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. |
276 # Example: | 276 # Example: |
277 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl
ib clang_plugin=print-fns' gclient runhooks | 277 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl
ib clang_plugin=print-fns' gclient runhooks |
278 | 278 |
279 'clang_load%': '', | 279 'clang_load%': '', |
280 'clang_add_plugin%': '', | 280 'clang_add_plugin%': '', |
281 | 281 |
| 282 # Enable sampling based profiler. |
| 283 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html |
| 284 'profiling%': '0', |
| 285 |
282 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. | 286 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. |
283 'linux_breakpad%': 0, | 287 'linux_breakpad%': 0, |
284 # And if we want to dump symbols for Breakpad-enabled builds. | 288 # And if we want to dump symbols for Breakpad-enabled builds. |
285 'linux_dump_symbols%': 0, | 289 'linux_dump_symbols%': 0, |
286 # And if we want to strip the binary after dumping symbols. | 290 # And if we want to strip the binary after dumping symbols. |
287 'linux_strip_binary%': 0, | 291 'linux_strip_binary%': 0, |
288 # Strip the test binaries needed for Linux reliability tests. | 292 # Strip the test binaries needed for Linux reliability tests. |
289 'linux_strip_reliability_tests%': 0, | 293 'linux_strip_reliability_tests%': 0, |
290 | 294 |
291 # Enable TCMalloc. | 295 # Enable TCMalloc. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 }], | 533 }], |
530 ['toolkit_views==1', { | 534 ['toolkit_views==1', { |
531 'defines': ['TOOLKIT_VIEWS=1'], | 535 'defines': ['TOOLKIT_VIEWS=1'], |
532 }], | 536 }], |
533 ['chromeos==1', { | 537 ['chromeos==1', { |
534 'defines': ['OS_CHROMEOS=1'], | 538 'defines': ['OS_CHROMEOS=1'], |
535 }], | 539 }], |
536 ['touchui==1', { | 540 ['touchui==1', { |
537 'defines': ['TOUCH_UI=1'], | 541 'defines': ['TOUCH_UI=1'], |
538 }], | 542 }], |
| 543 ['profiling==1', { |
| 544 'defines': ['ENABLE_PROFILING=1'], |
| 545 }], |
539 ['remoting==1', { | 546 ['remoting==1', { |
540 'defines': ['ENABLE_REMOTING=1'], | 547 'defines': ['ENABLE_REMOTING=1'], |
541 }], | 548 }], |
542 ['proprietary_codecs==1', { | 549 ['proprietary_codecs==1', { |
543 'defines': ['USE_PROPRIETARY_CODECS'], | 550 'defines': ['USE_PROPRIETARY_CODECS'], |
544 }], | 551 }], |
545 ['enable_flapper_hacks==1', { | 552 ['enable_flapper_hacks==1', { |
546 'defines': ['ENABLE_FLAPPER_HACKS=1'], | 553 'defines': ['ENABLE_FLAPPER_HACKS=1'], |
547 }], | 554 }], |
548 ['fastbuild!=0', { | 555 ['fastbuild!=0', { |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 ['no_gc_sections==0', { | 1014 ['no_gc_sections==0', { |
1008 'ldflags': [ | 1015 'ldflags': [ |
1009 '-Wl,--gc-sections', | 1016 '-Wl,--gc-sections', |
1010 ], | 1017 ], |
1011 }], | 1018 }], |
1012 ['clang==1', { | 1019 ['clang==1', { |
1013 'cflags!': [ | 1020 'cflags!': [ |
1014 '-fno-ident', | 1021 '-fno-ident', |
1015 ], | 1022 ], |
1016 }], | 1023 }], |
| 1024 ['profiling==1', { |
| 1025 'cflags': [ |
| 1026 '-fno-omit-frame-pointer', |
| 1027 '-g', |
| 1028 ], |
| 1029 }], |
1017 ] | 1030 ] |
1018 }, | 1031 }, |
1019 }, | 1032 }, |
1020 'variants': { | 1033 'variants': { |
1021 'coverage': { | 1034 'coverage': { |
1022 'cflags': ['-fprofile-arcs', '-ftest-coverage'], | 1035 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
1023 'ldflags': ['-fprofile-arcs'], | 1036 'ldflags': ['-fprofile-arcs'], |
1024 }, | 1037 }, |
1025 'profile': { | 1038 'profile': { |
1026 'cflags': ['-pg', '-g'], | 1039 'cflags': ['-pg', '-g'], |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1537 # and therefore SYMROOT, needs to be set at the project level. | 1550 # and therefore SYMROOT, needs to be set at the project level. |
1538 'SYMROOT': '<(DEPTH)/xcodebuild', | 1551 'SYMROOT': '<(DEPTH)/xcodebuild', |
1539 }, | 1552 }, |
1540 } | 1553 } |
1541 | 1554 |
1542 # Local Variables: | 1555 # Local Variables: |
1543 # tab-width:2 | 1556 # tab-width:2 |
1544 # indent-tabs-mode:nil | 1557 # indent-tabs-mode:nil |
1545 # End: | 1558 # End: |
1546 # vim: set expandtab tabstop=2 shiftwidth=2: | 1559 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |