OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 # This is set when building the Android WebView inside the Android | 132 # This is set when building the Android WebView inside the Android |
133 # build system, using the 'android' gyp backend. The WebView code is | 133 # build system, using the 'android' gyp backend. The WebView code is |
134 # still built when this is unset, but builds using the normal chromium | 134 # still built when this is unset, but builds using the normal chromium |
135 # build system. | 135 # build system. |
136 'android_webview_build%': 0, | 136 'android_webview_build%': 0, |
137 | 137 |
138 # Sets whether chrome is built for google tv device. | 138 # Sets whether chrome is built for google tv device. |
139 'google_tv%': 0, | 139 'google_tv%': 0, |
140 | 140 |
| 141 # goma settings. |
| 142 # 1 to use goma. |
| 143 # If no gomadir is set, it uses the default gomadir. |
| 144 'use_goma%': 0, |
| 145 |
141 # Set ARM architecture version. | 146 # Set ARM architecture version. |
142 'arm_version%': 7, | 147 'arm_version%': 7, |
143 | 148 |
144 'conditions': [ | 149 'conditions': [ |
145 # Ash needs Aura. | 150 # Ash needs Aura. |
146 ['use_aura==0', { | 151 ['use_aura==0', { |
147 'use_ash%': 0, | 152 'use_ash%': 0, |
148 }], | 153 }], |
149 | 154 |
150 # Set default value of toolkit_views based on OS. | 155 # Set default value of toolkit_views based on OS. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro
id")', { | 194 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro
id")', { |
190 'use_default_render_theme%': 1, | 195 'use_default_render_theme%': 1, |
191 }, { | 196 }, { |
192 'use_default_render_theme%': 0, | 197 'use_default_render_theme%': 0, |
193 }], | 198 }], |
194 | 199 |
195 ['use_ozone==1', { | 200 ['use_ozone==1', { |
196 'use_ozone_evdev%': 1, | 201 'use_ozone_evdev%': 1, |
197 }, { | 202 }, { |
198 'use_ozone_evdev%': 0, | 203 'use_ozone_evdev%': 0, |
199 }] | 204 }], |
| 205 |
| 206 # Set default gomadir. |
| 207 ['OS=="win"', { |
| 208 'gomadir%': 'c:\\goma\\goma-win', |
| 209 }, { |
| 210 'gomadir%': '<!(/bin/echo -n ${HOME}/goma)', |
| 211 }], |
200 ], | 212 ], |
201 }, | 213 }, |
202 | 214 |
203 # Copy conditionally-set variables out one scope. | 215 # Copy conditionally-set variables out one scope. |
204 'chromeos%': '<(chromeos)', | 216 'chromeos%': '<(chromeos)', |
205 'host_arch%': '<(host_arch)', | 217 'host_arch%': '<(host_arch)', |
206 'target_arch%': '<(target_arch)', | 218 'target_arch%': '<(target_arch)', |
207 'toolkit_views%': '<(toolkit_views)', | 219 'toolkit_views%': '<(toolkit_views)', |
208 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 220 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
209 'desktop_linux%': '<(desktop_linux)', | 221 'desktop_linux%': '<(desktop_linux)', |
210 'use_aura%': '<(use_aura)', | 222 'use_aura%': '<(use_aura)', |
211 'use_ash%': '<(use_ash)', | 223 'use_ash%': '<(use_ash)', |
212 'use_cras%': '<(use_cras)', | 224 'use_cras%': '<(use_cras)', |
213 'use_ozone%': '<(use_ozone)', | 225 'use_ozone%': '<(use_ozone)', |
214 'use_ozone_evdev%': '<(use_ozone_evdev)', | 226 'use_ozone_evdev%': '<(use_ozone_evdev)', |
215 'embedded%': '<(embedded)', | 227 'embedded%': '<(embedded)', |
216 'use_openssl%': '<(use_openssl)', | 228 'use_openssl%': '<(use_openssl)', |
217 'enable_viewport%': '<(enable_viewport)', | 229 'enable_viewport%': '<(enable_viewport)', |
218 'enable_hidpi%': '<(enable_hidpi)', | 230 'enable_hidpi%': '<(enable_hidpi)', |
219 'enable_touch_ui%': '<(enable_touch_ui)', | 231 'enable_touch_ui%': '<(enable_touch_ui)', |
220 'android_webview_build%': '<(android_webview_build)', | 232 'android_webview_build%': '<(android_webview_build)', |
221 'google_tv%': '<(google_tv)', | 233 'google_tv%': '<(google_tv)', |
| 234 'use_goma%': '<(use_goma)', |
| 235 'gomadir%': '<(gomadir)', |
222 'enable_app_list%': '<(enable_app_list)', | 236 'enable_app_list%': '<(enable_app_list)', |
223 'use_default_render_theme%': '<(use_default_render_theme)', | 237 'use_default_render_theme%': '<(use_default_render_theme)', |
224 'buildtype%': '<(buildtype)', | 238 'buildtype%': '<(buildtype)', |
225 'branding%': '<(branding)', | 239 'branding%': '<(branding)', |
226 'arm_version%': '<(arm_version)', | 240 'arm_version%': '<(arm_version)', |
227 | 241 |
228 # Set to 1 to enable fast builds. Set to 2 for even faster builds | 242 # Set to 1 to enable fast builds. Set to 2 for even faster builds |
229 # (it disables debug info for fastest compilation - only for use | 243 # (it disables debug info for fastest compilation - only for use |
230 # on compile-only bots). | 244 # on compile-only bots). |
231 'fastbuild%': 0, | 245 'fastbuild%': 0, |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', | 965 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', |
952 'data_reduction_fallback_host%': '<(data_reduction_fallback_host)', | 966 'data_reduction_fallback_host%': '<(data_reduction_fallback_host)', |
953 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', | 967 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', |
954 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', | 968 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', |
955 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', | 969 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', |
956 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)', | 970 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)', |
957 'enable_mdns%' : '<(enable_mdns)', | 971 'enable_mdns%' : '<(enable_mdns)', |
958 'enable_enhanced_bookmarks%' : '<(enable_enhanced_bookmarks)', | 972 'enable_enhanced_bookmarks%' : '<(enable_enhanced_bookmarks)', |
959 'v8_optimized_debug%': '<(v8_optimized_debug)', | 973 'v8_optimized_debug%': '<(v8_optimized_debug)', |
960 'proprietary_codecs%': '<(proprietary_codecs)', | 974 'proprietary_codecs%': '<(proprietary_codecs)', |
| 975 'use_goma%': '<(use_goma)', |
| 976 'gomadir%': '<(gomadir)', |
961 | 977 |
962 # Use system nspr instead of the bundled one. | 978 # Use system nspr instead of the bundled one. |
963 'use_system_nspr%': 0, | 979 'use_system_nspr%': 0, |
964 | 980 |
965 # Use system protobuf instead of bundled one. | 981 # Use system protobuf instead of bundled one. |
966 'use_system_protobuf%': 0, | 982 'use_system_protobuf%': 0, |
967 | 983 |
968 # Use system yasm instead of bundled one. | 984 # Use system yasm instead of bundled one. |
969 'use_system_yasm%': 0, | 985 'use_system_yasm%': 0, |
970 | 986 |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 # This is the default platform | 1881 # This is the default platform |
1866 'ozone_platform%': "test", | 1882 'ozone_platform%': "test", |
1867 | 1883 |
1868 # Enable built-in ozone platforms if ozone is enabled. | 1884 # Enable built-in ozone platforms if ozone is enabled. |
1869 'ozone_platform_dri%': 1, | 1885 'ozone_platform_dri%': 1, |
1870 'ozone_platform_test%': 1, | 1886 'ozone_platform_test%': 1, |
1871 }, { # use_ozone==0 | 1887 }, { # use_ozone==0 |
1872 'ozone_platform_dri%': 0, | 1888 'ozone_platform_dri%': 0, |
1873 'ozone_platform_test%': 0, | 1889 'ozone_platform_test%': 0, |
1874 }], | 1890 }], |
| 1891 ['OS=="win" and use_goma==1', { |
| 1892 # goma doesn't support pch yet. |
| 1893 'chromium_win_pch': 0, |
| 1894 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1. |
| 1895 'conditions': [ |
| 1896 ['fastbuild==0', { |
| 1897 'win_z7': 1, |
| 1898 }], |
| 1899 ], |
| 1900 }], |
1875 ], | 1901 ], |
1876 | 1902 |
1877 | 1903 |
1878 # The path to the ANGLE library. TODO(apatrick): This is to help | 1904 # The path to the ANGLE library. TODO(apatrick): This is to help |
1879 # transition to a new version of ANGLE at a new location. After the | 1905 # transition to a new version of ANGLE at a new location. After the |
1880 # transition is complete, this can be removed. | 1906 # transition is complete, this can be removed. |
1881 'angle_path': '<(DEPTH)/third_party/angle_dx11', | 1907 'angle_path': '<(DEPTH)/third_party/angle_dx11', |
1882 | 1908 |
1883 # List of default apps to install in new profiles. The first list contains | 1909 # List of default apps to install in new profiles. The first list contains |
1884 # the source files as found in svn. The second list, used only for linux, | 1910 # the source files as found in svn. The second list, used only for linux, |
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4637 # for gcc 4.8. | 4663 # for gcc 4.8. |
4638 # TODO: remove this flag once all builds work. See crbug.com/227506 | 4664 # TODO: remove this flag once all builds work. See crbug.com/227506 |
4639 ['gcc_version>=48', { | 4665 ['gcc_version>=48', { |
4640 'target_defaults': { | 4666 'target_defaults': { |
4641 'cflags': [ | 4667 'cflags': [ |
4642 '-Wno-unused-local-typedefs', | 4668 '-Wno-unused-local-typedefs', |
4643 ], | 4669 ], |
4644 }, | 4670 }, |
4645 }], | 4671 }], |
4646 ['clang==1', { | 4672 ['clang==1', { |
4647 'conditions': [ | 4673 'make_global_settings': [ |
4648 ['OS=="android"', { | 4674 ['CC', '<(make_clang_dir)/bin/clang'], |
4649 # Android could use the goma with clang. | 4675 ['CXX', '<(make_clang_dir)/bin/clang++'], |
4650 'make_global_settings': [ | 4676 ['CC.host', '$(CC)'], |
4651 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make
_clang_dir)/bin/clang)'], | 4677 ['CXX.host', '$(CXX)'], |
4652 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak
e_clang_dir)/bin/clang++)'], | |
4653 ['CC.host', '$(CC)'], | |
4654 ['CXX.host', '$(CXX)'], | |
4655 ], | |
4656 }, { | |
4657 'make_global_settings': [ | |
4658 ['CC', '<(make_clang_dir)/bin/clang'], | |
4659 ['CXX', '<(make_clang_dir)/bin/clang++'], | |
4660 ['CC.host', '$(CC)'], | |
4661 ['CXX.host', '$(CXX)'], | |
4662 ], | |
4663 }], | |
4664 ], | 4678 ], |
4665 }], | 4679 }], |
4666 ['OS=="android" and clang==0', { | 4680 ['OS=="android" and clang==0', { |
4667 # Hardcode the compiler names in the Makefile so that | 4681 # Hardcode the compiler names in the Makefile so that |
4668 # it won't depend on the environment at make time. | 4682 # it won't depend on the environment at make time. |
4669 'make_global_settings': [ | 4683 'make_global_settings': [ |
4670 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g
cc)'], | 4684 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'], |
4671 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-
g++)'], | 4685 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'], |
4672 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], | 4686 ['CC.host', '<!(which gcc)'], |
4673 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], | 4687 ['CXX.host', '<!(which g++)'], |
4674 ], | 4688 ], |
4675 }], | 4689 }], |
4676 ['OS=="linux" and target_arch=="mipsel"', { | 4690 ['OS=="linux" and target_arch=="mipsel"', { |
4677 'make_global_settings': [ | 4691 'make_global_settings': [ |
4678 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], | 4692 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], |
4679 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], | 4693 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], |
4680 ['CC.host', '<!(which gcc)'], | 4694 ['CC.host', '<!(which gcc)'], |
4681 ['CXX.host', '<!(which g++)'], | 4695 ['CXX.host', '<!(which g++)'], |
4682 ], | 4696 ], |
4683 }], | 4697 }], |
| 4698 |
| 4699 # TODO(yyanagisawa): supports GENERATOR==make |
| 4700 # make generator doesn't support CC_wrapper without CC |
| 4701 # in make_global_settings yet. |
| 4702 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
| 4703 'make_global_settings': [ |
| 4704 ['CC_wrapper', '<(gomadir)/gomacc'], |
| 4705 ['CXX_wrapper', '<(gomadir)/gomacc'], |
| 4706 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
| 4707 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
| 4708 ], |
| 4709 }], |
4684 ], | 4710 ], |
4685 'xcode_settings': { | 4711 'xcode_settings': { |
4686 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 4712 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
4687 # This block adds *project-wide* configuration settings to each project | 4713 # This block adds *project-wide* configuration settings to each project |
4688 # file. It's almost always wrong to put things here. Specify your | 4714 # file. It's almost always wrong to put things here. Specify your |
4689 # custom xcode_settings in target_defaults to add them to targets instead. | 4715 # custom xcode_settings in target_defaults to add them to targets instead. |
4690 | 4716 |
4691 'conditions': [ | 4717 'conditions': [ |
4692 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 4718 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
4693 # setting sets the SDK on a project-wide basis. In order to get the | 4719 # setting sets the SDK on a project-wide basis. In order to get the |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4745 # settings in target dicts. SYMROOT is a special case, because many other | 4771 # settings in target dicts. SYMROOT is a special case, because many other |
4746 # Xcode variables depend on it, including variables such as | 4772 # Xcode variables depend on it, including variables such as |
4747 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4773 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4748 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4774 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4749 # files to appear (when present) in the UI as actual files and not red | 4775 # files to appear (when present) in the UI as actual files and not red |
4750 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4776 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4751 # and therefore SYMROOT, needs to be set at the project level. | 4777 # and therefore SYMROOT, needs to be set at the project level. |
4752 'SYMROOT': '<(DEPTH)/xcodebuild', | 4778 'SYMROOT': '<(DEPTH)/xcodebuild', |
4753 }, | 4779 }, |
4754 } | 4780 } |
OLD | NEW |