[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
[email protected] | 21642ab | 2009-09-15 23:52:14 | [diff] [blame] | 5 | # IMPORTANT: |
| 6 | # Please don't directly include this file if you are building via gyp_chromium, |
| 7 | # since gyp_chromium is automatically forcing its inclusion. |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 8 | { |
| 9 | 'variables': { |
[email protected] | b3fb809 | 2009-03-12 19:09:24 | [diff] [blame] | 10 | # .gyp files should set chromium_code to 1 if they build Chromium-specific |
| 11 | # code, as opposed to external code. This variable is used to control |
| 12 | # such things as the set of warnings to enable, and whether warnings are |
| 13 | # treated as errors. |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 14 | 'chromium_code%': 0, |
[email protected] | b3fb809 | 2009-03-12 19:09:24 | [diff] [blame] | 15 | |
| 16 | # Variables expected to be overriden on the GYP command line (-D) or by |
| 17 | # ~/.gyp/include.gypi. |
| 18 | |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 19 | # Putting a variables dict inside another variables dict looks kind of |
| 20 | # weird. This is done so that "branding" and "buildtype" are defined as |
| 21 | # variables within the outer variables dict here. This is necessary |
| 22 | # to get these variables defined for the conditions within this variables |
| 23 | # dict that operate on these variables. |
| 24 | 'variables': { |
| 25 | # Override branding to select the desired branding flavor. |
| 26 | 'branding%': 'Chromium', |
| 27 | |
| 28 | # Override buildtype to select the desired build flavor. |
| 29 | # Dev - everyday build for development/testing |
| 30 | # Official - release build (generally implies additional processing) |
| 31 | # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
| 32 | # conversion is done), some of the things which are now controlled by |
| 33 | # 'branding', such as symbol generation, will need to be refactored based |
| 34 | # on 'buildtype' (i.e. we don't care about saving symbols for non-Official |
| 35 | # builds). |
| 36 | 'buildtype%': 'Dev', |
[email protected] | cbd5fd5 | 2009-08-26 00:14:27 | [diff] [blame] | 37 | |
[email protected] | 52124018 | 2009-10-16 00:53:59 | [diff] [blame] | 38 | # Compute the architecture that we're building for. Default to the |
| 39 | # architecture that we're building on. |
| 40 | 'conditions': [ |
| 41 | [ 'OS=="linux"', { |
| 42 | # This handles the Linux platforms we generally deal with. Anything |
| 43 | # else gets passed through, which probably won't work very well; such |
| 44 | # hosts should pass an explicit target_arch to gyp. |
| 45 | 'target_arch%': |
[email protected] | 85c55dc | 2009-11-06 03:05:46 | [diff] [blame] | 46 | '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")', |
| 47 | |
[email protected] | 52124018 | 2009-10-16 00:53:59 | [diff] [blame] | 48 | }, { # OS!="linux" |
| 49 | 'target_arch%': 'ia32', |
[email protected] | 4e1c76f | 2009-11-13 01:36:50 | [diff] [blame] | 50 | }], |
| 51 | [ 'OS=="mac"', { |
| 52 | # For now, only Linux and Windows use spellcheck in the renderer. |
[email protected] | 85c55dc | 2009-11-06 03:05:46 | [diff] [blame] | 53 | 'spellchecker_in_renderer%': 0, |
[email protected] | 4e1c76f | 2009-11-13 01:36:50 | [diff] [blame] | 54 | }, { # OS!="mac" |
| 55 | 'spellchecker_in_renderer%': 1, |
[email protected] | 52124018 | 2009-10-16 00:53:59 | [diff] [blame] | 56 | }], |
| 57 | ], |
[email protected] | e0d0014 | 2009-09-18 22:10:27 | [diff] [blame] | 58 | |
[email protected] | cbd5fd5 | 2009-08-26 00:14:27 | [diff] [blame] | 59 | # We do want to build Chromium with Breakpad support in certain |
| 60 | # situations. I.e. for Chrome bot. |
| 61 | 'linux_chromium_breakpad%': 0, |
[email protected] | 4c9cc6c | 2009-10-01 18:54:57 | [diff] [blame] | 62 | # And if we want to dump symbols. |
[email protected] | 05cb696 | 2009-10-01 23:29:03 | [diff] [blame] | 63 | 'linux_chromium_dump_symbols%': 0, |
| 64 | # Also see linux_strip_binary below. |
[email protected] | c153e535 | 2009-09-22 12:37:44 | [diff] [blame] | 65 | |
| 66 | # By default, Linux does not use views. To turn on views in Linux, |
| 67 | # set the variable GYP_DEFINES to "toolkit_views=1", or modify |
| 68 | # ~/.gyp/include.gypi . |
| 69 | 'toolkit_views%': 0, |
| 70 | |
| 71 | # Defaults to a desktop build, overridden via command line/env. |
| 72 | 'chromeos%': 0, |
[email protected] | b2f030c | 2009-09-24 20:36:21 | [diff] [blame] | 73 | |
| 74 | # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are |
| 75 | # are built under a chromium full build (1) or a webkit.org chromium |
| 76 | # build (0). |
| 77 | 'inside_chromium_build%': 1, |
[email protected] | 9c1949e | 2009-10-02 19:59:54 | [diff] [blame] | 78 | |
| 79 | # Set to 1 to enable fast builds. It disables debug info for fastest |
| 80 | # compilation. |
| 81 | 'fastbuild%': 0, |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 82 | }, |
| 83 | |
| 84 | # Define branding and buildtype on the basis of their settings within the |
| 85 | # variables sub-dict above, unless overridden. |
| 86 | 'branding%': '<(branding)', |
| 87 | 'buildtype%': '<(buildtype)', |
[email protected] | e0d0014 | 2009-09-18 22:10:27 | [diff] [blame] | 88 | 'target_arch%': '<(target_arch)', |
[email protected] | 85c55dc | 2009-11-06 03:05:46 | [diff] [blame] | 89 | 'spellchecker_in_renderer%': '<(spellchecker_in_renderer)', |
[email protected] | c153e535 | 2009-09-22 12:37:44 | [diff] [blame] | 90 | 'toolkit_views%': '<(toolkit_views)', |
| 91 | 'chromeos%': '<(chromeos)', |
[email protected] | b2f030c | 2009-09-24 20:36:21 | [diff] [blame] | 92 | 'inside_chromium_build%': '<(inside_chromium_build)', |
[email protected] | 9c1949e | 2009-10-02 19:59:54 | [diff] [blame] | 93 | 'fastbuild%': '<(fastbuild)', |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 94 | |
[email protected] | b3fb809 | 2009-03-12 19:09:24 | [diff] [blame] | 95 | # Override chromium_mac_pch and set it to 0 to suppress the use of |
| 96 | # precompiled headers on the Mac. Prefix header injection may still be |
| 97 | # used, but prefix headers will not be precompiled. This is useful when |
| 98 | # using distcc to distribute a build to compile slaves that don't |
| 99 | # share the same compiler executable as the system driving the compilation, |
| 100 | # because precompiled headers rely on pointers into a specific compiler |
| 101 | # executable's image. Setting this to 0 is needed to use an experimental |
| 102 | # Linux-Mac cross compiler distcc farm. |
| 103 | 'chromium_mac_pch%': 1, |
| 104 | |
[email protected] | 3224dcd | 2009-09-16 17:31:25 | [diff] [blame] | 105 | # Mac OS X SDK and deployment target support. |
| 106 | # The SDK identifies the version of the system headers that will be used, |
| 107 | # and corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time macro. |
| 108 | # "Maximum allowed" refers to the operating system version whose APIs are |
| 109 | # available in the headers. |
| 110 | # The deployment target identifies the minimum system version that the |
| 111 | # built products are expected to function on. It corresponds to the |
| 112 | # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. |
| 113 | # To ensure these macros are available, #include <AvailabilityMacros.h>. |
| 114 | # Additional documentation on these macros is available at |
| 115 | # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTION3 |
| 116 | # Chrome normally builds with the Mac OS X 10.5 SDK and sets the |
| 117 | # deployment target to 10.5. Other projects, such as O3D, may override |
| 118 | # these defaults. |
| 119 | 'mac_sdk%': '10.5', |
| 120 | 'mac_deployment_target%': '10.5', |
[email protected] | 9543af05 | 2009-09-15 22:42:59 | [diff] [blame] | 121 | |
[email protected] | f5ecbba1 | 2009-04-03 04:35:18 | [diff] [blame] | 122 | # Set to 1 to enable code coverage. In addition to build changes |
| 123 | # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
| 124 | # project file called "coverage". |
| 125 | # Currently ignored on Windows. |
| 126 | 'coverage%': 0, |
[email protected] | 653bd5f03 | 2009-04-08 12:55:49 | [diff] [blame] | 127 | |
[email protected] | c61f643 | 2009-04-22 01:16:42 | [diff] [blame] | 128 | # Overridable specification for potential use of alternative |
| 129 | # JavaScript engines. |
| 130 | 'javascript_engine%': 'v8', |
| 131 | |
[email protected] | 653bd5f03 | 2009-04-08 12:55:49 | [diff] [blame] | 132 | # To do a shared build on linux we need to be able to choose between type |
| 133 | # static_library and shared_library. We default to doing a static build |
| 134 | # but you can override this with "gyp -Dlibrary=shared_library" or you |
| 135 | # can add the following line (without the #) to ~/.gyp/include.gypi |
| 136 | # {'variables': {'library': 'shared_library'}} |
| 137 | # to compile as shared by default |
| 138 | 'library%': 'static_library', |
[email protected] | 279cd421 | 2009-09-11 22:32:11 | [diff] [blame] | 139 | |
[email protected] | 06e6f87 | 2009-09-01 19:09:41 | [diff] [blame] | 140 | # The Google Update appid. |
| 141 | 'google_update_appid%': '{8A69D345-D564-463c-AFF1-A69D9E530F96}', |
[email protected] | 279cd421 | 2009-09-11 22:32:11 | [diff] [blame] | 142 | |
| 143 | # Whether to add the experimental build define. |
[email protected] | 756499c | 2009-09-28 16:50:46 | [diff] [blame] | 144 | 'chrome_frame_define%': 0, |
[email protected] | e5b2eaa | 2009-04-14 01:39:12 | [diff] [blame] | 145 | |
[email protected] | a79a3f8d | 2009-11-02 21:07:35 | [diff] [blame] | 146 | # Whether pepper APIs are enabled. |
| 147 | 'enable_pepper%': 0, |
[email protected] | 4e1c76f | 2009-11-13 01:36:50 | [diff] [blame] | 148 | |
[email protected] | 95ff808 | 2009-11-13 22:21:01 | [diff] [blame^] | 149 | # Whether usage of OpenMAX is enabled. |
| 150 | 'enable_openmax%': 0, |
| 151 | |
[email protected] | e5b2eaa | 2009-04-14 01:39:12 | [diff] [blame] | 152 | # TODO(bradnelson): eliminate this when possible. |
| 153 | # To allow local gyp files to prevent release.vsprops from being included. |
| 154 | # Yes(1) means include release.vsprops. |
| 155 | # Once all vsprops settings are migrated into gyp, this can go away. |
| 156 | 'msvs_use_common_release%': 1, |
[email protected] | 606116d2 | 2009-05-06 22:38:23 | [diff] [blame] | 157 | |
[email protected] | cbd5fd5 | 2009-08-26 00:14:27 | [diff] [blame] | 158 | # TODO(bradnelson): eliminate this when possible. |
| 159 | # To allow local gyp files to override additional linker options for msvs. |
| 160 | # Yes(1) means set use the common linker options. |
[email protected] | 48c7af7 | 2009-07-03 22:00:19 | [diff] [blame] | 161 | 'msvs_use_common_linker_extras%': 1, |
| 162 | |
[email protected] | 1ffb650 | 2009-06-02 07:46:24 | [diff] [blame] | 163 | # TODO(sgk): eliminate this if possible. |
| 164 | # It would be nicer to support this via a setting in 'target_defaults' |
| 165 | # in chrome/app/locales/locales.gypi overriding the setting in the |
| 166 | # 'Debug' configuration in the 'target_defaults' dict below, |
| 167 | # but that doesn't work as we'd like. |
| 168 | 'msvs_debug_link_incremental%': '2', |
| 169 | |
[email protected] | ee28c9f | 2009-09-04 01:53:01 | [diff] [blame] | 170 | # The system root for cross-compiles. Default: none. |
| 171 | 'sysroot%': '', |
| 172 | |
[email protected] | 57313614 | 2009-07-15 22:48:37 | [diff] [blame] | 173 | # This is the location of the sandbox binary. Chrome looks for this before |
| 174 | # running the zygote process. If found, and SUID, it will be used to |
| 175 | # sandbox the zygote process and, thus, all renderer processes. |
| 176 | 'linux_sandbox_path%': '', |
| 177 | |
[email protected] | ad6d2c4 | 2009-09-15 20:13:38 | [diff] [blame] | 178 | # Set this to true to enable SELinux support. |
| 179 | 'selinux%': 0, |
[email protected] | 4c9cc6c | 2009-10-01 18:54:57 | [diff] [blame] | 180 | |
[email protected] | 05cb696 | 2009-10-01 23:29:03 | [diff] [blame] | 181 | # Strip the binary after dumping symbols. |
| 182 | 'linux_strip_binary%': 0, |
| 183 | |
[email protected] | 01699e2 | 2009-11-11 19:24:24 | [diff] [blame] | 184 | # Enable TCMalloc. |
[email protected] | 2c55605 | 2009-11-12 05:58:58 | [diff] [blame] | 185 | 'linux_use_tcmalloc%': 0, |
[email protected] | 01699e2 | 2009-11-11 19:24:24 | [diff] [blame] | 186 | |
[email protected] | c153e535 | 2009-09-22 12:37:44 | [diff] [blame] | 187 | # Set to select the Title Case versions of strings in GRD files. |
| 188 | 'use_titlecase_in_grd_files%': 0, |
[email protected] | ad6d2c4 | 2009-09-15 20:13:38 | [diff] [blame] | 189 | |
[email protected] | d8c7cbcc | 2009-10-02 19:00:31 | [diff] [blame] | 190 | # Used to disable Native Client at compile time, for platforms where it |
| 191 | # isn't supported |
| 192 | 'disable_nacl%': 0, |
| 193 | |
[email protected] | 3ed42e3 | 2009-10-07 00:10:46 | [diff] [blame] | 194 | # Set ARM-v7 compilation flags |
| 195 | 'armv7%': 0, |
| 196 | |
[email protected] | 912c55c | 2009-07-31 23:33:55 | [diff] [blame] | 197 | 'conditions': [ |
[email protected] | cbd5fd5 | 2009-08-26 00:14:27 | [diff] [blame] | 198 | ['OS=="linux"', { |
[email protected] | 242a9e6 | 2009-11-03 17:32:10 | [diff] [blame] | 199 | # This will set gcc_version to XY if you are running gcc X.Y.*. |
| 200 | # This is used to tweak build flags for gcc 4.4. |
| 201 | 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
[email protected] | cbd5fd5 | 2009-08-26 00:14:27 | [diff] [blame] | 202 | 'conditions': [ |
| 203 | ['branding=="Chrome" or linux_chromium_breakpad==1', { |
| 204 | 'linux_breakpad%': 1, |
| 205 | }, { |
| 206 | 'linux_breakpad%': 0, |
| 207 | }], |
[email protected] | 4c9cc6c | 2009-10-01 18:54:57 | [diff] [blame] | 208 | # All Chrome builds have breakpad symbols, but only process the |
| 209 | # symbols from official builds. |
| 210 | # TODO(mmoss) dump_syms segfaults on x64. Enable once dump_syms and |
| 211 | # crash server handle 64-bit symbols. |
| 212 | ['linux_chromium_dump_symbols==1 or ' |
| 213 | '(branding=="Chrome" and buildtype=="Official" and ' |
| 214 | 'target_arch=="ia32")', { |
| 215 | 'linux_dump_symbols%': 1, |
| 216 | }, { |
| 217 | 'linux_dump_symbols%': 0, |
| 218 | }], |
[email protected] | c153e535 | 2009-09-22 12:37:44 | [diff] [blame] | 219 | ['toolkit_views==0', { |
| 220 | # GTK wants Title Case strings |
| 221 | 'use_titlecase_in_grd_files%': 1, |
| 222 | }], |
[email protected] | cbd5fd5 | 2009-08-26 00:14:27 | [diff] [blame] | 223 | ], |
| 224 | }], # OS=="linux" |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 225 | ['OS=="mac"', { |
[email protected] | c153e535 | 2009-09-22 12:37:44 | [diff] [blame] | 226 | # Mac wants Title Case strings |
| 227 | 'use_titlecase_in_grd_files%': 1, |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 228 | 'conditions': [ |
| 229 | # mac_product_name is set to the name of the .app bundle as it should |
| 230 | # appear on disk. This duplicates data from |
| 231 | # chrome/app/theme/chromium/BRANDING and |
| 232 | # chrome/app/theme/google_chrome/BRANDING, but is necessary to get |
| 233 | # these names into the build system. |
| 234 | ['branding=="Chrome"', { |
| 235 | 'mac_product_name%': 'Google Chrome', |
| 236 | }, { # else: branding!="Chrome" |
| 237 | 'mac_product_name%': 'Chromium', |
| 238 | }], |
| 239 | |
| 240 | # Feature variables for enabling Mac Breakpad and Keystone auto-update |
| 241 | # support. Both features are on by default in official builds with |
| 242 | # Chrome branding. |
| 243 | ['branding=="Chrome" and buildtype=="Official"', { |
| 244 | 'mac_breakpad%': 1, |
| 245 | 'mac_keystone%': 1, |
| 246 | }, { # else: branding!="Chrome" or buildtype!="Official" |
| 247 | 'mac_breakpad%': 0, |
| 248 | 'mac_keystone%': 0, |
| 249 | }], |
| 250 | ], |
| 251 | }], # OS=="mac" |
[email protected] | 912c55c | 2009-07-31 23:33:55 | [diff] [blame] | 252 | # Whether to use multiple cores to compile with visual studio. This is |
| 253 | # optional because it sometimes causes corruption on VS 2005. |
| 254 | # It is on by default on VS 2008 and off on VS 2005. |
| 255 | ['OS=="win"', { |
| 256 | 'conditions': [ |
| 257 | ['MSVS_VERSION=="2005"', { |
[email protected] | 66979537 | 2009-08-14 17:51:13 | [diff] [blame] | 258 | 'msvs_multi_core_compile%': 0, |
[email protected] | 912c55c | 2009-07-31 23:33:55 | [diff] [blame] | 259 | },{ |
| 260 | 'msvs_multi_core_compile%': 1, |
| 261 | }], |
[email protected] | 10bb8c9 | 2009-08-07 21:16:03 | [diff] [blame] | 262 | # Don't do incremental linking for large modules on 32-bit. |
| 263 | ['MSVS_OS_BITS==32', { |
| 264 | 'msvs_large_module_debug_link_mode%': '1', # No |
| 265 | },{ |
| 266 | 'msvs_large_module_debug_link_mode%': '2', # Yes |
| 267 | }], |
[email protected] | 912c55c | 2009-07-31 23:33:55 | [diff] [blame] | 268 | ], |
| 269 | }], |
| 270 | ], |
[email protected] | f703c4e | 2009-09-17 21:54:28 | [diff] [blame] | 271 | |
| 272 | # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_' |
| 273 | # so Cocoa is happy (http://crbug.com/20441). |
| 274 | 'locales': [ |
[email protected] | af27c8c | 2009-11-04 20:36:50 | [diff] [blame] | 275 | 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', |
[email protected] | f703c4e | 2009-09-17 21:54:28 | [diff] [blame] | 276 | 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', |
| 277 | 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', |
| 278 | 'ml', 'mr', 'nb', 'nl', 'or', 'pl', 'pt-BR', 'pt-PT', 'ro', |
[email protected] | af27c8c | 2009-11-04 20:36:50 | [diff] [blame] | 279 | 'ru', 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', |
[email protected] | f703c4e | 2009-09-17 21:54:28 | [diff] [blame] | 280 | 'uk', 'vi', 'zh-CN', 'zh-TW', |
| 281 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 282 | }, |
| 283 | 'target_defaults': { |
[email protected] | 1c96609 | 2009-08-20 21:19:26 | [diff] [blame] | 284 | 'variables': { |
[email protected] | d5d593a | 2009-08-28 23:23:29 | [diff] [blame] | 285 | 'mac_release_optimization%': '3', # Use -O3 unless overridden |
[email protected] | ffd984b1 | 2009-09-11 19:37:00 | [diff] [blame] | 286 | 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
| 287 | 'release_extra_cflags%': '', |
| 288 | 'debug_extra_cflags%': '', |
[email protected] | 92822e8 | 2009-09-18 14:26:56 | [diff] [blame] | 289 | 'release_valgrind_build%': 0, |
[email protected] | 1c96609 | 2009-08-20 21:19:26 | [diff] [blame] | 290 | }, |
[email protected] | 32aa8cc | 2009-03-04 21:36:39 | [diff] [blame] | 291 | 'conditions': [ |
| 292 | ['branding=="Chrome"', { |
| 293 | 'defines': ['GOOGLE_CHROME_BUILD'], |
| 294 | }, { # else: branding!="Chrome" |
| 295 | 'defines': ['CHROMIUM_BUILD'], |
| 296 | }], |
[email protected] | 756499c | 2009-09-28 16:50:46 | [diff] [blame] | 297 | ['chrome_frame_define', { |
| 298 | 'defines': ['CHROME_FRAME_BUILD'], |
[email protected] | 279cd421 | 2009-09-11 22:32:11 | [diff] [blame] | 299 | }], |
[email protected] | 6cb1cec | 2009-05-15 03:05:20 | [diff] [blame] | 300 | ['toolkit_views==1', { |
[email protected] | e697023 | 2009-05-12 23:51:17 | [diff] [blame] | 301 | 'defines': ['TOOLKIT_VIEWS=1'], |
| 302 | }], |
[email protected] | 3e193f9c | 2009-10-13 23:31:53 | [diff] [blame] | 303 | ['chromeos==1', { |
| 304 | 'defines': ['CHROMEOS_TRANSITIONAL=1'], |
| 305 | }], |
[email protected] | a678f3f | 2009-10-12 23:58:03 | [diff] [blame] | 306 | ['chromeos==1 or toolkit_views==1', { |
[email protected] | 1677984 | 2009-07-08 23:45:29 | [diff] [blame] | 307 | 'defines': ['OS_CHROMEOS=1'], |
[email protected] | 2b883b9 | 2009-06-02 22:57:50 | [diff] [blame] | 308 | }], |
[email protected] | a79a3f8d | 2009-11-02 21:07:35 | [diff] [blame] | 309 | ['enable_pepper==1', { |
| 310 | 'defines': ['ENABLE_PEPPER=1'], |
| 311 | }], |
[email protected] | 85c55dc | 2009-11-06 03:05:46 | [diff] [blame] | 312 | ['spellchecker_in_renderer==1', { |
| 313 | 'defines': ['SPELLCHECKER_IN_RENDERER=1'] |
| 314 | }], |
[email protected] | 9c1949e | 2009-10-02 19:59:54 | [diff] [blame] | 315 | ['fastbuild!=0', { |
| 316 | 'conditions': [ |
| 317 | # Finally, for Windows, we simply turn on profiling. |
| 318 | ['OS=="win"', { |
| 319 | 'msvs_settings': { |
| 320 | 'VCLinkerTool': { |
| 321 | 'GenerateDebugInformation': 'false', |
| 322 | }, |
| 323 | 'VCCLCompilerTool': { |
| 324 | 'DebugInformationFormat': '0', |
| 325 | } |
| 326 | } |
| 327 | }], # OS==win |
| 328 | ], # conditions for fastbuild. |
| 329 | }], # fastbuild!=0 |
[email protected] | ad6d2c4 | 2009-09-15 20:13:38 | [diff] [blame] | 330 | ['selinux==1', { |
| 331 | 'defines': ['CHROMIUM_SELINUX=1'], |
| 332 | }], |
[email protected] | f5ecbba1 | 2009-04-03 04:35:18 | [diff] [blame] | 333 | ['coverage!=0', { |
| 334 | 'conditions': [ |
| 335 | ['OS=="mac"', { |
| 336 | 'xcode_settings': { |
[email protected] | ab295637 | 2009-08-13 18:11:04 | [diff] [blame] | 337 | 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
| 338 | 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
[email protected] | 5ae4f55e | 2009-04-13 23:19:47 | [diff] [blame] | 339 | }, |
[email protected] | ac1f573 | 2009-10-23 00:12:01 | [diff] [blame] | 340 | # Add -lgcov for executables and shared_libraries, not for |
| 341 | # static_libraries. This is a delayed conditional. |
[email protected] | f5ecbba1 | 2009-04-03 04:35:18 | [diff] [blame] | 342 | 'target_conditions': [ |
[email protected] | ac1f573 | 2009-10-23 00:12:01 | [diff] [blame] | 343 | ['_type=="executable" or _type=="shared_library"', { |
[email protected] | f5ecbba1 | 2009-04-03 04:35:18 | [diff] [blame] | 344 | 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, |
[email protected] | 5ae4f55e | 2009-04-13 23:19:47 | [diff] [blame] | 345 | }], |
| 346 | ], |
| 347 | }], |
[email protected] | 7122ffd5 | 2009-04-30 23:19:00 | [diff] [blame] | 348 | # Linux gyp (into scons) doesn't like target_conditions? |
| 349 | # TODO(???): track down why 'target_conditions' doesn't work |
| 350 | # on Linux gyp into scons like it does on Mac gyp into xcodeproj. |
[email protected] | f5ecbba1 | 2009-04-03 04:35:18 | [diff] [blame] | 351 | ['OS=="linux"', { |
| 352 | 'cflags': [ '-ftest-coverage', |
| 353 | '-fprofile-arcs' ], |
[email protected] | 7122ffd5 | 2009-04-30 23:19:00 | [diff] [blame] | 354 | 'link_settings': { 'libraries': [ '-lgcov' ] }, |
[email protected] | f5ecbba1 | 2009-04-03 04:35:18 | [diff] [blame] | 355 | }], |
[email protected] | e8f6ff4 | 2009-07-07 18:20:53 | [diff] [blame] | 356 | # Finally, for Windows, we simply turn on profiling. |
| 357 | ['OS=="win"', { |
| 358 | 'msvs_settings': { |
| 359 | 'VCLinkerTool': { |
| 360 | 'Profile': 'true', |
| 361 | }, |
[email protected] | 10bb8c9 | 2009-08-07 21:16:03 | [diff] [blame] | 362 | 'VCCLCompilerTool': { |
[email protected] | e8f6ff4 | 2009-07-07 18:20:53 | [diff] [blame] | 363 | # /Z7, not /Zi, so coverage is happyb |
| 364 | 'DebugInformationFormat': '1', |
| 365 | 'AdditionalOptions': '/Yd', |
| 366 | } |
| 367 | } |
| 368 | }], # OS==win |
| 369 | ], # conditions for coverage |
| 370 | }], # coverage!=0 |
| 371 | ], # conditions for 'target_defaults' |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 372 | 'default_configuration': 'Debug', |
| 373 | 'configurations': { |
[email protected] | 825ff8d | 2009-05-22 01:40:48 | [diff] [blame] | 374 | # VCLinkerTool LinkIncremental values below: |
| 375 | # 0 == default |
| 376 | # 1 == /INCREMENTAL:NO |
| 377 | # 2 == /INCREMENTAL |
| 378 | # Debug links incremental, Release does not. |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 379 | 'Common': { |
| 380 | 'abstract': 1, |
| 381 | 'msvs_configuration_attributes': { |
| 382 | 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', |
| 383 | 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', |
| 384 | 'CharacterSet': '1', |
| 385 | }, |
[email protected] | 2fa4078 | 2009-11-01 21:17:34 | [diff] [blame] | 386 | 'msvs_configuration_platform': 'Win32', |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 387 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 388 | 'Debug': { |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 389 | 'inherit_from': ['Common'], |
[email protected] | 1c96609 | 2009-08-20 21:19:26 | [diff] [blame] | 390 | 'xcode_settings': { |
| 391 | 'COPY_PHASE_STRIP': 'NO', |
[email protected] | d5d593a | 2009-08-28 23:23:29 | [diff] [blame] | 392 | 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', |
[email protected] | bd232ac | 2009-10-21 02:23:53 | [diff] [blame] | 393 | 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ], |
[email protected] | 1c96609 | 2009-08-20 21:19:26 | [diff] [blame] | 394 | }, |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 395 | 'msvs_settings': { |
| 396 | 'VCCLCompilerTool': { |
| 397 | 'Optimization': '0', |
| 398 | 'PreprocessorDefinitions': ['_DEBUG'], |
| 399 | 'BasicRuntimeChecks': '3', |
| 400 | 'RuntimeLibrary': '1', |
| 401 | }, |
| 402 | 'VCLinkerTool': { |
| 403 | 'LinkIncremental': '<(msvs_debug_link_incremental)', |
| 404 | }, |
| 405 | 'VCResourceCompilerTool': { |
| 406 | 'PreprocessorDefinitions': ['_DEBUG'], |
| 407 | }, |
| 408 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 409 | 'conditions': [ |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 410 | ['OS=="linux"', { |
| 411 | 'cflags': [ |
| 412 | '<@(debug_extra_cflags)', |
| 413 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 414 | }], |
| 415 | ], |
| 416 | }, |
| 417 | 'Release': { |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 418 | 'inherit_from': ['Common'], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 419 | 'defines': [ |
| 420 | 'NDEBUG', |
| 421 | ], |
[email protected] | 1c96609 | 2009-08-20 21:19:26 | [diff] [blame] | 422 | 'xcode_settings': { |
| 423 | 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip |
| 424 | 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', |
[email protected] | ffd984b1 | 2009-09-11 19:37:00 | [diff] [blame] | 425 | 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], |
[email protected] | 1c96609 | 2009-08-20 21:19:26 | [diff] [blame] | 426 | }, |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 427 | 'msvs_settings': { |
| 428 | 'VCLinkerTool': { |
| 429 | 'LinkIncremental': '1', |
| 430 | }, |
| 431 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 432 | 'conditions': [ |
[email protected] | 92822e8 | 2009-09-18 14:26:56 | [diff] [blame] | 433 | ['release_valgrind_build==0', { |
| 434 | 'defines': ['NVALGRIND'], |
| 435 | }], |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 436 | ['msvs_use_common_release', { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 437 | 'msvs_props': ['release.vsprops'], |
| 438 | }], |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 439 | ['OS=="linux"', { |
| 440 | 'cflags': [ |
[email protected] | ffd984b1 | 2009-09-11 19:37:00 | [diff] [blame] | 441 | '<@(release_extra_cflags)', |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 442 | ], |
| 443 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 444 | ], |
| 445 | }, |
[email protected] | f926fa0a | 2009-08-04 22:50:13 | [diff] [blame] | 446 | 'conditions': [ |
| 447 | [ 'OS=="win"', { |
| 448 | # TODO(bradnelson): add a gyp mechanism to make this more graceful. |
| 449 | 'Purify': { |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 450 | 'inherit_from': ['Release'], |
[email protected] | f926fa0a | 2009-08-04 22:50:13 | [diff] [blame] | 451 | 'defines': [ |
[email protected] | f926fa0a | 2009-08-04 22:50:13 | [diff] [blame] | 452 | 'PURIFY', |
| 453 | 'NO_TCMALLOC', |
| 454 | ], |
| 455 | 'msvs_settings': { |
| 456 | 'VCCLCompilerTool': { |
| 457 | 'Optimization': '0', |
| 458 | 'RuntimeLibrary': '0', |
| 459 | 'BufferSecurityCheck': 'false', |
| 460 | }, |
| 461 | 'VCLinkerTool': { |
| 462 | 'EnableCOMDATFolding': '1', |
| 463 | 'LinkIncremental': '1', |
| 464 | }, |
| 465 | }, |
[email protected] | f926fa0a | 2009-08-04 22:50:13 | [diff] [blame] | 466 | }, |
| 467 | 'Release - no tcmalloc': { |
[email protected] | bb05e45 | 2009-10-29 21:24:56 | [diff] [blame] | 468 | 'inherit_from': ['Release'], |
| 469 | 'defines': ['NO_TCMALLOC'], |
[email protected] | f926fa0a | 2009-08-04 22:50:13 | [diff] [blame] | 470 | }, |
[email protected] | 78263c1 | 2009-11-01 23:45:30 | [diff] [blame] | 471 | 'Debug_x64': { |
| 472 | 'inherit_from': ['Debug'], |
| 473 | 'msvs_configuration_platform': 'x64', |
| 474 | }, |
| 475 | 'Release_x64': { |
| 476 | 'inherit_from': ['Release'], |
| 477 | 'msvs_configuration_platform': 'x64', |
| 478 | }, |
| 479 | 'Purify_x64': { |
| 480 | 'inherit_from': ['Purify'], |
| 481 | 'msvs_configuration_platform': 'x64', |
| 482 | }, |
| 483 | 'Release - no tcmalloc_x64': { |
| 484 | 'inherit_from': ['Release - no tcmalloc'], |
| 485 | 'msvs_configuration_platform': 'x64', |
| 486 | }, |
[email protected] | f926fa0a | 2009-08-04 22:50:13 | [diff] [blame] | 487 | }], |
| 488 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 489 | }, |
| 490 | }, |
| 491 | 'conditions': [ |
[email protected] | 606116d2 | 2009-05-06 22:38:23 | [diff] [blame] | 492 | ['OS=="linux"', { |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 493 | 'target_defaults': { |
[email protected] | 5315f284 | 2009-04-28 00:43:27 | [diff] [blame] | 494 | # Enable -Werror by default, but put it in a variable so it can |
| 495 | # be disabled in ~/.gyp/include.gypi on the valgrind builders. |
| 496 | 'variables': { |
| 497 | 'werror%': '-Werror', |
[email protected] | cc4219a | 2009-08-14 05:30:52 | [diff] [blame] | 498 | 'no_strict_aliasing%': 0, |
[email protected] | 5315f284 | 2009-04-28 00:43:27 | [diff] [blame] | 499 | }, |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 500 | 'cflags': [ |
[email protected] | 1bba09c | 2009-08-13 12:53:16 | [diff] [blame] | 501 | '<(werror)', # See note above about the werror variable. |
| 502 | '-pthread', |
| 503 | '-fno-exceptions', |
[email protected] | 7cd2afd | 2009-10-27 21:40:26 | [diff] [blame] | 504 | '-fvisibility=hidden', |
[email protected] | 1bba09c | 2009-08-13 12:53:16 | [diff] [blame] | 505 | '-Wall', |
| 506 | '-D_FILE_OFFSET_BITS=64', |
[email protected] | 8a2fcba | 2009-07-29 00:52:24 | [diff] [blame] | 507 | ], |
| 508 | 'cflags_cc': [ |
[email protected] | 832d021 | 2009-10-28 19:12:22 | [diff] [blame] | 509 | '-fno-rtti', |
[email protected] | 8a2fcba | 2009-07-29 00:52:24 | [diff] [blame] | 510 | '-fno-threadsafe-statics', |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 511 | ], |
[email protected] | a6cf87e | 2009-04-03 04:07:38 | [diff] [blame] | 512 | 'ldflags': [ |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 513 | '-pthread', |
| 514 | ], |
[email protected] | b5e46b9 | 2009-03-26 18:58:10 | [diff] [blame] | 515 | 'scons_variable_settings': { |
| 516 | 'LIBPATH': ['$LIB_DIR'], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 517 | # Linking of large files uses lots of RAM, so serialize links |
| 518 | # using the handy flock command from util-linux. |
[email protected] | c13fcbd | 2009-03-27 04:27:01 | [diff] [blame] | 519 | 'FLOCK_LINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'], |
[email protected] | 789fbb7c | 2009-04-02 16:20:31 | [diff] [blame] | 520 | 'FLOCK_SHLINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'], |
| 521 | 'FLOCK_LDMODULE': ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 522 | |
| 523 | # We have several cases where archives depend on each other in |
| 524 | # a cyclic fashion. Since the GNU linker does only a single |
| 525 | # pass over the archives we surround the libraries with |
| 526 | # --start-group and --end-group (aka -( and -) ). That causes |
| 527 | # ld to loop over the group until no more undefined symbols |
| 528 | # are found. In an ideal world we would only make groups from |
| 529 | # those libraries which we knew to be in cycles. However, |
| 530 | # that's tough with SCons, so we bodge it by making all the |
| 531 | # archives a group by redefining the linking command here. |
| 532 | # |
| 533 | # TODO: investigate whether we still have cycles that |
| 534 | # require --{start,end}-group. There has been a lot of |
| 535 | # refactoring since this was first coded, which might have |
| 536 | # eliminated the circular dependencies. |
[email protected] | 1286292 | 2009-04-20 21:36:41 | [diff] [blame] | 537 | # |
| 538 | # Note: $_LIBDIRFLAGS comes before ${LINK,SHLINK,LDMODULE}FLAGS |
| 539 | # so that we prefer our own built libraries (e.g. -lpng) to |
| 540 | # system versions of libraries that pkg-config might turn up. |
| 541 | # TODO(sgk): investigate handling this not by re-ordering the |
| 542 | # flags this way, but by adding a hook to use the SCons |
| 543 | # ParseFlags() option on the output from pkg-config. |
[email protected] | 610d8cc | 2009-09-19 00:47:04 | [diff] [blame] | 544 | 'LINKCOM': [['$FLOCK_LINK', '-o', '$TARGET', |
| 545 | '$_LIBDIRFLAGS', '$LINKFLAGS', '$SOURCES', |
| 546 | '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']], |
| 547 | 'SHLINKCOM': [['$FLOCK_SHLINK', '-o', '$TARGET', |
| 548 | '$_LIBDIRFLAGS', '$SHLINKFLAGS', '$SOURCES', |
| 549 | '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']], |
| 550 | 'LDMODULECOM': [['$FLOCK_LDMODULE', '-o', '$TARGET', |
| 551 | '$_LIBDIRFLAGS', '$LDMODULEFLAGS', '$SOURCES', |
| 552 | '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 553 | 'IMPLICIT_COMMAND_DEPENDENCIES': 0, |
[email protected] | d064428 | 2009-04-22 00:20:29 | [diff] [blame] | 554 | # -rpath is only used when building with shared libraries. |
| 555 | 'conditions': [ |
| 556 | [ 'library=="shared_library"', { |
| 557 | 'RPATH': '$LIB_DIR', |
| 558 | }], |
| 559 | ], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 560 | }, |
[email protected] | b5e46b9 | 2009-03-26 18:58:10 | [diff] [blame] | 561 | 'scons_import_variables': [ |
[email protected] | 52049d5c | 2009-05-01 20:32:49 | [diff] [blame] | 562 | 'AS', |
[email protected] | b5e46b9 | 2009-03-26 18:58:10 | [diff] [blame] | 563 | 'CC', |
| 564 | 'CXX', |
| 565 | 'LINK', |
| 566 | ], |
| 567 | 'scons_propagate_variables': [ |
[email protected] | 52049d5c | 2009-05-01 20:32:49 | [diff] [blame] | 568 | 'AS', |
[email protected] | b5e46b9 | 2009-03-26 18:58:10 | [diff] [blame] | 569 | 'CC', |
| 570 | 'CCACHE_DIR', |
| 571 | 'CXX', |
| 572 | 'DISTCC_DIR', |
| 573 | 'DISTCC_HOSTS', |
| 574 | 'HOME', |
[email protected] | 5ae4f55e | 2009-04-13 23:19:47 | [diff] [blame] | 575 | 'INCLUDE_SERVER_ARGS', |
| 576 | 'INCLUDE_SERVER_PORT', |
[email protected] | b5e46b9 | 2009-03-26 18:58:10 | [diff] [blame] | 577 | 'LINK', |
[email protected] | fff920a | 2009-05-08 22:35:32 | [diff] [blame] | 578 | 'CHROME_BUILD_TYPE', |
| 579 | 'CHROMIUM_BUILD', |
| 580 | 'OFFICIAL_BUILD', |
[email protected] | b5e46b9 | 2009-03-26 18:58:10 | [diff] [blame] | 581 | ], |
[email protected] | 3aacaf95 | 2009-04-02 15:34:09 | [diff] [blame] | 582 | 'configurations': { |
| 583 | 'Debug': { |
[email protected] | c5bdc03 | 2009-04-20 19:11:31 | [diff] [blame] | 584 | 'variables': { |
| 585 | 'debug_optimize%': '0', |
| 586 | }, |
[email protected] | 3aacaf95 | 2009-04-02 15:34:09 | [diff] [blame] | 587 | 'defines': [ |
| 588 | '_DEBUG', |
| 589 | ], |
| 590 | 'cflags': [ |
[email protected] | 22898f6 | 2009-10-26 22:14:01 | [diff] [blame] | 591 | '-O>(debug_optimize)', |
[email protected] | 3aacaf95 | 2009-04-02 15:34:09 | [diff] [blame] | 592 | '-g', |
[email protected] | 9a5d2a5 | 2009-05-22 03:37:45 | [diff] [blame] | 593 | # One can use '-gstabs' to enable building the debugging |
| 594 | # information in STABS format for breakpad's dumpsyms. |
[email protected] | 3aacaf95 | 2009-04-02 15:34:09 | [diff] [blame] | 595 | ], |
[email protected] | 96fd003 | 2009-04-24 00:13:08 | [diff] [blame] | 596 | 'ldflags': [ |
| 597 | '-rdynamic', # Allows backtrace to resolve symbols. |
| 598 | ], |
[email protected] | 5315f284 | 2009-04-28 00:43:27 | [diff] [blame] | 599 | }, |
[email protected] | 3aacaf95 | 2009-04-02 15:34:09 | [diff] [blame] | 600 | 'Release': { |
[email protected] | 740e2de | 2009-07-21 11:41:01 | [diff] [blame] | 601 | 'variables': { |
| 602 | 'release_optimize%': '2', |
| 603 | }, |
[email protected] | 3aacaf95 | 2009-04-02 15:34:09 | [diff] [blame] | 604 | 'cflags': [ |
[email protected] | 22898f6 | 2009-10-26 22:14:01 | [diff] [blame] | 605 | '-O>(release_optimize)', |
[email protected] | d8cc3a6 | 2009-04-08 18:29:53 | [diff] [blame] | 606 | # Don't emit the GCC version ident directives, they just end up |
| 607 | # in the .comment section taking up binary size. |
| 608 | '-fno-ident', |
| 609 | # Put data and code in their own sections, so that unused symbols |
| 610 | # can be removed at link time with --gc-sections. |
| 611 | '-fdata-sections', |
| 612 | '-ffunction-sections', |
[email protected] | 3aacaf95 | 2009-04-02 15:34:09 | [diff] [blame] | 613 | ], |
| 614 | }, |
| 615 | }, |
[email protected] | 601b54022 | 2009-04-03 21:32:04 | [diff] [blame] | 616 | 'variants': { |
| 617 | 'coverage': { |
| 618 | 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
| 619 | 'ldflags': ['-fprofile-arcs'], |
| 620 | }, |
| 621 | 'profile': { |
| 622 | 'cflags': ['-pg', '-g'], |
| 623 | 'ldflags': ['-pg'], |
| 624 | }, |
| 625 | 'symbols': { |
| 626 | 'cflags': ['-g'], |
| 627 | }, |
| 628 | }, |
[email protected] | 606116d2 | 2009-05-06 22:38:23 | [diff] [blame] | 629 | 'conditions': [ |
[email protected] | 7e8eb761 | 2009-07-29 15:56:00 | [diff] [blame] | 630 | [ 'target_arch=="ia32"', { |
[email protected] | 606116d2 | 2009-05-06 22:38:23 | [diff] [blame] | 631 | 'asflags': [ |
| 632 | # Needed so that libs with .s files (e.g. libicudata.a) |
| 633 | # are compatible with the general 32-bit-ness. |
| 634 | '-32', |
| 635 | ], |
| 636 | # All floating-point computations on x87 happens in 80-bit |
| 637 | # precision. Because the C and C++ language standards allow |
| 638 | # the compiler to keep the floating-point values in higher |
| 639 | # precision than what's specified in the source and doing so |
| 640 | # is more efficient than constantly rounding up to 64-bit or |
| 641 | # 32-bit precision as specified in the source, the compiler, |
| 642 | # especially in the optimized mode, tries very hard to keep |
| 643 | # values in x87 floating-point stack (in 80-bit precision) |
| 644 | # as long as possible. This has important side effects, that |
| 645 | # the real value used in computation may change depending on |
| 646 | # how the compiler did the optimization - that is, the value |
| 647 | # kept in 80-bit is different than the value rounded down to |
| 648 | # 64-bit or 32-bit. There are possible compiler options to make |
| 649 | # this behavior consistent (e.g. -ffloat-store would keep all |
| 650 | # floating-values in the memory, thus force them to be rounded |
| 651 | # to its original precision) but they have significant runtime |
| 652 | # performance penalty. |
| 653 | # |
| 654 | # -mfpmath=sse -msse2 makes the compiler use SSE instructions |
| 655 | # which keep floating-point values in SSE registers in its |
| 656 | # native precision (32-bit for single precision, and 64-bit for |
| 657 | # double precision values). This means the floating-point value |
| 658 | # used during computation does not change depending on how the |
| 659 | # compiler optimized the code, since the value is always kept |
| 660 | # in its specified precision. |
[email protected] | ffde793 | 2009-05-29 00:39:06 | [diff] [blame] | 661 | 'conditions': [ |
| 662 | ['branding=="Chromium"', { |
| 663 | 'cflags': [ |
| 664 | '-march=pentium4', |
| 665 | '-msse2', |
| 666 | '-mfpmath=sse', |
| 667 | ], |
| 668 | }], |
| 669 | ], |
[email protected] | 606116d2 | 2009-05-06 22:38:23 | [diff] [blame] | 670 | 'cflags': [ |
| 671 | '-m32', |
[email protected] | 1c6560af | 2009-07-14 11:02:16 | [diff] [blame] | 672 | ], |
[email protected] | 606116d2 | 2009-05-06 22:38:23 | [diff] [blame] | 673 | 'ldflags': [ |
| 674 | '-m32', |
| 675 | ], |
| 676 | }], |
[email protected] | 3dda8a96 | 2009-08-10 18:58:07 | [diff] [blame] | 677 | ['target_arch=="arm"', { |
[email protected] | dc9711f | 2009-11-13 19:30:25 | [diff] [blame] | 678 | 'conditions': [ |
| 679 | ['armv7==1', { |
| 680 | 'target_conditions': [ |
| 681 | ['_toolset=="target"', { |
| 682 | 'cflags': [ |
| 683 | '-march=armv7-a', |
| 684 | '-mtune=cortex-a8', |
| 685 | '-mfpu=neon', |
| 686 | '-mfloat-abi=softfp', |
| 687 | ], |
| 688 | }], |
[email protected] | 3dda8a96 | 2009-08-10 18:58:07 | [diff] [blame] | 689 | ], |
| 690 | }], |
| 691 | ], |
| 692 | }], |
[email protected] | ee28c9f | 2009-09-04 01:53:01 | [diff] [blame] | 693 | ['sysroot!=""', { |
[email protected] | fd36ce82 | 2009-10-28 20:13:57 | [diff] [blame] | 694 | 'target_conditions': [ |
| 695 | ['_toolset=="target"', { |
| 696 | 'cflags': [ |
| 697 | '--sysroot=<(sysroot)', |
| 698 | ], |
| 699 | 'ldflags': [ |
| 700 | '--sysroot=<(sysroot)', |
| 701 | ], |
| 702 | }]] |
[email protected] | ee28c9f | 2009-09-04 01:53:01 | [diff] [blame] | 703 | }], |
[email protected] | cc4219a | 2009-08-14 05:30:52 | [diff] [blame] | 704 | ['no_strict_aliasing==1', { |
| 705 | 'cflags': [ |
| 706 | '-fno-strict-aliasing', |
| 707 | ], |
| 708 | }], |
[email protected] | cbd5fd5 | 2009-08-26 00:14:27 | [diff] [blame] | 709 | ['linux_breakpad==1', { |
| 710 | 'cflags': [ '-gstabs' ], |
| 711 | 'defines': ['USE_LINUX_BREAKPAD'], |
| 712 | }], |
[email protected] | 7cd2afd | 2009-10-27 21:40:26 | [diff] [blame] | 713 | ['library=="shared_library"', { |
| 714 | # When building with shared libraries, remove the visiblity-hiding |
| 715 | # flag. |
| 716 | 'cflags!': [ '-fvisibility=hidden' ], |
[email protected] | 4907ac4 | 2009-11-02 20:32:51 | [diff] [blame] | 717 | 'conditions': [ |
| 718 | ['target_arch=="x64"', { |
| 719 | # Shared libraries need -fPIC on x86-64 |
| 720 | 'cflags': ['-fPIC'] |
| 721 | }] |
| 722 | ], |
[email protected] | 7cd2afd | 2009-10-27 21:40:26 | [diff] [blame] | 723 | }], |
[email protected] | 01699e2 | 2009-11-11 19:24:24 | [diff] [blame] | 724 | ['linux_use_tcmalloc==1', { |
| 725 | 'defines': ['LINUX_USE_TCMALLOC'], |
| 726 | }], |
[email protected] | 606116d2 | 2009-05-06 22:38:23 | [diff] [blame] | 727 | ], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 728 | }, |
| 729 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 730 | ['OS=="mac"', { |
| 731 | 'target_defaults': { |
[email protected] | 2470064 | 2009-06-01 16:01:20 | [diff] [blame] | 732 | 'variables': { |
| 733 | # This should be 'mac_real_dsym%', but there seems to be a bug |
| 734 | # with % in variables that are intended to be set to different |
| 735 | # values in different targets, like this one. |
| 736 | 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
| 737 | }, |
[email protected] | d92c7c01 | 2009-03-19 19:26:42 | [diff] [blame] | 738 | 'mac_bundle': 0, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 739 | 'xcode_settings': { |
| 740 | 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
[email protected] | ab295637 | 2009-08-13 18:11:04 | [diff] [blame] | 741 | 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
| 742 | 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
| 743 | 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
| 744 | # (Equivalent to -fPIC) |
| 745 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
| 746 | 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
| 747 | 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
[email protected] | 3224dcd | 2009-09-16 17:31:25 | [diff] [blame] | 748 | # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
| 749 | 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
[email protected] | ab295637 | 2009-08-13 18:11:04 | [diff] [blame] | 750 | 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors |
| 751 | 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 752 | 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
| 753 | 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 754 | 'GCC_VERSION': '4.2', |
[email protected] | ab295637 | 2009-08-13 18:11:04 | [diff] [blame] | 755 | 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
[email protected] | 3224dcd | 2009-09-16 17:31:25 | [diff] [blame] | 756 | # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
| 757 | 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
[email protected] | ab295637 | 2009-08-13 18:11:04 | [diff] [blame] | 758 | 'PREBINDING': 'NO', # No -Wl,-prebind |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 759 | 'USE_HEADERMAP': 'NO', |
| 760 | 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], |
[email protected] | b3fb809 | 2009-03-12 19:09:24 | [diff] [blame] | 761 | 'conditions': [ |
| 762 | ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
[email protected] | 9543af05 | 2009-09-15 22:42:59 | [diff] [blame] | 763 | {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} |
| 764 | ], |
[email protected] | b3fb809 | 2009-03-12 19:09:24 | [diff] [blame] | 765 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 766 | }, |
| 767 | 'target_conditions': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 768 | ['_type!="static_library"', { |
[email protected] | 5d7dc97 | 2009-04-16 15:30:46 | [diff] [blame] | 769 | 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 770 | }], |
| 771 | ['_mac_bundle', { |
| 772 | 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
[email protected] | 87fde4a | 2009-02-28 00:50:08 | [diff] [blame] | 773 | }], |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 774 | ['_type=="executable" or _type=="shared_library"', { |
[email protected] | 2470064 | 2009-06-01 16:01:20 | [diff] [blame] | 775 | 'target_conditions': [ |
| 776 | ['mac_real_dsym == 1', { |
| 777 | # To get a real .dSYM bundle produced by dsymutil, set the |
| 778 | # debug information format to dwarf-with-dsym. Since |
| 779 | # strip_from_xcode will not be used, set Xcode to do the |
| 780 | # stripping as well. |
| 781 | 'configurations': { |
| 782 | 'Release': { |
| 783 | 'xcode_settings': { |
| 784 | 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', |
| 785 | 'DEPLOYMENT_POSTPROCESSING': 'YES', |
| 786 | 'STRIP_INSTALLED_PRODUCT': 'YES', |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 787 | 'target_conditions': [ |
| 788 | ['_type=="shared_library"', { |
| 789 | # The Xcode default is to strip debugging symbols |
| 790 | # only (-S). Local symbols should be stripped as |
| 791 | # well, which will be handled by -x. Xcode will |
| 792 | # continue to insert -S when stripping even when |
| 793 | # additional flags are added with STRIPFLAGS. |
| 794 | 'STRIPFLAGS': '-x', |
| 795 | }], # _type=="shared_library" |
| 796 | ], # target_conditions |
| 797 | }, # xcode_settings |
| 798 | }, # configuration "Release" |
| 799 | }, # configurations |
[email protected] | 2470064 | 2009-06-01 16:01:20 | [diff] [blame] | 800 | }, { # mac_real_dsym != 1 |
| 801 | # To get a fast fake .dSYM bundle, use a post-build step to |
| 802 | # produce the .dSYM and strip the executable. strip_from_xcode |
| 803 | # only operates in the Release configuration. |
| 804 | 'postbuilds': [ |
| 805 | { |
| 806 | 'variables': { |
| 807 | # Define strip_from_xcode in a variable ending in _path |
| 808 | # so that gyp understands it's a path and performs proper |
| 809 | # relativization during dict merging. |
| 810 | 'strip_from_xcode_path': 'mac/strip_from_xcode', |
| 811 | }, |
| 812 | 'postbuild_name': 'Strip If Needed', |
| 813 | 'action': ['<(strip_from_xcode_path)'], |
| 814 | }, |
[email protected] | e14a9f9 | 2009-08-05 19:26:07 | [diff] [blame] | 815 | ], # postbuilds |
| 816 | }], # mac_real_dsym |
| 817 | ], # target_conditions |
| 818 | }], # _type=="executable" or _type=="shared_library" |
| 819 | ], # target_conditions |
| 820 | }, # target_defaults |
| 821 | }], # OS=="mac" |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 822 | ['OS=="win"', { |
| 823 | 'target_defaults': { |
| 824 | 'defines': [ |
| 825 | '_WIN32_WINNT=0x0600', |
| 826 | 'WINVER=0x0600', |
| 827 | 'WIN32', |
| 828 | '_WINDOWS', |
| 829 | '_HAS_EXCEPTIONS=0', |
| 830 | 'NOMINMAX', |
| 831 | '_CRT_RAND_S', |
| 832 | 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', |
| 833 | 'WIN32_LEAN_AND_MEAN', |
| 834 | '_SECURE_ATL', |
[email protected] | adfb98c | 2009-06-23 20:08:45 | [diff] [blame] | 835 | '_HAS_TR1=0', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 836 | ], |
[email protected] | 5b5ca7cb | 2009-07-20 23:00:20 | [diff] [blame] | 837 | 'msvs_system_include_dirs': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 838 | '<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Include', |
| 839 | '$(VSInstallDir)/VC/atlmfc/include', |
| 840 | ], |
[email protected] | a8d99cef | 2009-08-26 20:47:49 | [diff] [blame] | 841 | 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], |
[email protected] | 684056177 | 2009-05-12 16:37:55 | [diff] [blame] | 842 | 'msvs_disabled_warnings': [4396, 4503, 4819], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 843 | 'msvs_settings': { |
| 844 | 'VCCLCompilerTool': { |
| 845 | 'MinimalRebuild': 'false', |
| 846 | 'ExceptionHandling': '0', |
| 847 | 'BufferSecurityCheck': 'true', |
| 848 | 'EnableFunctionLevelLinking': 'true', |
| 849 | 'RuntimeTypeInfo': 'false', |
| 850 | 'WarningLevel': '3', |
| 851 | 'WarnAsError': 'true', |
| 852 | 'DebugInformationFormat': '3', |
[email protected] | 3fef6e6 | 2009-07-31 19:58:58 | [diff] [blame] | 853 | 'conditions': [ |
[email protected] | 912c55c | 2009-07-31 23:33:55 | [diff] [blame] | 854 | [ 'msvs_multi_core_compile', { |
| 855 | 'AdditionalOptions': '/MP', |
| 856 | }], |
[email protected] | 3fef6e6 | 2009-07-31 19:58:58 | [diff] [blame] | 857 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 858 | }, |
| 859 | 'VCLibrarianTool': { |
| 860 | 'AdditionalOptions': '/ignore:4221', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 861 | 'AdditionalLibraryDirectories': |
[email protected] | 07506b50 | 2009-06-29 00:30:51 | [diff] [blame] | 862 | ['<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib'], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 863 | }, |
| 864 | 'VCLinkerTool': { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 865 | 'AdditionalDependencies': [ |
| 866 | 'wininet.lib', |
| 867 | 'version.lib', |
| 868 | 'msimg32.lib', |
| 869 | 'ws2_32.lib', |
| 870 | 'usp10.lib', |
| 871 | 'psapi.lib', |
[email protected] | 96fd003 | 2009-04-24 00:13:08 | [diff] [blame] | 872 | 'dbghelp.lib', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 873 | ], |
| 874 | 'AdditionalLibraryDirectories': |
[email protected] | 07506b50 | 2009-06-29 00:30:51 | [diff] [blame] | 875 | ['<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib'], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 876 | 'GenerateDebugInformation': 'true', |
| 877 | 'MapFileName': '$(OutDir)\\$(TargetName).map', |
| 878 | 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib', |
| 879 | 'TargetMachine': '1', |
| 880 | 'FixedBaseAddress': '1', |
[email protected] | 825ff8d | 2009-05-22 01:40:48 | [diff] [blame] | 881 | # SubSystem values: |
| 882 | # 0 == not set |
| 883 | # 1 == /SUBSYSTEM:CONSOLE |
| 884 | # 2 == /SUBSYSTEM:WINDOWS |
| 885 | # Most of the executables we'll ever create are tests |
| 886 | # and utilities with console output. |
| 887 | 'SubSystem': '1', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 888 | }, |
| 889 | 'VCMIDLTool': { |
| 890 | 'GenerateStublessProxies': 'true', |
| 891 | 'TypeLibraryName': '$(InputName).tlb', |
| 892 | 'OutputDirectory': '$(IntDir)', |
| 893 | 'HeaderFileName': '$(InputName).h', |
| 894 | 'DLLDataFileName': 'dlldata.c', |
| 895 | 'InterfaceIdentifierFileName': '$(InputName)_i.c', |
| 896 | 'ProxyFileName': '$(InputName)_p.c', |
| 897 | }, |
| 898 | 'VCResourceCompilerTool': { |
| 899 | 'Culture' : '1033', |
[email protected] | 245b3cd59 | 2009-03-31 01:12:14 | [diff] [blame] | 900 | 'AdditionalIncludeDirectories': ['<(DEPTH)'], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 901 | }, |
| 902 | }, |
| 903 | }, |
| 904 | }], |
| 905 | ['chromium_code==0', { |
| 906 | # This section must follow the other conditon sections above because |
| 907 | # external_code.gypi expects to be merged into those settings. |
| 908 | 'includes': [ |
| 909 | 'external_code.gypi', |
| 910 | ], |
[email protected] | dce5df5 | 2009-06-29 17:58:25 | [diff] [blame] | 911 | }, { |
| 912 | 'target_defaults': { |
| 913 | # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the |
| 914 | # C99 macros on Mac and Linux. |
| 915 | 'defines': [ |
| 916 | '__STDC_FORMAT_MACROS', |
| 917 | ], |
| 918 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 919 | }], |
[email protected] | d8c7cbcc | 2009-10-02 19:00:31 | [diff] [blame] | 920 | ['disable_nacl==1', { |
| 921 | 'target_defaults': { |
| 922 | 'defines': [ |
| 923 | 'DISABLE_NACL', |
| 924 | ], |
| 925 | }, |
| 926 | }], |
[email protected] | 48c7af7 | 2009-07-03 22:00:19 | [diff] [blame] | 927 | ['msvs_use_common_linker_extras', { |
| 928 | 'target_defaults': { |
| 929 | 'msvs_settings': { |
| 930 | 'VCLinkerTool': { |
| 931 | 'AdditionalOptions': |
| 932 | '/safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat', |
| 933 | 'DelayLoadDLLs': [ |
| 934 | 'dbghelp.dll', |
| 935 | 'dwmapi.dll', |
| 936 | 'uxtheme.dll', |
| 937 | ], |
| 938 | }, |
| 939 | }, |
| 940 | }, |
| 941 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 942 | ], |
[email protected] | c13fcbd | 2009-03-27 04:27:01 | [diff] [blame] | 943 | 'scons_settings': { |
| 944 | 'sconsbuild_dir': '<(DEPTH)/sconsbuild', |
[email protected] | a8b56d9 | 2009-08-10 04:09:07 | [diff] [blame] | 945 | 'tools': ['ar', 'as', 'gcc', 'g++', 'gnulink', 'chromium_builders'], |
[email protected] | c13fcbd | 2009-03-27 04:27:01 | [diff] [blame] | 946 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 947 | 'xcode_settings': { |
[email protected] | 0c8ab45 | 2009-11-06 21:57:50 | [diff] [blame] | 948 | # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
| 949 | # This block adds *project-wide* configuration settings to each project |
| 950 | # file. It's almost always wrong to put things here. Specify your |
| 951 | # custom xcode_settings in target_defaults to add them to targets instead. |
| 952 | |
| 953 | # In an Xcode Project Info window, the "Base SDK for All Configurations" |
| 954 | # setting sets the SDK on a project-wide basis. In order to get the |
| 955 | # configured SDK to show properly in the Xcode UI, SDKROOT must be set |
| 956 | # here at the project level. |
| 957 | 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
| 958 | |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 959 | # The Xcode generator will look for an xcode_settings section at the root |
| 960 | # of each dict and use it to apply settings on a file-wide basis. Most |
| 961 | # settings should not be here, they should be in target-specific |
| 962 | # xcode_settings sections, or better yet, should use non-Xcode-specific |
| 963 | # settings in target dicts. SYMROOT is a special case, because many other |
| 964 | # Xcode variables depend on it, including variables such as |
| 965 | # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 966 | # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 967 | # files to appear (when present) in the UI as actual files and not red |
| 968 | # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 969 | # and therefore SYMROOT, needs to be set at the project level. |
[email protected] | bfa24b96 | 2009-03-02 00:16:16 | [diff] [blame] | 970 | 'SYMROOT': '<(DEPTH)/xcodebuild', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 971 | }, |
[email protected] | ee28c9f | 2009-09-04 01:53:01 | [diff] [blame] | 972 | } |
[email protected] | f5c990c | 2009-10-06 03:02:38 | [diff] [blame] | 973 | |
| 974 | # Local Variables: |
| 975 | # tab-width:2 |
| 976 | # indent-tabs-mode:nil |
| 977 | # End: |
| 978 | # vim: set expandtab tabstop=2 shiftwidth=2: |