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

Side by Side Diff: build/common.gypi

Issue 1090213002: optimize branding - use branding_path_component variable for defining pranding specific paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed according to comments Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | chrome/chrome_installer.gypi » ('J')
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 'use_cras%': '<(use_cras)', 139 'use_cras%': '<(use_cras)',
140 'use_ozone%': '<(use_ozone)', 140 'use_ozone%': '<(use_ozone)',
141 'embedded%': '<(embedded)', 141 'embedded%': '<(embedded)',
142 'use_libpci%': '<(use_libpci)', 142 'use_libpci%': '<(use_libpci)',
143 'use_openssl%': '<(use_openssl)', 143 'use_openssl%': '<(use_openssl)',
144 'use_openssl_certs%': '<(use_openssl_certs)', 144 'use_openssl_certs%': '<(use_openssl_certs)',
145 'enable_viewport%': '<(enable_viewport)', 145 'enable_viewport%': '<(enable_viewport)',
146 'enable_hidpi%': '<(enable_hidpi)', 146 'enable_hidpi%': '<(enable_hidpi)',
147 'buildtype%': '<(buildtype)', 147 'buildtype%': '<(buildtype)',
148 'branding%': '<(branding)', 148 'branding%': '<(branding)',
149 'branding_path_component%': 'chromium',
149 'host_arch%': '<(host_arch)', 150 'host_arch%': '<(host_arch)',
150 'target_arch%': '<(target_arch)', 151 'target_arch%': '<(target_arch)',
151 152
152 'target_subarch%': '', 153 'target_subarch%': '',
153 154
154 # The channel to build on Android: stable, beta, dev, canary, or 155 # The channel to build on Android: stable, beta, dev, canary, or
155 # default. "default" should be used on non-official builds. 156 # default. "default" should be used on non-official builds.
156 'android_channel%': 'default', 157 'android_channel%': 'default',
157 158
158 # Set ARM architecture version. 159 # Set ARM architecture version.
(...skipping 19 matching lines...) Expand all
178 # below for MIPS targets. 179 # below for MIPS targets.
179 'mips_arch_variant%': '', 180 'mips_arch_variant%': '',
180 181
181 # MIPS DSP ASE revision. Possible values are: 182 # MIPS DSP ASE revision. Possible values are:
182 # 0: unavailable 183 # 0: unavailable
183 # 1: revision 1 184 # 1: revision 1
184 # 2: revision 2 185 # 2: revision 2
185 'mips_dsp_rev%': 0, 186 'mips_dsp_rev%': 0,
186 187
187 'conditions': [ 188 'conditions': [
189 ['branding == "Chrome"', {
190 'branding_path_component%': 'google_chrome',
191 }, {
192 'branding_path_component%': '<(branding)',
Michael Moss 2015/04/21 15:11:53 Default 'branding' is "Chromium", but the usages y
gburanov 2015/04/21 15:48:20 No, just to clarify: For Chromium: branding_path_
Michael Moss 2015/04/21 17:21:20 That just sets a default, which you then universal
gburanov 2015/04/21 17:26:59 yep, you are correct. sorry. I will fix it.
gburanov 2015/04/22 15:20:45 Do you know how to make double if here?
Michael Moss 2015/04/22 16:16:51 You can wrap a 'conditions' inside a 'conditions',
193 }],
194
188 # Ash needs Aura. 195 # Ash needs Aura.
189 ['use_aura==0', { 196 ['use_aura==0', {
190 'use_ash%': 0, 197 'use_ash%': 0,
191 }], 198 }],
192 199
193 # Set default value of toolkit_views based on OS. 200 # Set default value of toolkit_views based on OS.
194 ['OS=="mac" or OS=="win" or chromeos==1 or use_aura==1', { 201 ['OS=="mac" or OS=="win" or chromeos==1 or use_aura==1', {
195 'toolkit_views%': 1, 202 'toolkit_views%': 1,
196 }, { 203 }, {
197 'toolkit_views%': 0, 204 'toolkit_views%': 0,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 'use_openssl_certs%': '<(use_openssl_certs)', 292 'use_openssl_certs%': '<(use_openssl_certs)',
286 'enable_viewport%': '<(enable_viewport)', 293 'enable_viewport%': '<(enable_viewport)',
287 'enable_hidpi%': '<(enable_hidpi)', 294 'enable_hidpi%': '<(enable_hidpi)',
288 'android_channel%': '<(android_channel)', 295 'android_channel%': '<(android_channel)',
289 'use_goma%': '<(use_goma)', 296 'use_goma%': '<(use_goma)',
290 'gomadir%': '<(gomadir)', 297 'gomadir%': '<(gomadir)',
291 'enable_app_list%': '<(enable_app_list)', 298 'enable_app_list%': '<(enable_app_list)',
292 'use_default_render_theme%': '<(use_default_render_theme)', 299 'use_default_render_theme%': '<(use_default_render_theme)',
293 'buildtype%': '<(buildtype)', 300 'buildtype%': '<(buildtype)',
294 'branding%': '<(branding)', 301 'branding%': '<(branding)',
302 'branding_path_component%': '<(branding_path_component)',
295 'arm_version%': '<(arm_version)', 303 'arm_version%': '<(arm_version)',
296 'sysroot%': '<(sysroot)', 304 'sysroot%': '<(sysroot)',
297 'chroot_cmd%': '<(chroot_cmd)', 305 'chroot_cmd%': '<(chroot_cmd)',
298 'system_libdir%': '<(system_libdir)', 306 'system_libdir%': '<(system_libdir)',
299 307
300 # Set to 1 to enable fast builds. Set to 2 for even faster builds 308 # Set to 1 to enable fast builds. Set to 2 for even faster builds
301 # (it disables debug info for fastest compilation - only for use 309 # (it disables debug info for fastest compilation - only for use
302 # on compile-only bots). 310 # on compile-only bots).
303 'fastbuild%': 0, 311 'fastbuild%': 0,
304 312
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 'disable_nacl%': '0', 1078 'disable_nacl%': '0',
1071 1079
1072 # Sets the default version name and code for Android app, by default we 1080 # Sets the default version name and code for Android app, by default we
1073 # do a developer build. 1081 # do a developer build.
1074 'android_app_version_name%': 'Developer Build', 1082 'android_app_version_name%': 'Developer Build',
1075 'android_app_version_code%': 1, 1083 'android_app_version_code%': 1,
1076 }, 1084 },
1077 1085
1078 # Copy conditionally-set variables out one scope. 1086 # Copy conditionally-set variables out one scope.
1079 'branding%': '<(branding)', 1087 'branding%': '<(branding)',
1088 'branding_path_component%': '<(branding_path_component)',
1080 'buildtype%': '<(buildtype)', 1089 'buildtype%': '<(buildtype)',
1081 'target_arch%': '<(target_arch)', 1090 'target_arch%': '<(target_arch)',
1082 'target_subarch%': '<(target_subarch)', 1091 'target_subarch%': '<(target_subarch)',
1083 'mips_arch_variant%': '<(mips_arch_variant)', 1092 'mips_arch_variant%': '<(mips_arch_variant)',
1084 'mips_dsp_rev%': '<(mips_dsp_rev)', 1093 'mips_dsp_rev%': '<(mips_dsp_rev)',
1085 'host_arch%': '<(host_arch)', 1094 'host_arch%': '<(host_arch)',
1086 'toolkit_views%': '<(toolkit_views)', 1095 'toolkit_views%': '<(toolkit_views)',
1087 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', 1096 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
1088 'use_aura%': '<(use_aura)', 1097 'use_aura%': '<(use_aura)',
1089 'use_ash%': '<(use_ash)', 1098 'use_ash%': '<(use_ash)',
(...skipping 5049 matching lines...) Expand 10 before | Expand all | Expand 10 after
6139 # settings in target dicts. SYMROOT is a special case, because many other 6148 # settings in target dicts. SYMROOT is a special case, because many other
6140 # Xcode variables depend on it, including variables such as 6149 # Xcode variables depend on it, including variables such as
6141 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6150 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6142 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6151 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6143 # files to appear (when present) in the UI as actual files and not red 6152 # files to appear (when present) in the UI as actual files and not red
6144 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6153 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6145 # and therefore SYMROOT, needs to be set at the project level. 6154 # and therefore SYMROOT, needs to be set at the project level.
6146 'SYMROOT': '<(DEPTH)/xcodebuild', 6155 'SYMROOT': '<(DEPTH)/xcodebuild',
6147 }, 6156 },
6148 } 6157 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | chrome/chrome_installer.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698