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

Side by Side Diff: build/common.gypi

Issue 210022: Adding a GYP variable to indicate if a build wants Title Case strings or not.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « app/app.gyp ('k') | chrome/app/generated_resources.grd » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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': { 9 'variables': {
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific
(...skipping 23 matching lines...) Expand all
34 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official 34 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official
35 # builds). 35 # builds).
36 'buildtype%': 'Dev', 36 'buildtype%': 'Dev',
37 37
38 # The architecture that we're building on. 38 # The architecture that we're building on.
39 'target_arch%': 'ia32', 39 'target_arch%': 'ia32',
40 40
41 # We do want to build Chromium with Breakpad support in certain 41 # We do want to build Chromium with Breakpad support in certain
42 # situations. I.e. for Chrome bot. 42 # situations. I.e. for Chrome bot.
43 'linux_chromium_breakpad%': 0, 43 'linux_chromium_breakpad%': 0,
44
45 # By default, Linux does not use views. To turn on views in Linux,
46 # set the variable GYP_DEFINES to "toolkit_views=1", or modify
47 # ~/.gyp/include.gypi .
48 'toolkit_views%': 0,
49
50 # Defaults to a desktop build, overridden via command line/env.
51 'chromeos%': 0,
44 }, 52 },
45 53
46 # Define branding and buildtype on the basis of their settings within the 54 # Define branding and buildtype on the basis of their settings within the
47 # variables sub-dict above, unless overridden. 55 # variables sub-dict above, unless overridden.
48 'branding%': '<(branding)', 56 'branding%': '<(branding)',
49 'buildtype%': '<(buildtype)', 57 'buildtype%': '<(buildtype)',
50 'target_arch%': '<(target_arch)', 58 'target_arch%': '<(target_arch)',
59 'toolkit_views%': '<(toolkit_views)',
60 'chromeos%': '<(chromeos)',
51 61
52 # Override chromium_mac_pch and set it to 0 to suppress the use of 62 # Override chromium_mac_pch and set it to 0 to suppress the use of
53 # precompiled headers on the Mac. Prefix header injection may still be 63 # precompiled headers on the Mac. Prefix header injection may still be
54 # used, but prefix headers will not be precompiled. This is useful when 64 # used, but prefix headers will not be precompiled. This is useful when
55 # using distcc to distribute a build to compile slaves that don't 65 # using distcc to distribute a build to compile slaves that don't
56 # share the same compiler executable as the system driving the compilation, 66 # share the same compiler executable as the system driving the compilation,
57 # because precompiled headers rely on pointers into a specific compiler 67 # because precompiled headers rely on pointers into a specific compiler
58 # executable's image. Setting this to 0 is needed to use an experimental 68 # executable's image. Setting this to 0 is needed to use an experimental
59 # Linux-Mac cross compiler distcc farm. 69 # Linux-Mac cross compiler distcc farm.
60 'chromium_mac_pch%': 1, 70 'chromium_mac_pch%': 1,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 # Yes(1) means set use the common linker options. 121 # Yes(1) means set use the common linker options.
112 'msvs_use_common_linker_extras%': 1, 122 'msvs_use_common_linker_extras%': 1,
113 123
114 # TODO(sgk): eliminate this if possible. 124 # TODO(sgk): eliminate this if possible.
115 # It would be nicer to support this via a setting in 'target_defaults' 125 # It would be nicer to support this via a setting in 'target_defaults'
116 # in chrome/app/locales/locales.gypi overriding the setting in the 126 # in chrome/app/locales/locales.gypi overriding the setting in the
117 # 'Debug' configuration in the 'target_defaults' dict below, 127 # 'Debug' configuration in the 'target_defaults' dict below,
118 # but that doesn't work as we'd like. 128 # but that doesn't work as we'd like.
119 'msvs_debug_link_incremental%': '2', 129 'msvs_debug_link_incremental%': '2',
120 130
121 # By default linux does not use views. To turn on views in Linux
122 # set the variable GYP_DEFINES to "toolkit_views=1", or modify
123 # ~/.gyp/include.gypi .
124 'toolkit_views%': 0,
125
126 'chromeos%': 0,
127
128 # The system root for cross-compiles. Default: none. 131 # The system root for cross-compiles. Default: none.
129 'sysroot%': '', 132 'sysroot%': '',
130 133
131 # This is the location of the sandbox binary. Chrome looks for this before 134 # This is the location of the sandbox binary. Chrome looks for this before
132 # running the zygote process. If found, and SUID, it will be used to 135 # running the zygote process. If found, and SUID, it will be used to
133 # sandbox the zygote process and, thus, all renderer processes. 136 # sandbox the zygote process and, thus, all renderer processes.
134 'linux_sandbox_path%': '', 137 'linux_sandbox_path%': '',
135 138
136 # Set this to true to enable SELinux support. 139 # Set this to true to enable SELinux support.
137 'selinux%': 0, 140 'selinux%': 0,
141
142 # Set to select the Title Case versions of strings in GRD files.
143 'use_titlecase_in_grd_files%': 0,
138 144
139 'conditions': [ 145 'conditions': [
140 ['OS=="linux"', { 146 ['OS=="linux"', {
141 'conditions': [ 147 'conditions': [
142 ['branding=="Chrome" or linux_chromium_breakpad==1', { 148 ['branding=="Chrome" or linux_chromium_breakpad==1', {
143 'linux_breakpad%': 1, 149 'linux_breakpad%': 1,
144 }, { 150 }, {
145 'linux_breakpad%': 0, 151 'linux_breakpad%': 0,
146 }], 152 }],
153 ['toolkit_views==0', {
154 # GTK wants Title Case strings
155 'use_titlecase_in_grd_files%': 1,
156 }],
147 ], 157 ],
148 }], # OS=="linux" 158 }], # OS=="linux"
149 ['OS=="mac"', { 159 ['OS=="mac"', {
160 # Mac wants Title Case strings
161 'use_titlecase_in_grd_files%': 1,
150 'conditions': [ 162 'conditions': [
151 # mac_product_name is set to the name of the .app bundle as it should 163 # mac_product_name is set to the name of the .app bundle as it should
152 # appear on disk. This duplicates data from 164 # appear on disk. This duplicates data from
153 # chrome/app/theme/chromium/BRANDING and 165 # chrome/app/theme/chromium/BRANDING and
154 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get 166 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get
155 # these names into the build system. 167 # these names into the build system.
156 ['branding=="Chrome"', { 168 ['branding=="Chrome"', {
157 'mac_product_name%': 'Google Chrome', 169 'mac_product_name%': 'Google Chrome',
158 }, { # else: branding!="Chrome" 170 }, { # else: branding!="Chrome"
159 'mac_product_name%': 'Chromium', 171 'mac_product_name%': 'Chromium',
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 # settings in target dicts. SYMROOT is a special case, because many other 852 # settings in target dicts. SYMROOT is a special case, because many other
841 # Xcode variables depend on it, including variables such as 853 # Xcode variables depend on it, including variables such as
842 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 854 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
843 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 855 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
844 # files to appear (when present) in the UI as actual files and not red 856 # files to appear (when present) in the UI as actual files and not red
845 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 857 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
846 # and therefore SYMROOT, needs to be set at the project level. 858 # and therefore SYMROOT, needs to be set at the project level.
847 'SYMROOT': '<(DEPTH)/xcodebuild', 859 'SYMROOT': '<(DEPTH)/xcodebuild',
848 }, 860 },
849 } 861 }
OLDNEW
« no previous file with comments | « app/app.gyp ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698