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. |
11 'variables': { | 11 'variables': { |
12 # Putting a variables dict inside another variables dict looks kind of | 12 # Putting a variables dict inside another variables dict looks kind of |
13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as | 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as |
14 # variables within the outer variables dict here. This is necessary | 14 # variables within the outer variables dict here. This is necessary |
15 # to get these variables defined for the conditions within this variables | 15 # to get these variables defined for the conditions within this variables |
16 # dict that operate on these variables (e.g., for setting 'toolkit_views', | 16 # dict that operate on these variables (e.g., for setting 'toolkit_views', |
17 # we need to have 'chromeos' already set). | 17 # we need to have 'chromeos' already set). |
18 'variables': { | 18 'variables': { |
19 'variables': { | 19 'variables': { |
20 'variables': { | 20 'variables': { |
21 # Whether we're building a ChromeOS build. | 21 # Whether we're building a ChromeOS build. |
22 'chromeos%': 0, | 22 'chromeos%': 0, |
23 | 23 |
24 # Disable touch support by default. | 24 # Disable touch support by default. |
25 'touchui%': 0, | 25 'touchui%': 0, |
evanm
2011/02/01 19:39:59
probably didn't mean to make this change
DaveMoore
2011/02/01 21:33:04
Done.
| |
26 }, | 26 }, |
27 # Copy conditionally-set variables out one scope. | 27 # Copy conditionally-set variables out one scope. |
28 'chromeos%': '<(chromeos)', | 28 'chromeos%': '<(chromeos)', |
29 'touchui%': '<(touchui)', | 29 'touchui%': '<(touchui)', |
30 | 30 |
31 # To do a shared build on linux we need to be able to choose between | 31 # To do a shared build on linux we need to be able to choose between |
32 # type static_library and shared_library. We default to doing a static | 32 # type static_library and shared_library. We default to doing a static |
33 # build but you can override this with "gyp -Dlibrary=shared_library" | 33 # build but you can override this with "gyp -Dlibrary=shared_library" |
34 # or you can add the following line (without the #) to | 34 # or you can add the following line (without the #) to |
35 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} | 35 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} |
(...skipping 236 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. | |
evanm
2011/02/01 19:39:59
Could you reference where to find more info on thi
DaveMoore
2011/02/01 21:33:04
Done.
| |
283 'profiling%': '0', | |
284 | |
282 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. | 285 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. |
283 'linux_breakpad%': 0, | 286 'linux_breakpad%': 0, |
284 # And if we want to dump symbols for Breakpad-enabled builds. | 287 # And if we want to dump symbols for Breakpad-enabled builds. |
285 'linux_dump_symbols%': 0, | 288 'linux_dump_symbols%': 0, |
286 # And if we want to strip the binary after dumping symbols. | 289 # And if we want to strip the binary after dumping symbols. |
287 'linux_strip_binary%': 0, | 290 'linux_strip_binary%': 0, |
288 # Strip the test binaries needed for Linux reliability tests. | 291 # Strip the test binaries needed for Linux reliability tests. |
289 'linux_strip_reliability_tests%': 0, | 292 'linux_strip_reliability_tests%': 0, |
290 | 293 |
291 # Enable TCMalloc. | 294 # Enable TCMalloc. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
529 }], | 532 }], |
530 ['toolkit_views==1', { | 533 ['toolkit_views==1', { |
531 'defines': ['TOOLKIT_VIEWS=1'], | 534 'defines': ['TOOLKIT_VIEWS=1'], |
532 }], | 535 }], |
533 ['chromeos==1', { | 536 ['chromeos==1', { |
534 'defines': ['OS_CHROMEOS=1'], | 537 'defines': ['OS_CHROMEOS=1'], |
535 }], | 538 }], |
536 ['touchui==1', { | 539 ['touchui==1', { |
537 'defines': ['TOUCH_UI=1'], | 540 'defines': ['TOUCH_UI=1'], |
538 }], | 541 }], |
542 ['profiling==1', { | |
543 'defines': ['ENABLE_PROFILING=1'], | |
544 }], | |
539 ['remoting==1', { | 545 ['remoting==1', { |
540 'defines': ['ENABLE_REMOTING=1'], | 546 'defines': ['ENABLE_REMOTING=1'], |
541 }], | 547 }], |
542 ['proprietary_codecs==1', { | 548 ['proprietary_codecs==1', { |
543 'defines': ['USE_PROPRIETARY_CODECS'], | 549 'defines': ['USE_PROPRIETARY_CODECS'], |
544 }], | 550 }], |
545 ['enable_flapper_hacks==1', { | 551 ['enable_flapper_hacks==1', { |
546 'defines': ['ENABLE_FLAPPER_HACKS=1'], | 552 'defines': ['ENABLE_FLAPPER_HACKS=1'], |
547 }], | 553 }], |
548 ['fastbuild!=0', { | 554 ['fastbuild!=0', { |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1007 ['no_gc_sections==0', { | 1013 ['no_gc_sections==0', { |
1008 'ldflags': [ | 1014 'ldflags': [ |
1009 '-Wl,--gc-sections', | 1015 '-Wl,--gc-sections', |
1010 ], | 1016 ], |
1011 }], | 1017 }], |
1012 ['clang==1', { | 1018 ['clang==1', { |
1013 'cflags!': [ | 1019 'cflags!': [ |
1014 '-fno-ident', | 1020 '-fno-ident', |
1015 ], | 1021 ], |
1016 }], | 1022 }], |
1023 ['profiling==1', { | |
1024 'cflags': [ | |
1025 '-fno-omit-frame-pointer', | |
1026 '-g', | |
1027 ], | |
1028 }], | |
1017 ] | 1029 ] |
1018 }, | 1030 }, |
1019 }, | 1031 }, |
1020 'variants': { | 1032 'variants': { |
1021 'coverage': { | 1033 'coverage': { |
1022 'cflags': ['-fprofile-arcs', '-ftest-coverage'], | 1034 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
1023 'ldflags': ['-fprofile-arcs'], | 1035 'ldflags': ['-fprofile-arcs'], |
1024 }, | 1036 }, |
1025 'profile': { | 1037 'profile': { |
1026 'cflags': ['-pg', '-g'], | 1038 '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. | 1549 # and therefore SYMROOT, needs to be set at the project level. |
1538 'SYMROOT': '<(DEPTH)/xcodebuild', | 1550 'SYMROOT': '<(DEPTH)/xcodebuild', |
1539 }, | 1551 }, |
1540 } | 1552 } |
1541 | 1553 |
1542 # Local Variables: | 1554 # Local Variables: |
1543 # tab-width:2 | 1555 # tab-width:2 |
1544 # indent-tabs-mode:nil | 1556 # indent-tabs-mode:nil |
1545 # End: | 1557 # End: |
1546 # vim: set expandtab tabstop=2 shiftwidth=2: | 1558 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |