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

Side by Side Diff: build/common.gypi

Issue 69293004: Add gomadir 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 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
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
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%': '${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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 'v8_optimized_debug%': 1, 800 'v8_optimized_debug%': 1,
787 }, { 801 }, {
788 'v8_optimized_debug%': 2, 802 'v8_optimized_debug%': 2,
789 }], 803 }],
790 804
791 # Disable various features by default on embedded. 805 # Disable various features by default on embedded.
792 ['embedded==1', { 806 ['embedded==1', {
793 'remoting%': 0, 807 'remoting%': 0,
794 'enable_printing%': 0, 808 'enable_printing%': 0,
795 }], 809 }],
810
811 # Set goma_status = "ok" if the user can use goma.
812 # TODO(yyanagisawa): set "ok" only if goma is available (if needed).
Nico 2013/11/26 21:58:23 I'd remove this for now and just check "use_goma==
Yoshisato Yanagisawa 2013/11/27 02:01:39 Done.
813 ['use_goma==1 and gomadir!=""', {
814 'goma_status': 'ok',
815 },{
816 'goma_status': '',
817 }],
796 ], 818 ],
797 819
798 # Set this to 1 to enable use of concatenated impulse responses 820 # Set this to 1 to enable use of concatenated impulse responses
799 # for the HRTF panner in WebAudio. 821 # for the HRTF panner in WebAudio.
800 'use_concatenated_impulse_responses': 1, 822 'use_concatenated_impulse_responses': 1,
801 823
802 # You can set the variable 'use_official_google_api_keys' to 1 824 # You can set the variable 'use_official_google_api_keys' to 1
803 # to use the Google-internal file containing official API keys 825 # to use the Google-internal file containing official API keys
804 # for Google Chrome even in a developer build. Setting this 826 # for Google Chrome even in a developer build. Setting this
805 # variable explicitly to 1 will cause your build to fail if the 827 # variable explicitly to 1 will cause your build to fail if the
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', 973 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)',
952 'data_reduction_fallback_host%': '<(data_reduction_fallback_host)', 974 'data_reduction_fallback_host%': '<(data_reduction_fallback_host)',
953 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', 975 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)',
954 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', 976 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
955 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', 977 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
956 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)', 978 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)',
957 'enable_mdns%' : '<(enable_mdns)', 979 'enable_mdns%' : '<(enable_mdns)',
958 'enable_enhanced_bookmarks%' : '<(enable_enhanced_bookmarks)', 980 'enable_enhanced_bookmarks%' : '<(enable_enhanced_bookmarks)',
959 'v8_optimized_debug%': '<(v8_optimized_debug)', 981 'v8_optimized_debug%': '<(v8_optimized_debug)',
960 'proprietary_codecs%': '<(proprietary_codecs)', 982 'proprietary_codecs%': '<(proprietary_codecs)',
983 'use_goma%': '<(use_goma)',
984 'gomadir%': '<(gomadir)',
985 'goma_status%': '<(goma_status)',
961 986
962 # Use system nspr instead of the bundled one. 987 # Use system nspr instead of the bundled one.
963 'use_system_nspr%': 0, 988 'use_system_nspr%': 0,
964 989
965 # Use system protobuf instead of bundled one. 990 # Use system protobuf instead of bundled one.
966 'use_system_protobuf%': 0, 991 'use_system_protobuf%': 0,
967 992
968 # Use system yasm instead of bundled one. 993 # Use system yasm instead of bundled one.
969 'use_system_yasm%': 0, 994 'use_system_yasm%': 0,
970 995
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 # This is the default platform 1890 # This is the default platform
1866 'ozone_platform%': "test", 1891 'ozone_platform%': "test",
1867 1892
1868 # Enable built-in ozone platforms if ozone is enabled. 1893 # Enable built-in ozone platforms if ozone is enabled.
1869 'ozone_platform_dri%': 1, 1894 'ozone_platform_dri%': 1,
1870 'ozone_platform_test%': 1, 1895 'ozone_platform_test%': 1,
1871 }, { # use_ozone==0 1896 }, { # use_ozone==0
1872 'ozone_platform_dri%': 0, 1897 'ozone_platform_dri%': 0,
1873 'ozone_platform_test%': 0, 1898 'ozone_platform_test%': 0,
1874 }], 1899 }],
1900 ['OS=="win" and goma_status=="ok"', {
1901 # goma doesn't support pch yet.
1902 'chromium_win_pch': 0,
1903 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1.
1904 'conditions': [
1905 ['fastbuild==0', {
1906 'win_z7': 1,
1907 }],
1908 ],
1909 }],
1875 ], 1910 ],
1876 1911
1877 1912
1878 # The path to the ANGLE library. TODO(apatrick): This is to help 1913 # 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 1914 # transition to a new version of ANGLE at a new location. After the
1880 # transition is complete, this can be removed. 1915 # transition is complete, this can be removed.
1881 'angle_path': '<(DEPTH)/third_party/angle_dx11', 1916 'angle_path': '<(DEPTH)/third_party/angle_dx11',
1882 1917
1883 # List of default apps to install in new profiles. The first list contains 1918 # 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, 1919 # 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
4637 # for gcc 4.8. 4672 # for gcc 4.8.
4638 # TODO: remove this flag once all builds work. See crbug.com/227506 4673 # TODO: remove this flag once all builds work. See crbug.com/227506
4639 ['gcc_version>=48', { 4674 ['gcc_version>=48', {
4640 'target_defaults': { 4675 'target_defaults': {
4641 'cflags': [ 4676 'cflags': [
4642 '-Wno-unused-local-typedefs', 4677 '-Wno-unused-local-typedefs',
4643 ], 4678 ],
4644 }, 4679 },
4645 }], 4680 }],
4646 ['clang==1', { 4681 ['clang==1', {
4647 'conditions': [ 4682 'make_global_settings': [
4648 ['OS=="android"', { 4683 ['CC', '<(make_clang_dir)/bin/clang'],
4649 # Android could use the goma with clang. 4684 ['CXX', '<(make_clang_dir)/bin/clang++'],
4650 'make_global_settings': [ 4685 ['CC.host', '$(CC)'],
4651 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make _clang_dir)/bin/clang)'], 4686 ['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 ], 4687 ],
4665 }], 4688 }],
4666 ['OS=="android" and clang==0', { 4689 ['OS=="android" and clang==0', {
4667 # Hardcode the compiler names in the Makefile so that 4690 # Hardcode the compiler names in the Makefile so that
4668 # it won't depend on the environment at make time. 4691 # it won't depend on the environment at make time.
4669 'make_global_settings': [ 4692 'make_global_settings': [
4670 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], 4693 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
4671 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], 4694 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'],
4672 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], 4695 ['CC.host', '<!(which gcc)'],
4673 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 4696 ['CXX.host', '<!(which g++)'],
4674 ], 4697 ],
4675 }], 4698 }],
4676 ['OS=="linux" and target_arch=="mipsel"', { 4699 ['OS=="linux" and target_arch=="mipsel"', {
4677 'make_global_settings': [ 4700 'make_global_settings': [
4678 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], 4701 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
4679 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], 4702 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
4680 ['CC.host', '<!(which gcc)'], 4703 ['CC.host', '<!(which gcc)'],
4681 ['CXX.host', '<!(which g++)'], 4704 ['CXX.host', '<!(which g++)'],
4682 ], 4705 ],
4683 }], 4706 }],
4707
4708 # TODO(yyanagisawa): supports GENERATOR==make
4709 # make generator doesn't support CC_wrapper without CC
4710 # in make_global_settings yet.
4711 ['goma_status=="ok" and ("<(GENERATOR)"=="ninja" or clang==1 or OS=="android ")', {
Nico 2013/11/26 21:58:23 I think OS==android implies <(GENERATOR) = ninja,
Yoshisato Yanagisawa 2013/11/27 02:01:39 Done.
4712 'make_global_settings': [
4713 ['CC_wrapper', '<(gomadir)/gomacc'],
4714 ['CXX_wrapper', '<(gomadir)/gomacc'],
4715 ['CC.host_wrapper', '<(gomadir)/gomacc'],
4716 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
4717 ],
4718 }],
4684 ], 4719 ],
4685 'xcode_settings': { 4720 'xcode_settings': {
4686 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 4721 # 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 4722 # This block adds *project-wide* configuration settings to each project
4688 # file. It's almost always wrong to put things here. Specify your 4723 # 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. 4724 # custom xcode_settings in target_defaults to add them to targets instead.
4690 4725
4691 'conditions': [ 4726 'conditions': [
4692 # In an Xcode Project Info window, the "Base SDK for All Configurations" 4727 # 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 4728 # 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
4745 # settings in target dicts. SYMROOT is a special case, because many other 4780 # settings in target dicts. SYMROOT is a special case, because many other
4746 # Xcode variables depend on it, including variables such as 4781 # Xcode variables depend on it, including variables such as
4747 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4782 # 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 4783 # 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 4784 # 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, 4785 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4751 # and therefore SYMROOT, needs to be set at the project level. 4786 # and therefore SYMROOT, needs to be set at the project level.
4752 'SYMROOT': '<(DEPTH)/xcodebuild', 4787 'SYMROOT': '<(DEPTH)/xcodebuild',
4753 }, 4788 },
4754 } 4789 }
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