OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 # it can be overriden by the GYP command line or by ~/.gyp/include.gypi. | 119 # it can be overriden by the GYP command line or by ~/.gyp/include.gypi. |
120 'component%': 'static_library', | 120 'component%': 'static_library', |
121 | 121 |
122 # Set to select the Title Case versions of strings in GRD files. | 122 # Set to select the Title Case versions of strings in GRD files. |
123 'use_titlecase_in_grd_files%': 0, | 123 'use_titlecase_in_grd_files%': 0, |
124 | 124 |
125 # Use translations provided by volunteers at launchpad.net. This | 125 # Use translations provided by volunteers at launchpad.net. This |
126 # currently only works on Linux. | 126 # currently only works on Linux. |
127 'use_third_party_translations%': 0, | 127 'use_third_party_translations%': 0, |
128 | 128 |
| 129 # Enable the Manage Handlers section in the settings page. |
| 130 'show_handler_settings%': 1, |
| 131 |
129 # Remoting compilation is enabled by default. Set to 0 to disable. | 132 # Remoting compilation is enabled by default. Set to 0 to disable. |
130 'remoting%': 1, | 133 'remoting%': 1, |
131 | 134 |
132 # P2P APIs are compiled in by default. Set to 0 to disable. | 135 # P2P APIs are compiled in by default. Set to 0 to disable. |
133 # Also note that this should be enabled for remoting to compile. | 136 # Also note that this should be enabled for remoting to compile. |
134 'p2p_apis%': 1, | 137 'p2p_apis%': 1, |
135 | 138 |
136 # If this is set, the clang plugins used on the buildbot will be used. | 139 # If this is set, the clang plugins used on the buildbot will be used. |
137 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 140 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
138 # This causes 'clang_chrome_plugins_flags' to be set. | 141 # This causes 'clang_chrome_plugins_flags' to be set. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 'arm_neon%': '<(arm_neon)', | 220 'arm_neon%': '<(arm_neon)', |
218 'sysroot%': '<(sysroot)', | 221 'sysroot%': '<(sysroot)', |
219 'disable_sse2%': '<(disable_sse2)', | 222 'disable_sse2%': '<(disable_sse2)', |
220 'library%': 'static_library', | 223 'library%': 'static_library', |
221 'component%': '<(component)', | 224 'component%': '<(component)', |
222 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', | 225 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', |
223 'use_third_party_translations%': '<(use_third_party_translations)', | 226 'use_third_party_translations%': '<(use_third_party_translations)', |
224 'remoting%': '<(remoting)', | 227 'remoting%': '<(remoting)', |
225 'p2p_apis%': '<(p2p_apis)', | 228 'p2p_apis%': '<(p2p_apis)', |
226 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 229 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
| 230 'show_handler_settings%': '<(show_handler_settings)', |
227 | 231 |
228 # The release channel that this build targets. This is used to restrict | 232 # The release channel that this build targets. This is used to restrict |
229 # channel-specific build options, like which installer packages to create. | 233 # channel-specific build options, like which installer packages to create. |
230 # The default is 'all', which does no channel-specific filtering. | 234 # The default is 'all', which does no channel-specific filtering. |
231 'channel%': 'all', | 235 'channel%': 'all', |
232 | 236 |
233 # Override chromium_mac_pch and set it to 0 to suppress the use of | 237 # Override chromium_mac_pch and set it to 0 to suppress the use of |
234 # precompiled headers on the Mac. Prefix header injection may still be | 238 # precompiled headers on the Mac. Prefix header injection may still be |
235 # used, but prefix headers will not be precompiled. This is useful when | 239 # used, but prefix headers will not be precompiled. This is useful when |
236 # using distcc to distribute a build to compile slaves that don't | 240 # using distcc to distribute a build to compile slaves that don't |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 ['clang_use_chrome_plugins==1', { | 568 ['clang_use_chrome_plugins==1', { |
565 'clang_chrome_plugins_flags': | 569 'clang_chrome_plugins_flags': |
566 '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)', | 570 '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)', |
567 }], | 571 }], |
568 | 572 |
569 # Set 1 to enable ibus support. Currently it is only supported in touchui. | 573 # Set 1 to enable ibus support. Currently it is only supported in touchui. |
570 ['touchui==1 and chromeos==1', { | 574 ['touchui==1 and chromeos==1', { |
571 'use_ibus%': 1, | 575 'use_ibus%': 1, |
572 }, { | 576 }, { |
573 'use_ibus%': 0, | 577 'use_ibus%': 0, |
574 }] | 578 }], |
| 579 |
| 580 ['show_handler_settings==1', { |
| 581 'grit_defines': ['-D', 'show_handler_settings'], |
| 582 }], |
575 ], | 583 ], |
576 }, | 584 }, |
577 'target_defaults': { | 585 'target_defaults': { |
578 'variables': { | 586 'variables': { |
579 # The condition that operates on chromium_code is in a target_conditions | 587 # The condition that operates on chromium_code is in a target_conditions |
580 # section, and will not have access to the default fallback value of | 588 # section, and will not have access to the default fallback value of |
581 # chromium_code at the top of this file, or to the chromium_code | 589 # chromium_code at the top of this file, or to the chromium_code |
582 # variable placed at the root variables scope of .gyp files, because | 590 # variable placed at the root variables scope of .gyp files, because |
583 # those variables are not set at target scope. As a workaround, | 591 # those variables are not set at target scope. As a workaround, |
584 # if chromium_code is not set at target scope, define it in target scope | 592 # if chromium_code is not set at target scope, define it in target scope |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 ['OS=="win"', { | 753 ['OS=="win"', { |
746 'defines': [ | 754 'defines': [ |
747 '__STD_C', | 755 '__STD_C', |
748 '_CRT_SECURE_NO_DEPRECATE', | 756 '_CRT_SECURE_NO_DEPRECATE', |
749 '_SCL_SECURE_NO_DEPRECATE', | 757 '_SCL_SECURE_NO_DEPRECATE', |
750 ], | 758 ], |
751 'include_dirs': [ | 759 'include_dirs': [ |
752 '<(DEPTH)/third_party/wtl/include', | 760 '<(DEPTH)/third_party/wtl/include', |
753 ], | 761 ], |
754 }], # OS==win | 762 }], # OS==win |
| 763 ['show_handler_settings==1', { |
| 764 'defines': [ |
| 765 'SHOW_HANDLER_SETTINGS', |
| 766 ], |
| 767 }], |
755 ], # conditions for 'target_defaults' | 768 ], # conditions for 'target_defaults' |
756 'target_conditions': [ | 769 'target_conditions': [ |
757 ['chromium_code==0', { | 770 ['chromium_code==0', { |
758 'conditions': [ | 771 'conditions': [ |
759 [ 'os_posix==1 and OS!="mac"', { | 772 [ 'os_posix==1 and OS!="mac"', { |
760 # We don't want to get warnings from third-party code, | 773 # We don't want to get warnings from third-party code, |
761 # so remove any existing warning-enabling flags like -Wall. | 774 # so remove any existing warning-enabling flags like -Wall. |
762 'cflags!': [ | 775 'cflags!': [ |
763 '-Wall', | 776 '-Wall', |
764 '-Wextra', | 777 '-Wextra', |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 # and therefore SYMROOT, needs to be set at the project level. | 1751 # and therefore SYMROOT, needs to be set at the project level. |
1739 'SYMROOT': '<(DEPTH)/xcodebuild', | 1752 'SYMROOT': '<(DEPTH)/xcodebuild', |
1740 }, | 1753 }, |
1741 } | 1754 } |
1742 | 1755 |
1743 # Local Variables: | 1756 # Local Variables: |
1744 # tab-width:2 | 1757 # tab-width:2 |
1745 # indent-tabs-mode:nil | 1758 # indent-tabs-mode:nil |
1746 # End: | 1759 # End: |
1747 # vim: set expandtab tabstop=2 shiftwidth=2: | 1760 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |