seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 1 | # conditions used in both common.gypi and skia.gyp in chromium |
| 2 | # |
| 3 | { |
chudy@google.com | bbad34d | 2012-08-13 14:26:36 +0000 | [diff] [blame] | 4 | 'defines': [ |
| 5 | 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |
mtklein@google.com | dad7070 | 2013-11-20 18:06:10 +0000 | [diff] [blame] | 6 | 'SK_SUPPORT_GPU=<(skia_gpu)', |
| 7 | 'SK_SUPPORT_OPENCL=<(skia_opencl)', |
commit-bot@chromium.org | ae79612 | 2014-03-12 17:05:46 +0000 | [diff] [blame] | 8 | 'SK_FORCE_DISTANCEFIELD_FONTS=<(skia_force_distancefield_fonts)', |
chudy@google.com | bbad34d | 2012-08-13 14:26:36 +0000 | [diff] [blame] | 9 | ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 10 | 'conditions' : [ |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 11 | [ 'skia_os == "win"', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 12 | { |
| 13 | 'defines': [ |
| 14 | 'SK_BUILD_FOR_WIN32', |
bsalomon@google.com | 8b5abec | 2011-09-28 14:32:01 +0000 | [diff] [blame] | 15 | '_CRT_SECURE_NO_WARNINGS', |
senorblanco@chromium.org | 5f47a39 | 2012-07-12 00:34:39 +0000 | [diff] [blame] | 16 | 'GR_GL_FUNCTION_TYPE=__stdcall', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 17 | ], |
| 18 | 'msvs_cygwin_shell': 0, |
| 19 | 'msvs_settings': { |
| 20 | 'VCCLCompilerTool': { |
bsalomon@google.com | b58a639 | 2013-03-21 20:29:05 +0000 | [diff] [blame] | 21 | 'WarningLevel': '3', |
| 22 | 'ProgramDataBaseFileName': '$(OutDir)\\$(ProjectName).pdb', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 23 | 'DebugInformationFormat': '3', |
bsalomon@google.com | b58a639 | 2013-03-21 20:29:05 +0000 | [diff] [blame] | 24 | 'ExceptionHandling': '0', |
| 25 | 'AdditionalOptions': [ '/MP', ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 26 | }, |
| 27 | 'VCLinkerTool': { |
| 28 | 'AdditionalDependencies': [ |
| 29 | 'OpenGL32.lib', |
| 30 | 'usp10.lib', |
bungeman@google.com | f51e125 | 2013-06-05 18:35:22 +0000 | [diff] [blame] | 31 | |
| 32 | # Prior to gyp r1584, the following were included automatically. |
| 33 | 'kernel32.lib', |
| 34 | 'gdi32.lib', |
| 35 | 'winspool.lib', |
| 36 | 'comdlg32.lib', |
| 37 | 'advapi32.lib', |
| 38 | 'shell32.lib', |
| 39 | 'ole32.lib', |
| 40 | 'oleaut32.lib', |
| 41 | 'user32.lib', |
| 42 | 'uuid.lib', |
| 43 | 'odbc32.lib', |
| 44 | 'odbccp32.lib', |
bsalomon@google.com | bbba784 | 2013-06-06 18:34:13 +0000 | [diff] [blame] | 45 | 'DelayImp.lib', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 46 | ], |
| 47 | }, |
| 48 | }, |
| 49 | 'configurations': { |
| 50 | 'Debug': { |
| 51 | 'msvs_settings': { |
| 52 | 'VCCLCompilerTool': { |
bsalomon@google.com | 8b5abec | 2011-09-28 14:32:01 +0000 | [diff] [blame] | 53 | 'DebugInformationFormat': '4', # editAndContiue (/ZI) |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 54 | 'Optimization': '0', # optimizeDisabled (/Od) |
| 55 | 'PreprocessorDefinitions': ['_DEBUG'], |
| 56 | 'RuntimeLibrary': '3', # rtMultiThreadedDebugDLL (/MDd) |
bsalomon@google.com | 8b5abec | 2011-09-28 14:32:01 +0000 | [diff] [blame] | 57 | 'RuntimeTypeInfo': 'false', # /GR- |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 58 | }, |
| 59 | 'VCLinkerTool': { |
bsalomon@google.com | 8b5abec | 2011-09-28 14:32:01 +0000 | [diff] [blame] | 60 | 'GenerateDebugInformation': 'true', # /DEBUG |
| 61 | 'LinkIncremental': '2', # /INCREMENTAL |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 62 | }, |
| 63 | }, |
| 64 | }, |
| 65 | 'Release': { |
| 66 | 'msvs_settings': { |
| 67 | 'VCCLCompilerTool': { |
bsalomon@google.com | 9aabfc7 | 2012-05-31 14:12:46 +0000 | [diff] [blame] | 68 | 'DebugInformationFormat': '3', # programDatabase (/Zi) |
commit-bot@chromium.org | 06b3864 | 2013-06-20 20:28:54 +0000 | [diff] [blame] | 69 | 'Optimization': '<(skia_release_optimization_level)', |
bsalomon@google.com | d971869 | 2013-04-22 14:56:50 +0000 | [diff] [blame] | 70 | 'WholeProgramOptimization': 'true', #/GL |
bsalomon@google.com | 8b5abec | 2011-09-28 14:32:01 +0000 | [diff] [blame] | 71 | # Changing the floating point model requires rebaseling gm images |
bsalomon@google.com | 9aabfc7 | 2012-05-31 14:12:46 +0000 | [diff] [blame] | 72 | #'FloatingPointModel': '2', # fast (/fp:fast) |
| 73 | 'FavorSizeOrSpeed': '1', # speed (/Ot) |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 74 | 'PreprocessorDefinitions': ['NDEBUG'], |
bsalomon@google.com | 9aabfc7 | 2012-05-31 14:12:46 +0000 | [diff] [blame] | 75 | 'RuntimeLibrary': '2', # rtMultiThreadedDLL (/MD) |
bsalomon@google.com | 9aabfc7 | 2012-05-31 14:12:46 +0000 | [diff] [blame] | 76 | 'EnableEnhancedInstructionSet': '2',# /arch:SSE2 |
| 77 | 'RuntimeTypeInfo': 'false', # /GR- |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 78 | }, |
| 79 | 'VCLinkerTool': { |
bsalomon@google.com | 8b5abec | 2011-09-28 14:32:01 +0000 | [diff] [blame] | 80 | 'GenerateDebugInformation': 'true', # /DEBUG |
bsalomon@google.com | d971869 | 2013-04-22 14:56:50 +0000 | [diff] [blame] | 81 | 'LinkTimeCodeGeneration': '1', # useLinkTimeCodeGeneration /LTCG |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 82 | }, |
bungeman@google.com | 983297e | 2011-10-03 19:36:51 +0000 | [diff] [blame] | 83 | 'VCLibrarianTool': { |
bsalomon@google.com | d971869 | 2013-04-22 14:56:50 +0000 | [diff] [blame] | 84 | 'LinkTimeCodeGeneration': 'true', # useLinkTimeCodeGeneration /LTCG |
bungeman@google.com | 983297e | 2011-10-03 19:36:51 +0000 | [diff] [blame] | 85 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 86 | }, |
| 87 | }, |
epoger@google.com | 58d69d8 | 2014-04-01 07:02:41 +0000 | [diff] [blame^] | 88 | # Gyp's ninja generator depends on these specially named |
| 89 | # configurations to build 64-bit on Windows. |
| 90 | # See http://skbug.com/2348 |
| 91 | # |
| 92 | # We handle the 64- vs 32-bit variations elsewhere, so I think it's |
| 93 | # OK for us to just make these inherit non-archwidth-specific |
| 94 | # configurations without modification. |
| 95 | 'Debug_x64': { |
| 96 | 'inherit_from': ['Debug'], |
| 97 | }, |
| 98 | 'Release_x64': { |
| 99 | 'inherit_from': ['Release'], |
| 100 | }, |
| 101 | 'Release_Developer_x64': { |
| 102 | 'inherit_from': ['Release_Developer'], |
| 103 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 104 | }, |
borenet@google.com | b796119 | 2012-08-20 18:58:26 +0000 | [diff] [blame] | 105 | 'conditions' : [ |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 106 | [ 'skia_arch_width == 64', { |
bsalomon@google.com | 1d03ba9 | 2013-01-08 20:40:22 +0000 | [diff] [blame] | 107 | 'msvs_configuration_platform': 'x64', |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 108 | }], |
| 109 | [ 'skia_arch_width == 32', { |
| 110 | 'msvs_configuration_platform': 'Win32', |
| 111 | }], |
| 112 | [ 'skia_warnings_as_errors', { |
bsalomon@google.com | 1d03ba9 | 2013-01-08 20:40:22 +0000 | [diff] [blame] | 113 | 'msvs_settings': { |
| 114 | 'VCCLCompilerTool': { |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 115 | 'WarnAsError': 'true', |
| 116 | 'AdditionalOptions': [ |
| 117 | '/we4189', # initialized but unused var warning |
| 118 | ], |
bsalomon@google.com | 1d03ba9 | 2013-01-08 20:40:22 +0000 | [diff] [blame] | 119 | }, |
| 120 | }, |
borenet@google.com | b796119 | 2012-08-20 18:58:26 +0000 | [diff] [blame] | 121 | }], |
commit-bot@chromium.org | 5a6c2d8 | 2013-06-14 17:10:09 +0000 | [diff] [blame] | 122 | [ 'skia_win_exceptions', { |
| 123 | 'msvs_settings': { |
| 124 | 'VCCLCompilerTool': { |
| 125 | 'AdditionalOptions': [ |
| 126 | '/EHsc', |
| 127 | ], |
| 128 | }, |
| 129 | }, |
| 130 | }], |
borenet@google.com | b796119 | 2012-08-20 18:58:26 +0000 | [diff] [blame] | 131 | ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 132 | }, |
| 133 | ], |
| 134 | |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 135 | # The following section is common to linux + derivatives and android |
| 136 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos", "android"]', |
| 137 | { |
mtklein@google.com | f1077f9 | 2013-11-20 15:13:49 +0000 | [diff] [blame] | 138 | 'cflags': [ |
mtklein@google.com | dad7070 | 2013-11-20 18:06:10 +0000 | [diff] [blame] | 139 | '-g', |
mtklein@google.com | f1077f9 | 2013-11-20 15:13:49 +0000 | [diff] [blame] | 140 | '-fno-exceptions', |
| 141 | '-fstrict-aliasing', |
mtklein@google.com | dad7070 | 2013-11-20 18:06:10 +0000 | [diff] [blame] | 142 | |
mtklein@google.com | f1077f9 | 2013-11-20 15:13:49 +0000 | [diff] [blame] | 143 | '-Wall', |
| 144 | '-Wextra', |
| 145 | '-Winit-self', |
| 146 | '-Wpointer-arith', |
| 147 | |
| 148 | '-Wno-unused-parameter', |
mtklein@google.com | f1077f9 | 2013-11-20 15:13:49 +0000 | [diff] [blame] | 149 | ], |
| 150 | 'cflags_cc': [ |
| 151 | '-fno-rtti', |
| 152 | '-Wnon-virtual-dtor', |
| 153 | ], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 154 | 'conditions': [ |
commit-bot@chromium.org | 93f5e51 | 2014-02-17 15:22:26 +0000 | [diff] [blame] | 155 | [ 'skia_android_framework==0', { |
| 156 | 'cflags': [ |
| 157 | # This flag is not supported by Android build system. |
| 158 | '-Wno-c++11-extensions', |
| 159 | ], |
| 160 | }], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 161 | [ 'skia_warnings_as_errors', { |
| 162 | 'cflags': [ |
| 163 | '-Werror', |
| 164 | ], |
| 165 | }], |
commit-bot@chromium.org | 35d4872 | 2014-02-13 18:36:36 +0000 | [diff] [blame] | 166 | # For profiling; reveals some costs, exaggerates others (e.g. trivial setters & getters). |
| 167 | [ 'skia_disable_inlining', { |
| 168 | 'cflags': [ |
| 169 | '-fno-inline', |
| 170 | '-fno-default-inline', |
| 171 | '-finline-limit=0', |
| 172 | '-fno-omit-frame-pointer', |
| 173 | ], |
| 174 | }], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 175 | [ 'skia_arch_type == "arm" and arm_thumb == 1', { |
| 176 | 'cflags': [ |
| 177 | '-mthumb', |
| 178 | ], |
djsollen@google.com | f7542ba | 2013-07-31 12:57:27 +0000 | [diff] [blame] | 179 | # The --fix-cortex-a8 switch enables a link-time workaround for |
| 180 | # an erratum in certain Cortex-A8 processors. The workaround is |
| 181 | # enabled by default if you target the ARM v7-A arch profile. |
| 182 | # It can be enabled otherwise by specifying --fix-cortex-a8, or |
| 183 | # disabled unconditionally by specifying --no-fix-cortex-a8. |
| 184 | # |
| 185 | # The erratum only affects Thumb-2 code. |
| 186 | 'conditions': [ |
| 187 | [ 'arm_version < 7', { |
| 188 | 'ldflags': [ |
| 189 | '-Wl,--fix-cortex-a8', |
| 190 | ], |
| 191 | }], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 192 | ], |
djsollen@google.com | f7542ba | 2013-07-31 12:57:27 +0000 | [diff] [blame] | 193 | }], |
| 194 | [ 'skia_arch_type == "arm" and arm_version >= 7', { |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 195 | 'cflags': [ |
| 196 | '-march=armv7-a', |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 197 | ], |
djsollen@google.com | f7542ba | 2013-07-31 12:57:27 +0000 | [diff] [blame] | 198 | 'ldflags': [ |
| 199 | '-march=armv7-a', |
| 200 | ], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 201 | 'conditions': [ |
| 202 | [ 'arm_neon == 1', { |
| 203 | 'defines': [ |
| 204 | '__ARM_HAVE_NEON', |
| 205 | ], |
| 206 | 'cflags': [ |
| 207 | '-mfpu=neon', |
| 208 | ], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 209 | }], |
| 210 | [ 'arm_neon_optional == 1', { |
| 211 | 'defines': [ |
| 212 | '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
| 213 | ], |
| 214 | }], |
borenet@google.com | e2b9037 | 2013-07-11 18:46:30 +0000 | [diff] [blame] | 215 | [ 'skia_os != "chromeos"', { |
| 216 | 'cflags': [ |
| 217 | '-mfloat-abi=softfp', |
| 218 | ], |
| 219 | }], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 220 | ], |
| 221 | }], |
| 222 | ], |
| 223 | }, |
| 224 | ], |
| 225 | |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 226 | ['skia_android_framework', { |
| 227 | 'cflags': [ |
| 228 | # Skia does not enforce this usage pattern so we disable it here to avoid |
| 229 | # unecessary log spew when building |
| 230 | '-Wno-unused-parameter', |
| 231 | |
| 232 | # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkString. |
| 233 | # Revert to -D_FORTIFY_SOURCE=1 |
| 234 | '-U_FORTIFY_SOURCE', |
| 235 | '-D_FORTIFY_SOURCE=1', |
| 236 | ], |
commit-bot@chromium.org | 2fe641b | 2014-03-25 15:14:18 +0000 | [diff] [blame] | 237 | # Remove flags which are either unnecessary or problematic for the |
| 238 | # Android framework build. Many of these flags are removed simply because |
| 239 | # they were not previously in the Android framework makefile, and we did |
| 240 | # did not intend to add them when generating the makefile. |
| 241 | # TODO (scroggo): Investigate whether any of these flags are actually |
| 242 | # needed/would be beneficial. |
commit-bot@chromium.org | e72a408 | 2014-02-28 16:07:39 +0000 | [diff] [blame] | 243 | 'cflags!': [ |
commit-bot@chromium.org | 2fe641b | 2014-03-25 15:14:18 +0000 | [diff] [blame] | 244 | # Android has one makefile, used for both debugging (after manual |
| 245 | # modification) and release. Turn off debug info by default. |
commit-bot@chromium.org | e72a408 | 2014-02-28 16:07:39 +0000 | [diff] [blame] | 246 | '-g', |
| 247 | '-march=armv7-a', |
| 248 | '-mthumb', |
| 249 | '-mfpu=neon', |
| 250 | '-mfloat-abi=softfp', |
commit-bot@chromium.org | 2fe641b | 2014-03-25 15:14:18 +0000 | [diff] [blame] | 251 | # This flag is not supported by Android build system. |
| 252 | '-Wno-c++11-extensions', |
| 253 | '-fno-exceptions', |
| 254 | '-fstrict-aliasing', |
| 255 | # Remove flags to turn on warnings, since most people building Android |
| 256 | # are not focused on Skia and do not need the extra warning info. |
| 257 | '-Wall', |
| 258 | '-Wextra', |
| 259 | '-Winit-self', |
| 260 | '-Wpointer-arith', |
| 261 | ], |
| 262 | 'cflags_cc!': [ |
| 263 | '-fno-rtti', |
| 264 | '-Wnon-virtual-dtor', |
commit-bot@chromium.org | e72a408 | 2014-02-28 16:07:39 +0000 | [diff] [blame] | 265 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 266 | 'defines': [ |
| 267 | 'DCT_IFAST_SUPPORTED', |
| 268 | # using freetype's embolden allows us to adjust fake bold settings at |
| 269 | # draw-time, at which point we know which SkTypeface is being drawn |
| 270 | 'SK_USE_FREETYPE_EMBOLDEN', |
| 271 | # Android provides at least FreeType 2.4.0 at runtime. |
commit-bot@chromium.org | ba0c5ea | 2014-03-28 15:59:04 +0000 | [diff] [blame] | 272 | 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION 0x020400', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 273 | # Skia should not use dlopen on Android. |
commit-bot@chromium.org | ba0c5ea | 2014-03-28 15:59:04 +0000 | [diff] [blame] | 274 | 'SK_CAN_USE_DLOPEN 0', |
| 275 | 'SK_SFNTLY_SUBSETTER "sample/chromium/font_subsetter.h"', |
| 276 | # When built as part of the system image we can enable certian non-NDK |
| 277 | # compliant optimizations. |
| 278 | 'SK_BUILD_FOR_ANDROID_FRAMEWORK', |
| 279 | # Android Text Tuning |
| 280 | 'SK_GAMMA_APPLY_TO_A8', |
| 281 | 'SK_GAMMA_EXPONENT 1.4', |
| 282 | 'SK_GAMMA_CONTRAST 0.0', |
| 283 | # Optimizations for chromium (m30) |
| 284 | 'GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h"', |
| 285 | 'IGNORE_ROT_AA_RECT_OPT', |
| 286 | # Disable this check because it is too strict for some chromium-specific |
| 287 | # subclasses of SkPixelRef. See bug: crbug.com/171776. |
| 288 | 'SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK', |
| 289 | 'SkLONGLONG int64_t', |
| 290 | 'SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024)', |
| 291 | 'SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_android.h"', |
| 292 | 'SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h"', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 293 | ], |
| 294 | }], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 295 | |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 296 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 297 | { |
| 298 | 'defines': [ |
| 299 | 'SK_SAMPLES_FOR_X', |
| 300 | 'SK_BUILD_FOR_UNIX', |
| 301 | ], |
| 302 | 'configurations': { |
mtklein@google.com | 1fb04e2 | 2013-09-13 19:32:43 +0000 | [diff] [blame] | 303 | 'Coverage': { |
mtklein@google.com | dad7070 | 2013-11-20 18:06:10 +0000 | [diff] [blame] | 304 | 'cflags': ['--coverage'], |
mtklein@google.com | 1fb04e2 | 2013-09-13 19:32:43 +0000 | [diff] [blame] | 305 | 'ldflags': ['--coverage'], |
| 306 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 307 | 'Debug': { |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 308 | }, |
| 309 | 'Release': { |
commit-bot@chromium.org | 06b3864 | 2013-06-20 20:28:54 +0000 | [diff] [blame] | 310 | 'cflags': [ |
| 311 | '-O<(skia_release_optimization_level)', |
commit-bot@chromium.org | 06b3864 | 2013-06-20 20:28:54 +0000 | [diff] [blame] | 312 | ], |
senorblanco@chromium.org | 7288c49 | 2012-01-19 19:59:22 +0000 | [diff] [blame] | 313 | 'defines': [ 'NDEBUG' ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 314 | }, |
| 315 | }, |
borenet@google.com | a37a517 | 2012-08-09 20:44:32 +0000 | [diff] [blame] | 316 | 'conditions' : [ |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 317 | [ 'skia_shared_lib', { |
| 318 | 'cflags': [ |
| 319 | '-fPIC', |
| 320 | ], |
| 321 | 'defines': [ |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 322 | 'SKIA_DLL', |
| 323 | 'SKIA_IMPLEMENTATION=1', |
| 324 | ], |
| 325 | }], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 326 | [ 'skia_os == "nacl"', { |
| 327 | 'defines': [ |
| 328 | 'SK_BUILD_FOR_NACL', |
| 329 | ], |
commit-bot@chromium.org | fe42410 | 2014-02-21 00:40:16 +0000 | [diff] [blame] | 330 | 'variables': { |
| 331 | 'nacl_sdk_root': '<!(["echo", "${NACL_SDK_ROOT}"])', |
| 332 | }, |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 333 | 'link_settings': { |
| 334 | 'libraries': [ |
| 335 | '-lppapi', |
| 336 | '-lppapi_cpp', |
| 337 | '-lnosys', |
| 338 | '-pthread', |
| 339 | ], |
commit-bot@chromium.org | fe42410 | 2014-02-21 00:40:16 +0000 | [diff] [blame] | 340 | 'ldflags': [ |
| 341 | '-L<(nacl_sdk_root)/lib/newlib_x86_<(skia_arch_width)/Release', |
| 342 | '-L<(nacl_sdk_root)/ports/lib/newlib_x86_<(skia_arch_width)/Release', |
| 343 | ], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 344 | }, |
borenet@google.com | cb9445d | 2013-08-19 18:26:04 +0000 | [diff] [blame] | 345 | }, { # skia_os != "nacl" |
| 346 | 'link_settings': { |
| 347 | 'ldflags': [ |
| 348 | '-lstdc++', |
| 349 | '-lm', |
| 350 | ], |
| 351 | }, |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 352 | }], |
borenet@google.com | cb9445d | 2013-08-19 18:26:04 +0000 | [diff] [blame] | 353 | [ 'skia_os != "chromeos"', { |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 354 | 'conditions': [ |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 355 | [ 'skia_arch_width == 64 and skia_arch_type == "x86"', { |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 356 | 'cflags': [ |
| 357 | '-m64', |
| 358 | ], |
| 359 | 'ldflags': [ |
| 360 | '-m64', |
| 361 | ], |
| 362 | }], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 363 | [ 'skia_arch_width == 32 and skia_arch_type == "x86"', { |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 364 | 'cflags': [ |
| 365 | '-m32', |
| 366 | ], |
| 367 | 'ldflags': [ |
| 368 | '-m32', |
| 369 | ], |
| 370 | }], |
| 371 | ], |
| 372 | }], |
mtklein@google.com | 9f3b0e4 | 2013-10-08 15:16:36 +0000 | [diff] [blame] | 373 | # Enable asan, tsan, etc. |
| 374 | [ 'skia_sanitizer', { |
borenet@google.com | 0d19309 | 2013-07-03 15:55:05 +0000 | [diff] [blame] | 375 | 'cflags': [ |
mtklein@google.com | 9f3b0e4 | 2013-10-08 15:16:36 +0000 | [diff] [blame] | 376 | '-fsanitize=<(skia_sanitizer)', |
borenet@google.com | 0d19309 | 2013-07-03 15:55:05 +0000 | [diff] [blame] | 377 | ], |
| 378 | 'ldflags': [ |
mtklein@google.com | 9f3b0e4 | 2013-10-08 15:16:36 +0000 | [diff] [blame] | 379 | '-fsanitize=<(skia_sanitizer)', |
bungeman@google.com | 1435f9f | 2013-09-25 22:39:22 +0000 | [diff] [blame] | 380 | ], |
mtklein@google.com | 3a19fb5 | 2013-10-09 16:12:23 +0000 | [diff] [blame] | 381 | 'conditions' : [ |
| 382 | [ 'skia_sanitizer == "thread"', { |
| 383 | 'defines': [ 'DYNAMIC_ANNOTATIONS_ENABLED=1' ], |
bungeman@google.com | 0fbe01f | 2013-10-10 17:24:17 +0000 | [diff] [blame] | 384 | 'cflags': [ '-fPIC' ], |
bungeman@google.com | 27d4ffe | 2013-10-10 17:09:49 +0000 | [diff] [blame] | 385 | 'target_conditions': [ |
| 386 | [ '_type == "executable"', { |
| 387 | 'cflags': [ '-fPIE' ], |
| 388 | 'ldflags': [ '-pie' ], |
| 389 | }], |
| 390 | ], |
mtklein@google.com | 3a19fb5 | 2013-10-09 16:12:23 +0000 | [diff] [blame] | 391 | }], |
| 392 | ], |
bungeman@google.com | 1435f9f | 2013-09-25 22:39:22 +0000 | [diff] [blame] | 393 | }], |
borenet@google.com | 47ae4b0 | 2013-08-21 18:02:50 +0000 | [diff] [blame] | 394 | [ 'skia_clang_build', { |
| 395 | 'cflags': [ |
mtklein@google.com | 9f3b0e4 | 2013-10-08 15:16:36 +0000 | [diff] [blame] | 396 | # Extra warnings we like but that only Clang knows about. |
borenet@google.com | 47ae4b0 | 2013-08-21 18:02:50 +0000 | [diff] [blame] | 397 | '-Wstring-conversion', |
| 398 | ], |
| 399 | }], |
commit-bot@chromium.org | 5003bde | 2013-10-25 18:14:54 +0000 | [diff] [blame] | 400 | [ 'skia_keep_frame_pointer', { |
| 401 | 'cflags': [ '-fno-omit-frame-pointer' ], |
| 402 | }], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 403 | ], |
| 404 | }, |
| 405 | ], |
| 406 | |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 407 | [ 'skia_os == "mac"', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 408 | { |
| 409 | 'defines': [ |
| 410 | 'SK_BUILD_FOR_MAC', |
| 411 | ], |
djsollen@google.com | e341cb3 | 2012-06-28 16:08:05 +0000 | [diff] [blame] | 412 | 'conditions' : [ |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 413 | [ 'skia_arch_width == 64', { |
djsollen@google.com | e341cb3 | 2012-06-28 16:08:05 +0000 | [diff] [blame] | 414 | 'xcode_settings': { |
commit-bot@chromium.org | 5d7ca95 | 2013-04-22 20:26:44 +0000 | [diff] [blame] | 415 | 'ARCHS': ['x86_64'], |
djsollen@google.com | e341cb3 | 2012-06-28 16:08:05 +0000 | [diff] [blame] | 416 | }, |
| 417 | }], |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 418 | [ 'skia_arch_width == 32', { |
djsollen@google.com | e341cb3 | 2012-06-28 16:08:05 +0000 | [diff] [blame] | 419 | 'xcode_settings': { |
commit-bot@chromium.org | 5d7ca95 | 2013-04-22 20:26:44 +0000 | [diff] [blame] | 420 | 'ARCHS': ['i386'], |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 421 | }, |
| 422 | }], |
| 423 | [ 'skia_warnings_as_errors', { |
| 424 | 'xcode_settings': { |
humper@google.com | fe0d680 | 2013-01-07 20:28:16 +0000 | [diff] [blame] | 425 | 'OTHER_CPLUSPLUSFLAGS': [ |
| 426 | '-Werror', |
commit-bot@chromium.org | faa5ae4 | 2013-07-23 11:13:56 +0000 | [diff] [blame] | 427 | '-Wall', |
| 428 | '-Wextra', |
| 429 | '-Wno-unused-parameter', |
commit-bot@chromium.org | 6a18079 | 2014-01-15 21:39:18 +0000 | [diff] [blame] | 430 | '-Wno-uninitialized', # Disabled because we think GCC 4.2 is bad at this. |
mtklein@google.com | 8d725b2 | 2013-07-24 16:20:05 +0000 | [diff] [blame] | 431 | ], |
| 432 | }, |
| 433 | }], |
djsollen@google.com | e341cb3 | 2012-06-28 16:08:05 +0000 | [diff] [blame] | 434 | ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 435 | 'configurations': { |
commit-bot@chromium.org | 866f4e3 | 2013-11-21 17:04:29 +0000 | [diff] [blame] | 436 | 'Coverage': { |
| 437 | 'xcode_settings': { |
| 438 | 'GCC_OPTIMIZATION_LEVEL': '0', |
| 439 | 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', |
| 440 | 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS' : 'YES', |
| 441 | }, |
| 442 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 443 | 'Debug': { |
| 444 | 'xcode_settings': { |
| 445 | 'GCC_OPTIMIZATION_LEVEL': '0', |
| 446 | }, |
| 447 | }, |
reed@google.com | e05cc8e | 2011-10-10 14:19:40 +0000 | [diff] [blame] | 448 | 'Release': { |
| 449 | 'xcode_settings': { |
commit-bot@chromium.org | 06b3864 | 2013-06-20 20:28:54 +0000 | [diff] [blame] | 450 | 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)', |
reed@google.com | e05cc8e | 2011-10-10 14:19:40 +0000 | [diff] [blame] | 451 | }, |
senorblanco@chromium.org | 7288c49 | 2012-01-19 19:59:22 +0000 | [diff] [blame] | 452 | 'defines': [ 'NDEBUG' ], |
reed@google.com | e05cc8e | 2011-10-10 14:19:40 +0000 | [diff] [blame] | 453 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 454 | }, |
| 455 | 'xcode_settings': { |
robertphillips@google.com | 0229765 | 2012-04-05 19:29:04 +0000 | [diff] [blame] | 456 | 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', |
senorblanco@chromium.org | 29f351a | 2014-01-20 16:14:02 +0000 | [diff] [blame] | 457 | 'conditions': [ |
| 458 | [ 'skia_osx_deployment_target==""', { |
| 459 | 'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacos-version-min, passed in environment to ld. |
| 460 | }, { |
| 461 | 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)', |
| 462 | }], |
| 463 | ], |
reed@google.com | 0069aa5 | 2011-11-17 15:35:47 +0000 | [diff] [blame] | 464 | # trying to get this to work, but it needs clang I think... |
| 465 | # 'WARNING_CFLAGS': '-Wexit-time-destructors', |
mike@reedtribe.org | e51755f | 2011-12-10 19:36:56 +0000 | [diff] [blame] | 466 | 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', |
caryclark@google.com | b462a42 | 2012-06-06 12:12:28 +0000 | [diff] [blame] | 467 | 'GCC_WARN_64_TO_32_BIT_CONVERSION': 'YES', |
| 468 | 'GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS': 'YES', |
| 469 | 'GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO': 'YES', |
| 470 | 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', |
| 471 | 'GCC_WARN_ABOUT_MISSING_PROTOTYPES': 'YES', |
| 472 | 'GCC_WARN_ABOUT_POINTER_SIGNEDNESS': 'YES', |
| 473 | 'GCC_WARN_ABOUT_RETURN_TYPE': 'YES', |
| 474 | 'GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL': 'YES', |
| 475 | 'GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED': 'YES', |
| 476 | 'GCC_WARN_MISSING_PARENTHESES': 'YES', |
| 477 | 'GCC_WARN_PROTOTYPE_CONVERSION': 'YES', |
| 478 | 'GCC_WARN_SIGN_COMPARE': 'YES', |
| 479 | 'GCC_WARN_TYPECHECK_CALLS_TO_PRINTF': 'YES', |
| 480 | 'GCC_WARN_UNKNOWN_PRAGMAS': 'YES', |
| 481 | 'GCC_WARN_UNUSED_FUNCTION': 'YES', |
| 482 | 'GCC_WARN_UNUSED_LABEL': 'YES', |
| 483 | 'GCC_WARN_UNUSED_VALUE': 'YES', |
| 484 | 'GCC_WARN_UNUSED_VARIABLE': 'YES', |
bungeman@google.com | 43b4ed5 | 2012-10-02 15:42:21 +0000 | [diff] [blame] | 485 | 'OTHER_CPLUSPLUSFLAGS': [ |
| 486 | '-mssse3', |
| 487 | '-fvisibility=hidden', |
| 488 | '-fvisibility-inlines-hidden', |
| 489 | ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 490 | }, |
| 491 | }, |
| 492 | ], |
| 493 | |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 494 | [ 'skia_os == "ios"', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 495 | { |
| 496 | 'defines': [ |
| 497 | 'SK_BUILD_FOR_IOS', |
| 498 | ], |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 499 | 'conditions' : [ |
| 500 | [ 'skia_warnings_as_errors', { |
| 501 | 'xcode_settings': { |
| 502 | 'OTHER_CPLUSPLUSFLAGS': [ |
| 503 | '-Werror', |
| 504 | ], |
| 505 | }, |
| 506 | }], |
| 507 | ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 508 | 'configurations': { |
| 509 | 'Debug': { |
| 510 | 'xcode_settings': { |
| 511 | 'GCC_OPTIMIZATION_LEVEL': '0', |
| 512 | }, |
| 513 | }, |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 514 | 'Release': { |
| 515 | 'xcode_settings': { |
commit-bot@chromium.org | 06b3864 | 2013-06-20 20:28:54 +0000 | [diff] [blame] | 516 | 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)', |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 517 | }, |
| 518 | 'defines': [ 'NDEBUG' ], |
| 519 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 520 | }, |
| 521 | 'xcode_settings': { |
commit-bot@chromium.org | 5d7ca95 | 2013-04-22 20:26:44 +0000 | [diff] [blame] | 522 | 'ARCHS': ['armv6', 'armv7'], |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 523 | 'CODE_SIGNING_REQUIRED': 'NO', |
| 524 | 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 525 | 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_sdk_version)', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 526 | 'SDKROOT': 'iphoneos', |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 527 | 'TARGETED_DEVICE_FAMILY': '1,2', |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 528 | 'OTHER_CPLUSPLUSFLAGS': [ |
| 529 | '-fvisibility=hidden', |
| 530 | '-fvisibility-inlines-hidden', |
| 531 | ], |
bsalomon@google.com | 89dec58 | 2012-09-28 18:33:11 +0000 | [diff] [blame] | 532 | 'GCC_THUMB_SUPPORT': 'NO', |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 533 | }, |
| 534 | }, |
| 535 | ], |
chudy@google.com | bbad34d | 2012-08-13 14:26:36 +0000 | [diff] [blame] | 536 | |
borenet@google.com | a72aef8 | 2013-03-22 13:16:06 +0000 | [diff] [blame] | 537 | [ 'skia_os == "android"', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 538 | { |
| 539 | 'defines': [ |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 540 | 'SK_BUILD_FOR_ANDROID', |
bungeman@google.com | 451b596 | 2013-11-11 18:36:46 +0000 | [diff] [blame] | 541 | 'SK_FONTHOST_DOES_NOT_USE_FONTMGR', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 542 | ], |
scroggo@google.com | eb62950 | 2014-02-04 16:08:48 +0000 | [diff] [blame] | 543 | 'configurations': { |
| 544 | 'Debug': { |
| 545 | 'cflags': ['-g'] |
| 546 | }, |
| 547 | 'Release': { |
| 548 | 'cflags': ['-O2'], |
| 549 | 'defines': [ 'NDEBUG' ], |
| 550 | }, |
| 551 | }, |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 552 | 'libraries': [ |
scroggo@google.com | eb62950 | 2014-02-04 16:08:48 +0000 | [diff] [blame] | 553 | '-lstdc++', |
| 554 | '-lm', |
djsollen@google.com | 318cf92 | 2011-11-08 19:03:43 +0000 | [diff] [blame] | 555 | '-llog', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 556 | ], |
djsollen@google.com | 44360bc | 2011-12-05 13:55:55 +0000 | [diff] [blame] | 557 | 'cflags': [ |
borenet@google.com | de9ac14 | 2012-07-25 15:17:03 +0000 | [diff] [blame] | 558 | '-fuse-ld=gold', |
djsollen@google.com | 44360bc | 2011-12-05 13:55:55 +0000 | [diff] [blame] | 559 | ], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 560 | 'conditions': [ |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 561 | [ 'skia_android_framework', { |
| 562 | 'libraries!': [ |
| 563 | '-lstdc++', |
| 564 | '-lm', |
| 565 | ], |
commit-bot@chromium.org | 2fe641b | 2014-03-25 15:14:18 +0000 | [diff] [blame] | 566 | 'cflags!': [ |
| 567 | '-fuse-ld=gold', |
| 568 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 569 | }], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 570 | [ 'skia_shared_lib', { |
| 571 | 'cflags': [ |
| 572 | '-fPIC', |
| 573 | ], |
| 574 | 'defines': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 575 | 'SKIA_DLL', |
| 576 | 'SKIA_IMPLEMENTATION=1', |
| 577 | ], |
| 578 | }], |
commit-bot@chromium.org | 183f7f5 | 2013-07-11 12:48:14 +0000 | [diff] [blame] | 579 | [ 'skia_profile_enabled == 1', { |
| 580 | 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], |
djsollen@google.com | 3839ca1 | 2011-11-03 17:31:41 +0000 | [diff] [blame] | 581 | }], |
chudy@google.com | bbad34d | 2012-08-13 14:26:36 +0000 | [diff] [blame] | 582 | ], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 583 | }, |
| 584 | ], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 585 | |
digit@google.com | 1771cbf | 2012-01-26 21:26:40 +0000 | [diff] [blame] | 586 | # We can POD-style initialization of static mutexes to avoid generating |
| 587 | # static initializers if we're using a pthread-compatible thread interface. |
| 588 | [ 'skia_os != "win"', { |
| 589 | 'defines': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 590 | 'SK_USE_POSIX_THREADS', |
digit@google.com | 1771cbf | 2012-01-26 21:26:40 +0000 | [diff] [blame] | 591 | ], |
| 592 | }], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 593 | ], # end 'conditions' |
caryclark@google.com | 4588ce8 | 2012-09-26 15:48:43 +0000 | [diff] [blame] | 594 | # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details |
| 595 | 'xcode_settings': { |
| 596 | 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 597 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 598 | } |