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

Side by Side Diff: build/common.gypi

Issue 96923002: Add use_goma for GYP_DEFINES (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
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
« 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 # very well; such hosts should pass an explicit target_arch to 100 # very well; such hosts should pass an explicit target_arch to
101 # gyp. 101 # gyp.
102 'host_arch%': 102 'host_arch%':
103 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s /arm.*/arm/;s/i86pc/ia32/")', 103 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s /arm.*/arm/;s/i86pc/ia32/")',
104 }], 104 }],
105 105
106 # Embedded implies ozone. 106 # Embedded implies ozone.
107 ['embedded==1', { 107 ['embedded==1', {
108 'use_ozone%': 1, 108 'use_ozone%': 1,
109 }], 109 }],
110
111 ['OS=="android"', {
112 'android_goma_dir%': '<!(dirname "${ANDROID_GOMA_WRAPPER}")',
boliu 2013/12/04 17:11:39 This is breaking android builds that is *not* usin
113 }, {
114 'android_goma_dir%': ''
115 }],
110 ], 116 ],
111 }, 117 },
112 # Copy conditionally-set variables out one scope. 118 # Copy conditionally-set variables out one scope.
113 'chromeos%': '<(chromeos)', 119 'chromeos%': '<(chromeos)',
114 'desktop_linux%': '<(desktop_linux)', 120 'desktop_linux%': '<(desktop_linux)',
115 'use_aura%': '<(use_aura)', 121 'use_aura%': '<(use_aura)',
116 'use_ash%': '<(use_ash)', 122 'use_ash%': '<(use_ash)',
117 'use_cras%': '<(use_cras)', 123 'use_cras%': '<(use_cras)',
118 'use_ozone%': '<(use_ozone)', 124 'use_ozone%': '<(use_ozone)',
119 'embedded%': '<(embedded)', 125 'embedded%': '<(embedded)',
(...skipping 14 matching lines...) Expand all
134 # still built when this is unset, but builds using the normal chromium 140 # still built when this is unset, but builds using the normal chromium
135 # build system. 141 # build system.
136 'android_webview_build%': 0, 142 'android_webview_build%': 0,
137 143
138 # Sets whether chrome is built for google tv device. 144 # Sets whether chrome is built for google tv device.
139 'google_tv%': 0, 145 'google_tv%': 0,
140 146
141 # Set ARM architecture version. 147 # Set ARM architecture version.
142 'arm_version%': 7, 148 'arm_version%': 7,
143 149
150 # goma settings.
151 # 1 to use goma.
152 # If no gomadir is set, it uses the default gomadir.
153 'use_goma%': 0,
154 'gomadir%': '',
155
144 'conditions': [ 156 'conditions': [
145 # Ash needs Aura. 157 # Ash needs Aura.
146 ['use_aura==0', { 158 ['use_aura==0', {
147 'use_ash%': 0, 159 'use_ash%': 0,
148 }], 160 }],
149 161
150 # Set default value of toolkit_views based on OS. 162 # Set default value of toolkit_views based on OS.
151 ['OS=="win" or chromeos==1 or use_aura==1', { 163 ['OS=="win" or chromeos==1 or use_aura==1', {
152 'toolkit_views%': 1, 164 'toolkit_views%': 1,
153 }, { 165 }, {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', { 201 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', {
190 'use_default_render_theme%': 1, 202 'use_default_render_theme%': 1,
191 }, { 203 }, {
192 'use_default_render_theme%': 0, 204 'use_default_render_theme%': 0,
193 }], 205 }],
194 206
195 ['use_ozone==1', { 207 ['use_ozone==1', {
196 'use_ozone_evdev%': 1, 208 'use_ozone_evdev%': 1,
197 }, { 209 }, {
198 'use_ozone_evdev%': 0, 210 'use_ozone_evdev%': 0,
199 }] 211 }],
212
213 # Set default gomadir.
214 ['OS=="win"', {
215 'gomadir': 'c:\\goma\\goma-win',
216 }],
217 ['android_goma_dir!=""', {
218 'use_goma': 1,
219 'gomadir': '<(android_goma_dir)',
220 }],
221 ['OS!="win" and android_goma_dir==""', {
222 'gomadir': '<!(/bin/echo -n ${HOME}/goma)',
223 }],
200 ], 224 ],
201 }, 225 },
202 226
203 # Copy conditionally-set variables out one scope. 227 # Copy conditionally-set variables out one scope.
204 'chromeos%': '<(chromeos)', 228 'chromeos%': '<(chromeos)',
205 'host_arch%': '<(host_arch)', 229 'host_arch%': '<(host_arch)',
206 'target_arch%': '<(target_arch)', 230 'target_arch%': '<(target_arch)',
207 'toolkit_views%': '<(toolkit_views)', 231 'toolkit_views%': '<(toolkit_views)',
208 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 232 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
209 'desktop_linux%': '<(desktop_linux)', 233 'desktop_linux%': '<(desktop_linux)',
210 'use_aura%': '<(use_aura)', 234 'use_aura%': '<(use_aura)',
211 'use_ash%': '<(use_ash)', 235 'use_ash%': '<(use_ash)',
212 'use_cras%': '<(use_cras)', 236 'use_cras%': '<(use_cras)',
213 'use_ozone%': '<(use_ozone)', 237 'use_ozone%': '<(use_ozone)',
214 'use_ozone_evdev%': '<(use_ozone_evdev)', 238 'use_ozone_evdev%': '<(use_ozone_evdev)',
215 'embedded%': '<(embedded)', 239 'embedded%': '<(embedded)',
216 'use_openssl%': '<(use_openssl)', 240 'use_openssl%': '<(use_openssl)',
217 'enable_viewport%': '<(enable_viewport)', 241 'enable_viewport%': '<(enable_viewport)',
218 'enable_hidpi%': '<(enable_hidpi)', 242 'enable_hidpi%': '<(enable_hidpi)',
219 'enable_touch_ui%': '<(enable_touch_ui)', 243 'enable_touch_ui%': '<(enable_touch_ui)',
220 'android_webview_build%': '<(android_webview_build)', 244 'android_webview_build%': '<(android_webview_build)',
221 'google_tv%': '<(google_tv)', 245 'google_tv%': '<(google_tv)',
246 'use_goma%': '<(use_goma)',
247 'gomadir%': '<(gomadir)',
222 'enable_app_list%': '<(enable_app_list)', 248 'enable_app_list%': '<(enable_app_list)',
223 'use_default_render_theme%': '<(use_default_render_theme)', 249 'use_default_render_theme%': '<(use_default_render_theme)',
224 'buildtype%': '<(buildtype)', 250 'buildtype%': '<(buildtype)',
225 'branding%': '<(branding)', 251 'branding%': '<(branding)',
226 'arm_version%': '<(arm_version)', 252 'arm_version%': '<(arm_version)',
227 253
228 # Set to 1 to enable fast builds. Set to 2 for even faster builds 254 # 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 255 # (it disables debug info for fastest compilation - only for use
230 # on compile-only bots). 256 # on compile-only bots).
231 'fastbuild%': 0, 257 'fastbuild%': 0,
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', 967 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)',
942 'data_reduction_fallback_host%': '<(data_reduction_fallback_host)', 968 'data_reduction_fallback_host%': '<(data_reduction_fallback_host)',
943 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', 969 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)',
944 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', 970 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
945 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', 971 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
946 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)', 972 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)',
947 'enable_mdns%' : '<(enable_mdns)', 973 'enable_mdns%' : '<(enable_mdns)',
948 'enable_enhanced_bookmarks%' : '<(enable_enhanced_bookmarks)', 974 'enable_enhanced_bookmarks%' : '<(enable_enhanced_bookmarks)',
949 'v8_optimized_debug%': '<(v8_optimized_debug)', 975 'v8_optimized_debug%': '<(v8_optimized_debug)',
950 'proprietary_codecs%': '<(proprietary_codecs)', 976 'proprietary_codecs%': '<(proprietary_codecs)',
977 'use_goma%': '<(use_goma)',
978 'gomadir%': '<(gomadir)',
951 979
952 # Use system nspr instead of the bundled one. 980 # Use system nspr instead of the bundled one.
953 'use_system_nspr%': 0, 981 'use_system_nspr%': 0,
954 982
955 # Use system protobuf instead of bundled one. 983 # Use system protobuf instead of bundled one.
956 'use_system_protobuf%': 0, 984 'use_system_protobuf%': 0,
957 985
958 # Use system yasm instead of bundled one. 986 # Use system yasm instead of bundled one.
959 'use_system_yasm%': 0, 987 'use_system_yasm%': 0,
960 988
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 # This is the default platform 1882 # This is the default platform
1855 'ozone_platform%': "test", 1883 'ozone_platform%': "test",
1856 1884
1857 # Enable built-in ozone platforms if ozone is enabled. 1885 # Enable built-in ozone platforms if ozone is enabled.
1858 'ozone_platform_dri%': 1, 1886 'ozone_platform_dri%': 1,
1859 'ozone_platform_test%': 1, 1887 'ozone_platform_test%': 1,
1860 }, { # use_ozone==0 1888 }, { # use_ozone==0
1861 'ozone_platform_dri%': 0, 1889 'ozone_platform_dri%': 0,
1862 'ozone_platform_test%': 0, 1890 'ozone_platform_test%': 0,
1863 }], 1891 }],
1892 ['OS=="win" and use_goma==1', {
1893 # goma doesn't support pch yet.
1894 'chromium_win_pch': 0,
1895 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1.
1896 'conditions': [
1897 ['fastbuild==0', {
1898 'win_z7': 1,
1899 }],
1900 ],
1901 }],
1864 ], 1902 ],
1865 1903
1866 1904
1867 # The path to the ANGLE library. TODO(apatrick): This is to help 1905 # The path to the ANGLE library. TODO(apatrick): This is to help
1868 # transition to a new version of ANGLE at a new location. After the 1906 # transition to a new version of ANGLE at a new location. After the
1869 # transition is complete, this can be removed. 1907 # transition is complete, this can be removed.
1870 'angle_path': '<(DEPTH)/third_party/angle_dx11', 1908 'angle_path': '<(DEPTH)/third_party/angle_dx11',
1871 1909
1872 # List of default apps to install in new profiles. The first list contains 1910 # List of default apps to install in new profiles. The first list contains
1873 # the source files as found in svn. The second list, used only for linux, 1911 # the source files as found in svn. The second list, used only for linux,
(...skipping 2764 matching lines...) Expand 10 before | Expand all | Expand 10 after
4638 # for gcc 4.8. 4676 # for gcc 4.8.
4639 # TODO: remove this flag once all builds work. See crbug.com/227506 4677 # TODO: remove this flag once all builds work. See crbug.com/227506
4640 ['gcc_version>=48', { 4678 ['gcc_version>=48', {
4641 'target_defaults': { 4679 'target_defaults': {
4642 'cflags': [ 4680 'cflags': [
4643 '-Wno-unused-local-typedefs', 4681 '-Wno-unused-local-typedefs',
4644 ], 4682 ],
4645 }, 4683 },
4646 }], 4684 }],
4647 ['clang==1', { 4685 ['clang==1', {
4648 'conditions': [ 4686 'make_global_settings': [
4649 ['OS=="android"', { 4687 ['CC', '<(make_clang_dir)/bin/clang'],
4650 # Android could use the goma with clang. 4688 ['CXX', '<(make_clang_dir)/bin/clang++'],
4651 'make_global_settings': [ 4689 ['CC.host', '$(CC)'],
4652 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make _clang_dir)/bin/clang)'], 4690 ['CXX.host', '$(CXX)'],
4653 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak e_clang_dir)/bin/clang++)'],
4654 ['CC.host', '$(CC)'],
4655 ['CXX.host', '$(CXX)'],
4656 ],
4657 }, {
4658 'make_global_settings': [
4659 ['CC', '<(make_clang_dir)/bin/clang'],
4660 ['CXX', '<(make_clang_dir)/bin/clang++'],
4661 ['CC.host', '$(CC)'],
4662 ['CXX.host', '$(CXX)'],
4663 ],
4664 }],
4665 ], 4691 ],
4666 }], 4692 }],
4667 ['OS=="android" and clang==0', { 4693 ['OS=="android" and clang==0', {
4668 # Hardcode the compiler names in the Makefile so that 4694 # Hardcode the compiler names in the Makefile so that
4669 # it won't depend on the environment at make time. 4695 # it won't depend on the environment at make time.
4670 'make_global_settings': [ 4696 'make_global_settings': [
4671 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], 4697 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
4672 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], 4698 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'],
4673 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], 4699 ['CC.host', '<!(which gcc)'],
4674 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 4700 ['CXX.host', '<!(which g++)'],
4675 ], 4701 ],
4676 }], 4702 }],
4677 ['OS=="linux" and target_arch=="mipsel"', { 4703 ['OS=="linux" and target_arch=="mipsel"', {
4678 'make_global_settings': [ 4704 'make_global_settings': [
4679 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], 4705 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
4680 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], 4706 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
4681 ['CC.host', '<!(which gcc)'], 4707 ['CC.host', '<!(which gcc)'],
4682 ['CXX.host', '<!(which g++)'], 4708 ['CXX.host', '<!(which g++)'],
4683 ], 4709 ],
4684 }], 4710 }],
4711
4712 # TODO(yyanagisawa): supports GENERATOR==make
4713 # make generator doesn't support CC_wrapper without CC
4714 # in make_global_settings yet.
4715 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', {
4716 'make_global_settings': [
4717 ['CC_wrapper', '<(gomadir)/gomacc'],
4718 ['CXX_wrapper', '<(gomadir)/gomacc'],
4719 ['CC.host_wrapper', '<(gomadir)/gomacc'],
4720 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
4721 ],
4722 }],
4685 ], 4723 ],
4686 'xcode_settings': { 4724 'xcode_settings': {
4687 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 4725 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
4688 # This block adds *project-wide* configuration settings to each project 4726 # This block adds *project-wide* configuration settings to each project
4689 # file. It's almost always wrong to put things here. Specify your 4727 # file. It's almost always wrong to put things here. Specify your
4690 # custom xcode_settings in target_defaults to add them to targets instead. 4728 # custom xcode_settings in target_defaults to add them to targets instead.
4691 4729
4692 'conditions': [ 4730 'conditions': [
4693 # In an Xcode Project Info window, the "Base SDK for All Configurations" 4731 # In an Xcode Project Info window, the "Base SDK for All Configurations"
4694 # setting sets the SDK on a project-wide basis. In order to get the 4732 # 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
4746 # settings in target dicts. SYMROOT is a special case, because many other 4784 # settings in target dicts. SYMROOT is a special case, because many other
4747 # Xcode variables depend on it, including variables such as 4785 # Xcode variables depend on it, including variables such as
4748 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4786 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4749 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4787 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4750 # files to appear (when present) in the UI as actual files and not red 4788 # files to appear (when present) in the UI as actual files and not red
4751 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4789 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4752 # and therefore SYMROOT, needs to be set at the project level. 4790 # and therefore SYMROOT, needs to be set at the project level.
4753 'SYMROOT': '<(DEPTH)/xcodebuild', 4791 'SYMROOT': '<(DEPTH)/xcodebuild',
4754 }, 4792 },
4755 } 4793 }
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