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

Side by Side Diff: build/common.gypi

Issue 12419003: Add gomadir for GYP_DEFINES (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 'target_arch%': '<(host_arch)', 103 'target_arch%': '<(host_arch)',
104 104
105 # Sets whether we're building with the Android SDK/NDK (and hence with 105 # Sets whether we're building with the Android SDK/NDK (and hence with
106 # Ant, value 0), or as part of the Android system (and hence with the 106 # Ant, value 0), or as part of the Android system (and hence with the
107 # Android build system, value 1). 107 # Android build system, value 1).
108 'android_build_type%': 0, 108 'android_build_type%': 0,
109 109
110 # Sets whether chrome is built for google tv device. 110 # Sets whether chrome is built for google tv device.
111 'google_tv%': 0, 111 'google_tv%': 0,
112 112
113 # goma settings.
114 # 1 to use goma if user specified gomadir.
115 # 0 not to use goma even if user specified gomadir.
116 'use_goma%': 1,
117
113 'conditions': [ 118 'conditions': [
114 # Set default value of toolkit_views based on OS. 119 # Set default value of toolkit_views based on OS.
115 ['OS=="win" or chromeos==1 or use_aura==1', { 120 ['OS=="win" or chromeos==1 or use_aura==1', {
116 'toolkit_views%': 1, 121 'toolkit_views%': 1,
117 }, { 122 }, {
118 'toolkit_views%': 0, 123 'toolkit_views%': 0,
119 }], 124 }],
120 125
121 # Set toolkit_uses_gtk for the Chromium browser on Linux. 126 # Set toolkit_uses_gtk for the Chromium browser on Linux.
122 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_aura==0', { 127 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_aura==0', {
(...skipping 24 matching lines...) Expand all
147 'enable_message_center%': 1, 152 'enable_message_center%': 1,
148 }, { 153 }, {
149 'enable_message_center%': 0, 154 'enable_message_center%': 0,
150 }], 155 }],
151 156
152 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', { 157 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', {
153 'use_default_render_theme%': 1, 158 'use_default_render_theme%': 1,
154 }, { 159 }, {
155 'use_default_render_theme%': 0, 160 'use_default_render_theme%': 0,
156 }], 161 }],
162
163 # goma settings
164 # TODO(ukai): download goma in default dir
165 # by gclient hooks (as clang prebuilt binary).
166 ['OS=="android"', {
167 # On android, ANDROID_GOMA_WRAPPER might be gomacc path
168 # see build/android/envsetup.sh
169 'gomadir%': '<!(dirname ${ANDROID_GOMA_WRAPPER})',
170 },{
171 'gomadir%': '',
172 }],
157 ], 173 ],
158 }, 174 },
159 175
160 # Copy conditionally-set variables out one scope. 176 # Copy conditionally-set variables out one scope.
161 'chromeos%': '<(chromeos)', 177 'chromeos%': '<(chromeos)',
162 'host_arch%': '<(host_arch)', 178 'host_arch%': '<(host_arch)',
163 'target_arch%': '<(target_arch)', 179 'target_arch%': '<(target_arch)',
164 'toolkit_views%': '<(toolkit_views)', 180 'toolkit_views%': '<(toolkit_views)',
165 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 181 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
166 'use_aura%': '<(use_aura)', 182 'use_aura%': '<(use_aura)',
167 'use_ash%': '<(use_ash)', 183 'use_ash%': '<(use_ash)',
168 'use_openssl%': '<(use_openssl)', 184 'use_openssl%': '<(use_openssl)',
169 'enable_viewport%': '<(enable_viewport)', 185 'enable_viewport%': '<(enable_viewport)',
170 'enable_hidpi%': '<(enable_hidpi)', 186 'enable_hidpi%': '<(enable_hidpi)',
171 'enable_touch_ui%': '<(enable_touch_ui)', 187 'enable_touch_ui%': '<(enable_touch_ui)',
172 'android_build_type%': '<(android_build_type)', 188 'android_build_type%': '<(android_build_type)',
173 'google_tv%': '<(google_tv)', 189 'google_tv%': '<(google_tv)',
190 'use_goma%': '<(use_goma)',
191 'gomadir%': '<(gomadir)',
174 'enable_app_list%': '<(enable_app_list)', 192 'enable_app_list%': '<(enable_app_list)',
175 'enable_message_center%': '<(enable_message_center)', 193 'enable_message_center%': '<(enable_message_center)',
176 'use_default_render_theme%': '<(use_default_render_theme)', 194 'use_default_render_theme%': '<(use_default_render_theme)',
177 'buildtype%': '<(buildtype)', 195 'buildtype%': '<(buildtype)',
178 196
179 # Override branding to select the desired branding flavor. 197 # Override branding to select the desired branding flavor.
180 'branding%': 'Chromium', 198 'branding%': 'Chromium',
181 199
182 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are 200 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
183 # are built under a chromium full build (1) or a webkit.org chromium 201 # are built under a chromium full build (1) or a webkit.org chromium
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 'linux_breakpad%': 0, 643 'linux_breakpad%': 0,
626 'linux_use_tcmalloc%': 0, 644 'linux_use_tcmalloc%': 0,
627 # sysroot needs to be an absolute path otherwise it generates 645 # sysroot needs to be an absolute path otherwise it generates
628 # incorrect results when passed to pkg-config 646 # incorrect results when passed to pkg-config
629 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', 647 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot',
630 }], # OS=="linux" and target_arch=="arm" and chromeos==0 648 }], # OS=="linux" and target_arch=="arm" and chromeos==0
631 649
632 ['target_arch=="mipsel"', { 650 ['target_arch=="mipsel"', {
633 'sysroot': '<!(cd <(DEPTH) && pwd -P)/native_client/toolchain/linux_mi ps-trusted/sysroot', 651 'sysroot': '<!(cd <(DEPTH) && pwd -P)/native_client/toolchain/linux_mi ps-trusted/sysroot',
634 }], 652 }],
653
654 ['use_goma==1 and gomadir!=""', {
655 # Start goma and check whether it is available or not.
656 'conditions': [
657 ['OS!="win"', {
658 'goma_status':
659 '<!(<(gomadir)/goma_ctl.sh ensure_start >/dev/null 2>&1 && echo ok )'
660 }, {
661 'goma_status':
662 '<!(python <(gomadir)/goma_ctl.py ensure_start >/dev/null 2>/dev/n ull && echo ok)'
iannucci 2013/03/08 04:04:09 It's really too bad we can't just use goma_ctl for
ukai 2013/03/08 06:52:05 Oh, fixed to use NUL.
663 }],
664 ]
665 },{
666 'goma_status': '',
667 }],
635 ], 668 ],
636 669
637 # Set this to 1 to use the Google-internal file containing 670 # Set this to 1 to use the Google-internal file containing
638 # official API keys for Google Chrome even in a developer build. 671 # official API keys for Google Chrome even in a developer build.
639 # Setting this variable explicitly to 1 will cause your build to 672 # Setting this variable explicitly to 1 will cause your build to
640 # fail if the internal file is missing. 673 # fail if the internal file is missing.
641 # 674 #
642 # Set this to 0 to not use the internal file, even when it 675 # Set this to 0 to not use the internal file, even when it
643 # exists in your checkout. 676 # exists in your checkout.
644 # 677 #
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 'enable_message_center%': '<(enable_message_center)', 789 'enable_message_center%': '<(enable_message_center)',
757 'use_default_render_theme%': '<(use_default_render_theme)', 790 'use_default_render_theme%': '<(use_default_render_theme)',
758 'enable_settings_app%': '<(enable_settings_app)', 791 'enable_settings_app%': '<(enable_settings_app)',
759 'use_official_google_api_keys%': '<(use_official_google_api_keys)', 792 'use_official_google_api_keys%': '<(use_official_google_api_keys)',
760 'google_api_key%': '<(google_api_key)', 793 'google_api_key%': '<(google_api_key)',
761 'google_default_client_id%': '<(google_default_client_id)', 794 'google_default_client_id%': '<(google_default_client_id)',
762 'google_default_client_secret%': '<(google_default_client_secret)', 795 'google_default_client_secret%': '<(google_default_client_secret)',
763 'enable_managed_users%': '<(enable_managed_users)', 796 'enable_managed_users%': '<(enable_managed_users)',
764 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', 797 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)',
765 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', 798 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
799 'use_goma%': '<(use_goma)',
800 'gomadir%': '<(gomadir)',
801 'goma_status%': '<(goma_status)',
766 802
767 # Use system ffmpeg instead of bundled one. 803 # Use system ffmpeg instead of bundled one.
768 'use_system_ffmpeg%': 0, 804 'use_system_ffmpeg%': 0,
769 805
770 # Use system mesa instead of bundled one. 806 # Use system mesa instead of bundled one.
771 'use_system_mesa%': 0, 807 'use_system_mesa%': 0,
772 808
773 # Use system nspr instead of the bundled one. 809 # Use system nspr instead of the bundled one.
774 'use_system_nspr%': 0, 810 'use_system_nspr%': 0,
775 811
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', 1050 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))',
1015 1051
1016 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files', 1052 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files',
1017 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', 1053 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files',
1018 1054
1019 # Whether we are using the rlz library or not. Platforms like Android send 1055 # Whether we are using the rlz library or not. Platforms like Android send
1020 # rlz codes for searches but do not use the library. 1056 # rlz codes for searches but do not use the library.
1021 'enable_rlz%': 0, 1057 'enable_rlz%': 0,
1022 1058
1023 'conditions': [ 1059 'conditions': [
1060 ['goma_status=="ok" and OS=="win"', {
1061 # goma doesn't support pch yet.
1062 'chromium_win_pch': 0,
1063 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1.
1064 'conditions': [
1065 ['win_z7==0', {
1066 'fastbuild': 1,
iannucci 2013/03/08 04:04:09 At first I didn't like this, but now that I think
1067 }],
1068 ],
1069 }],
1070
1024 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { 1071 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', {
1025 'windows_sdk_path%': '<(windows_sdk_default_path)', 1072 'windows_sdk_path%': '<(windows_sdk_default_path)',
1026 }, { 1073 }, {
1027 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', 1074 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0',
1028 }], 1075 }],
1029 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { 1076 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', {
1030 'directx_sdk_path%': '<(directx_sdk_default_path)', 1077 'directx_sdk_path%': '<(directx_sdk_default_path)',
1031 }, { 1078 }, {
1032 'directx_sdk_path%': '$(DXSDK_DIR)', 1079 'directx_sdk_path%': '$(DXSDK_DIR)',
1033 }], 1080 }],
(...skipping 2989 matching lines...) Expand 10 before | Expand all | Expand 10 after
4023 }, 4070 },
4024 }], 4071 }],
4025 ['enable_new_npdevice_api==1', { 4072 ['enable_new_npdevice_api==1', {
4026 'target_defaults': { 4073 'target_defaults': {
4027 'defines': [ 4074 'defines': [
4028 'ENABLE_NEW_NPDEVICE_API', 4075 'ENABLE_NEW_NPDEVICE_API',
4029 ], 4076 ],
4030 }, 4077 },
4031 }], 4078 }],
4032 ['clang==1', { 4079 ['clang==1', {
4033 'conditions': [ 4080 'make_global_settings': [
4034 ['OS=="android"', { 4081 ['CC', '<(make_clang_dir)/bin/clang'],
4035 # Android could use the goma with clang. 4082 ['CXX', '<(make_clang_dir)/bin/clang++'],
4036 'make_global_settings': [ 4083 ['LINK', '$(CXX)'],
4037 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make _clang_dir)/bin/clang)'], 4084 ['CC.host', '$(CC)'],
4038 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak e_clang_dir)/bin/clang++)'], 4085 ['CXX.host', '$(CXX)'],
4039 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(ma ke_clang_dir)/bin/clang++)'], 4086 ['LINK.host', '$(LINK)'],
4040 ['CC.host', '$(CC)'],
4041 ['CXX.host', '$(CXX)'],
4042 ['LINK.host', '$(LINK)'],
4043 ],
4044 }, {
4045 'make_global_settings': [
4046 ['CC', '<(make_clang_dir)/bin/clang'],
4047 ['CXX', '<(make_clang_dir)/bin/clang++'],
4048 ['LINK', '$(CXX)'],
4049 ['CC.host', '$(CC)'],
4050 ['CXX.host', '$(CXX)'],
4051 ['LINK.host', '$(LINK)'],
4052 ],
4053 }],
4054 ], 4087 ],
4055 }], 4088 }],
4056 ['OS=="android" and clang==0', { 4089 ['OS=="android" and clang==0', {
4057 # Hardcode the compiler names in the Makefile so that 4090 # Hardcode the compiler names in the Makefile so that
4058 # it won't depend on the environment at make time. 4091 # it won't depend on the environment at make time.
4059 'make_global_settings': [ 4092 'make_global_settings': [
4060 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], 4093 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
4061 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], 4094 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'],
4062 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'], 4095 ['LINK', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
4063 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], 4096 ['CC.host', '<!(which gcc)'],
4064 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 4097 ['CXX.host', '<!(which g++)'],
4065 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 4098 ['LINK.host', '<!(which g++)'],
4066 ], 4099 ],
4067 }], 4100 }],
4068 ['target_arch=="mipsel"', { 4101 ['target_arch=="mipsel"', {
4069 'make_global_settings': [ 4102 'make_global_settings': [
4070 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], 4103 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
4071 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], 4104 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
4072 ['LINK', '$(CXX)'], 4105 ['LINK', '$(CXX)'],
4073 ['CC.host', '<!(which gcc)'], 4106 ['CC.host', '<!(which gcc)'],
4074 ['CXX.host', '<!(which g++)'], 4107 ['CXX.host', '<!(which g++)'],
4075 ['LINK.host', '<!(which g++)'], 4108 ['LINK.host', '<!(which g++)'],
4076 ], 4109 ],
4077 }], 4110 }],
4111
4112 # TODO(ukai): supports GENERATOR==make
4113 # make generator doesn't support CC_wrapper without CC
4114 # in make_global_settings yet.
iannucci 2013/03/08 04:04:09 AFAIK, nothing uses goma with Make currently, and
ukai 2013/03/08 06:52:05 Oh, really? Linux Builder x64, for instance, uses
iannucci 2013/03/08 06:54:10 You're completely right, I'm not sure what I was t
4115 ['goma_status=="ok" and ("<(GENERATOR)"=="ninja" or clang==1 or OS=="android ")', {
4116 'make_global_settings': [
4117 ['CC_wrapper', '<(gomadir)/gomacc'],
4118 ['CXX_wrapper', '<(gomadir)/gomacc'],
4119 ['CC.host_wrapper', '<(gomadir)/gomacc'],
4120 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
4121 # TODO(ukai): link support
4122 # ['LINK_wrapper', '<(gomadir)/gomacc'],
4123 # ['LINK.host_wrapper', '<(gomadir)/gomacc']
4124 ],
4125 }],
4078 ], 4126 ],
4079 'xcode_settings': { 4127 'xcode_settings': {
4080 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 4128 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
4081 # This block adds *project-wide* configuration settings to each project 4129 # This block adds *project-wide* configuration settings to each project
4082 # file. It's almost always wrong to put things here. Specify your 4130 # file. It's almost always wrong to put things here. Specify your
4083 # custom xcode_settings in target_defaults to add them to targets instead. 4131 # custom xcode_settings in target_defaults to add them to targets instead.
4084 4132
4085 'conditions': [ 4133 'conditions': [
4086 # In an Xcode Project Info window, the "Base SDK for All Configurations" 4134 # In an Xcode Project Info window, the "Base SDK for All Configurations"
4087 # setting sets the SDK on a project-wide basis. In order to get the 4135 # setting sets the SDK on a project-wide basis. In order to get the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
4127 # settings in target dicts. SYMROOT is a special case, because many other 4175 # settings in target dicts. SYMROOT is a special case, because many other
4128 # Xcode variables depend on it, including variables such as 4176 # Xcode variables depend on it, including variables such as
4129 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4177 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4130 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4178 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4131 # files to appear (when present) in the UI as actual files and not red 4179 # files to appear (when present) in the UI as actual files and not red
4132 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4180 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4133 # and therefore SYMROOT, needs to be set at the project level. 4181 # and therefore SYMROOT, needs to be set at the project level.
4134 'SYMROOT': '<(DEPTH)/xcodebuild', 4182 'SYMROOT': '<(DEPTH)/xcodebuild',
4135 }, 4183 },
4136 } 4184 }
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