Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: trunk/src/build/common.gypi

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

Powered by Google App Engine
This is Rietveld 408576698