[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 1 | # Copyright 2013 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 | |
| 5 | |
| 6 | # This gypi file contains the Skia library. |
| 7 | # In component mode (shared_lib) it is folded into a single shared library with |
| 8 | # the Chrome-specific enhancements but in all other cases it is a separate lib. |
| 9 | { |
| 10 | 'dependencies': [ |
| 11 | 'skia_library_opts.gyp:skia_opts', |
| 12 | '../third_party/zlib/zlib.gyp:zlib', |
| 13 | ], |
| 14 | |
| 15 | 'variables': { |
| 16 | 'variables': { |
| 17 | 'conditions': [ |
| 18 | ['OS== "ios"', { |
| 19 | 'skia_support_gpu': 0, |
| 20 | }, { |
| 21 | 'skia_support_gpu': 1, |
| 22 | }], |
[email protected] | b25f003 | 2013-08-19 22:26:25 | [diff] [blame] | 23 | ['OS=="ios" or enable_printing == 0', { |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 24 | 'skia_support_pdf': 0, |
| 25 | }, { |
| 26 | 'skia_support_pdf': 1, |
| 27 | }], |
| 28 | ], |
| 29 | }, |
| 30 | 'skia_support_gpu': '<(skia_support_gpu)', |
| 31 | 'skia_support_pdf': '<(skia_support_pdf)', |
| 32 | |
| 33 | # These two set the paths so we can include skia/gyp/core.gypi |
| 34 | 'skia_src_path': '../third_party/skia/src', |
| 35 | 'skia_include_path': '../third_party/skia/include', |
| 36 | |
| 37 | # This list will contain all defines that also need to be exported to |
| 38 | # dependent components. |
| 39 | 'skia_export_defines': [ |
| 40 | 'SK_ENABLE_INST_COUNT=0', |
| 41 | 'SK_SUPPORT_GPU=<(skia_support_gpu)', |
| 42 | 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', |
[email protected] | 77b94fa0 | 2013-09-23 11:58:53 | [diff] [blame] | 43 | 'SK_ENABLE_LEGACY_API_ALIASING=1', |
[email protected] | 8d1e2c1 | 2013-11-04 12:26:27 | [diff] [blame] | 44 | 'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1', |
| 45 | 'SK_SUPPORT_LEGACY_COLORTYPE=1', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 46 | ], |
[email protected] | 8e3f8c8 | 2013-08-21 15:09:55 | [diff] [blame] | 47 | |
[email protected] | 04810d8b | 2013-10-25 11:04:13 | [diff] [blame] | 48 | 'default_font_cache_limit%': '(20*1024*1024)', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 49 | |
| 50 | 'conditions': [ |
| 51 | ['OS== "android"', { |
| 52 | # Android devices are typically more memory constrained, so |
[email protected] | 8e3f8c8 | 2013-08-21 15:09:55 | [diff] [blame] | 53 | # default to a smaller glyph cache (it may be overriden at runtime |
| 54 | # when the renderer starts up, depending on the actual device memory). |
| 55 | 'default_font_cache_limit': '(1*1024*1024)', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 56 | 'skia_export_defines': [ |
| 57 | 'SK_BUILD_FOR_ANDROID', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 58 | ], |
| 59 | }], |
| 60 | ], |
| 61 | }, |
| 62 | |
| 63 | 'includes': [ |
| 64 | '../third_party/skia/gyp/core.gypi', |
| 65 | '../third_party/skia/gyp/effects.gypi', |
[email protected] | 92096c05 | 2013-08-27 11:21:08 | [diff] [blame] | 66 | '../third_party/skia/gyp/pdf.gypi', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 67 | ], |
| 68 | |
| 69 | 'sources': [ |
| 70 | # this should likely be moved into src/utils in skia |
| 71 | '../third_party/skia/src/core/SkFlate.cpp', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 72 | '../third_party/skia/src/core/SkPaintOptionsAndroid.cpp', |
| 73 | |
| 74 | '../third_party/skia/src/ports/SkImageDecoder_empty.cpp', |
| 75 | '../third_party/skia/src/images/SkScaledBitmapSampler.cpp', |
| 76 | '../third_party/skia/src/images/SkScaledBitmapSampler.h', |
| 77 | |
| 78 | '../third_party/skia/src/opts/opts_check_SSE2.cpp', |
| 79 | |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 80 | '../third_party/skia/src/ports/SkPurgeableMemoryBlock_none.cpp', |
| 81 | |
| 82 | '../third_party/skia/src/ports/SkFontConfigInterface_android.cpp', |
| 83 | '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', |
| 84 | |
| 85 | '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp', |
| 86 | '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp', |
| 87 | |
| 88 | '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', |
| 89 | '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', |
| 90 | '../third_party/skia/src/ports/SkFontHost_FreeType_common.h', |
| 91 | '../third_party/skia/src/ports/SkFontConfigParser_android.cpp', |
| 92 | '../third_party/skia/src/ports/SkFontHost_mac.cpp', |
| 93 | '../third_party/skia/src/ports/SkFontHost_win.cpp', |
[email protected] | 1d93409e | 2013-08-21 17:13:19 | [diff] [blame] | 94 | '../third_party/skia/src/ports/SkFontHost_win_dw.cpp', |
| 95 | '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 96 | '../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp', |
| 97 | '../third_party/skia/src/ports/SkOSFile_posix.cpp', |
| 98 | '../third_party/skia/src/ports/SkOSFile_stdio.cpp', |
| 99 | '../third_party/skia/src/ports/SkOSFile_win.cpp', |
| 100 | '../third_party/skia/src/ports/SkThread_pthread.cpp', |
| 101 | '../third_party/skia/src/ports/SkThread_win.cpp', |
| 102 | '../third_party/skia/src/ports/SkTime_Unix.cpp', |
| 103 | '../third_party/skia/src/ports/SkTLS_pthread.cpp', |
| 104 | '../third_party/skia/src/ports/SkTLS_win.cpp', |
| 105 | |
[email protected] | 596de2e | 2013-08-07 14:41:04 | [diff] [blame] | 106 | '../third_party/skia/src/sfnt/SkOTTable_name.cpp', |
| 107 | '../third_party/skia/src/sfnt/SkOTTable_name.h', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 108 | '../third_party/skia/src/sfnt/SkOTUtils.cpp', |
| 109 | '../third_party/skia/src/sfnt/SkOTUtils.h', |
| 110 | |
| 111 | '../third_party/skia/include/utils/mac/SkCGUtils.h', |
| 112 | '../third_party/skia/include/utils/SkDeferredCanvas.h', |
| 113 | '../third_party/skia/include/utils/SkMatrix44.h', |
| 114 | '../third_party/skia/src/utils/debugger/SkDebugCanvas.cpp', |
| 115 | '../third_party/skia/src/utils/debugger/SkDebugCanvas.h', |
| 116 | '../third_party/skia/src/utils/debugger/SkDrawCommand.cpp', |
| 117 | '../third_party/skia/src/utils/debugger/SkDrawCommand.h', |
| 118 | '../third_party/skia/src/utils/debugger/SkObjectParser.cpp', |
| 119 | '../third_party/skia/src/utils/debugger/SkObjectParser.h', |
| 120 | '../third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp', |
| 121 | '../third_party/skia/src/utils/SkBase64.cpp', |
| 122 | '../third_party/skia/src/utils/SkBase64.h', |
| 123 | '../third_party/skia/src/utils/SkBitSet.cpp', |
| 124 | '../third_party/skia/src/utils/SkBitSet.h', |
[email protected] | 996b11ad | 2013-09-06 06:01:28 | [diff] [blame] | 125 | '../third_party/skia/src/utils/SkCanvasStack.cpp', |
| 126 | '../third_party/skia/src/utils/SkCanvasStateUtils.cpp', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 127 | '../third_party/skia/src/utils/SkDeferredCanvas.cpp', |
| 128 | '../third_party/skia/src/utils/SkMatrix44.cpp', |
| 129 | '../third_party/skia/src/utils/SkNullCanvas.cpp', |
| 130 | '../third_party/skia/include/utils/SkNWayCanvas.h', |
| 131 | '../third_party/skia/src/utils/SkNWayCanvas.cpp', |
| 132 | '../third_party/skia/src/utils/SkPictureUtils.cpp', |
[email protected] | 6497567 | 2013-07-30 18:47:13 | [diff] [blame] | 133 | '../third_party/skia/src/utils/SkProxyCanvas.cpp', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 134 | '../third_party/skia/src/utils/SkRTConf.cpp', |
| 135 | '../third_party/skia/include/utils/SkRTConf.h', |
[email protected] | 1d93409e | 2013-08-21 17:13:19 | [diff] [blame] | 136 | '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp', |
| 137 | '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h', |
| 138 | '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp', |
| 139 | '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h', |
| 140 | '../third_party/skia/src/utils/win/SkHRESULT.cpp', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 141 | |
| 142 | '../third_party/skia/include/ports/SkTypeface_win.h', |
| 143 | |
| 144 | '../third_party/skia/include/images/SkImageRef.h', |
| 145 | '../third_party/skia/include/images/SkImageRef_GlobalPool.h', |
| 146 | '../third_party/skia/include/images/SkMovie.h', |
| 147 | '../third_party/skia/include/images/SkPageFlipper.h', |
| 148 | |
| 149 | '../third_party/skia/include/utils/SkNullCanvas.h', |
| 150 | '../third_party/skia/include/utils/SkPictureUtils.h', |
[email protected] | 6497567 | 2013-07-30 18:47:13 | [diff] [blame] | 151 | '../third_party/skia/include/utils/SkProxyCanvas.h', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 152 | ], |
| 153 | 'include_dirs': [ |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 154 | '../third_party/skia/include/core', |
| 155 | '../third_party/skia/include/effects', |
| 156 | '../third_party/skia/include/images', |
| 157 | '../third_party/skia/include/lazy', |
| 158 | '../third_party/skia/include/pathops', |
| 159 | '../third_party/skia/include/pdf', |
| 160 | '../third_party/skia/include/pipe', |
| 161 | '../third_party/skia/include/ports', |
| 162 | '../third_party/skia/include/utils', |
| 163 | '../third_party/skia/src/core', |
[email protected] | 36b39bb4 | 2013-10-18 13:40:22 | [diff] [blame] | 164 | '../third_party/skia/src/opts', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 165 | '../third_party/skia/src/image', |
[email protected] | 2b889f88 | 2013-08-01 14:19:39 | [diff] [blame] | 166 | '../third_party/skia/src/ports', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 167 | '../third_party/skia/src/sfnt', |
| 168 | '../third_party/skia/src/utils', |
| 169 | '../third_party/skia/src/lazy', |
| 170 | ], |
| 171 | 'conditions': [ |
| 172 | ['skia_support_gpu != 0', { |
| 173 | 'includes': [ |
| 174 | '../third_party/skia/gyp/gpu.gypi', |
| 175 | ], |
| 176 | 'sources': [ |
| 177 | '<@(skgpu_sources)', |
| 178 | ], |
| 179 | 'include_dirs': [ |
| 180 | '../third_party/skia/include/gpu', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 181 | '../third_party/skia/src/gpu', |
| 182 | ], |
| 183 | }], |
| 184 | ['skia_support_pdf == 0', { |
| 185 | 'sources/': [ |
| 186 | ['exclude', '../third_party/skia/src/pdf/'] |
| 187 | ], |
| 188 | }], |
| 189 | ['skia_support_pdf == 1', { |
| 190 | 'dependencies': [ |
| 191 | '../third_party/sfntly/sfntly.gyp:sfntly', |
| 192 | ], |
| 193 | }], |
| 194 | |
| 195 | #Settings for text blitting, chosen to approximate the system browser. |
| 196 | [ 'OS == "linux"', { |
| 197 | 'defines': [ |
| 198 | 'SK_GAMMA_EXPONENT=1.2', |
| 199 | 'SK_GAMMA_CONTRAST=0.2', |
| 200 | ], |
| 201 | }], |
| 202 | ['OS == "android"', { |
| 203 | 'defines': [ |
| 204 | 'SK_GAMMA_APPLY_TO_A8', |
| 205 | 'SK_GAMMA_EXPONENT=1.4', |
| 206 | 'SK_GAMMA_CONTRAST=0.0', |
| 207 | ], |
| 208 | }], |
| 209 | ['OS == "win"', { |
| 210 | 'defines': [ |
| 211 | 'SK_GAMMA_SRGB', |
| 212 | 'SK_GAMMA_CONTRAST=0.5', |
| 213 | ], |
| 214 | }], |
| 215 | ['OS == "mac"', { |
| 216 | 'defines': [ |
| 217 | 'SK_GAMMA_SRGB', |
| 218 | 'SK_GAMMA_CONTRAST=0.0', |
| 219 | ], |
| 220 | }], |
| 221 | |
| 222 | # For POSIX platforms, prefer the Mutex implementation provided by Skia |
| 223 | # since it does not generate static initializers. |
[email protected] | e593f8b | 2013-10-21 20:47:39 | [diff] [blame] | 224 | [ 'os_posix == 1', { |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 225 | 'defines+': [ |
| 226 | 'SK_USE_POSIX_THREADS', |
| 227 | ], |
| 228 | 'direct_dependent_settings': { |
| 229 | 'defines': [ |
| 230 | 'SK_USE_POSIX_THREADS', |
| 231 | ], |
| 232 | }, |
| 233 | }], |
| 234 | |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 235 | [ 'OS != "ios"', { |
| 236 | 'dependencies': [ |
[email protected] | 41eddab | 2013-08-08 13:23:30 | [diff] [blame] | 237 | '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 238 | ], |
[email protected] | fe779d3 | 2013-08-08 17:22:34 | [diff] [blame] | 239 | 'export_dependent_settings': [ |
| 240 | '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config', |
| 241 | ], |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 242 | }], |
| 243 | [ 'OS != "mac"', { |
| 244 | 'sources/': [ |
| 245 | ['exclude', '/mac/'] |
| 246 | ], |
| 247 | }], |
| 248 | [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', { |
| 249 | 'defines': [ |
| 250 | '__ARM_HAVE_NEON', |
| 251 | ], |
| 252 | }], |
| 253 | [ 'target_arch == "arm" and arm_version >= 7 and arm_neon_optional == 1', { |
| 254 | 'defines': [ |
| 255 | '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
| 256 | ], |
| 257 | }], |
| 258 | [ 'OS == "android" and target_arch == "arm"', { |
| 259 | 'sources': [ |
| 260 | '../third_party/skia/src/core/SkUtilsArm.cpp', |
| 261 | ], |
| 262 | 'includes': [ |
| 263 | '../build/android/cpufeatures.gypi', |
| 264 | ], |
| 265 | }], |
| 266 | [ 'target_arch == "arm" or target_arch == "mipsel"', { |
| 267 | 'sources!': [ |
| 268 | '../third_party/skia/src/opts/opts_check_SSE2.cpp' |
| 269 | ], |
| 270 | }], |
[email protected] | b098e1d8 | 2013-11-08 06:24:58 | [diff] [blame^] | 271 | [ 'desktop_linux == 1 or chromeos == 1', { |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 272 | 'dependencies': [ |
| 273 | '../build/linux/system.gyp:fontconfig', |
| 274 | '../build/linux/system.gyp:freetype2', |
| 275 | '../build/linux/system.gyp:pangocairo', |
| 276 | '../third_party/icu/icu.gyp:icuuc', |
| 277 | ], |
| 278 | 'cflags': [ |
| 279 | '-Wno-unused', |
| 280 | '-Wno-unused-function', |
| 281 | ], |
| 282 | }], |
[email protected] | b098e1d8 | 2013-11-08 06:24:58 | [diff] [blame^] | 283 | [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 284 | 'sources!': [ |
| 285 | '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', |
| 286 | '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp', |
| 287 | ], |
| 288 | }], |
[email protected] | b098e1d8 | 2013-11-08 06:24:58 | [diff] [blame^] | 289 | [ 'OS=="win" or OS=="mac" or OS=="ios"', { |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 290 | 'sources!': [ |
| 291 | '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', |
| 292 | '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', |
| 293 | '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp', |
| 294 | |
| 295 | ], |
| 296 | }], |
| 297 | [ 'OS == "android"', { |
| 298 | 'dependencies': [ |
| 299 | '../third_party/expat/expat.gyp:expat', |
| 300 | '../third_party/freetype/freetype.gyp:ft2', |
| 301 | ], |
| 302 | # This exports a hard dependency because it needs to run its |
| 303 | # symlink action in order to expose the skia header files. |
| 304 | 'hard_dependency': 1, |
| 305 | 'include_dirs': [ |
| 306 | '../third_party/expat/files/lib', |
| 307 | ], |
| 308 | }], |
| 309 | [ 'OS == "ios"', { |
| 310 | 'defines': [ |
| 311 | 'SK_BUILD_FOR_IOS', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 312 | ], |
| 313 | 'include_dirs': [ |
| 314 | '../third_party/skia/include/utils/ios', |
| 315 | '../third_party/skia/include/utils/mac', |
| 316 | ], |
| 317 | 'link_settings': { |
| 318 | 'libraries': [ |
| 319 | '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', |
| 320 | ], |
| 321 | }, |
| 322 | 'sources': [ |
| 323 | # This file is used on both iOS and Mac, so it should be removed |
| 324 | # from the ios and mac conditions and moved into the main sources |
| 325 | # list. |
| 326 | '../third_party/skia/src/utils/mac/SkStream_mac.cpp', |
| 327 | ], |
| 328 | 'sources/': [ |
| 329 | ['exclude', 'opts_check_SSE2\\.cpp$'], |
| 330 | ], |
[email protected] | 8e3f8c8 | 2013-08-21 15:09:55 | [diff] [blame] | 331 | |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 332 | # The main skia_opts target does not currently work on iOS because the |
| 333 | # target architecture on iOS is determined at compile time rather than |
| 334 | # gyp time (simulator builds are x86, device builds are arm). As a |
| 335 | # temporary measure, this is a separate opts target for iOS-only, using |
| 336 | # the _none.cpp files to avoid architecture-dependent implementations. |
| 337 | 'dependencies': [ |
| 338 | 'skia_library_opts.gyp:skia_opts_none', |
| 339 | ], |
| 340 | 'dependencies!': [ |
| 341 | 'skia_library_opts.gyp:skia_opts', |
| 342 | ], |
| 343 | }], |
| 344 | [ 'OS == "mac"', { |
| 345 | 'defines': [ |
| 346 | 'SK_BUILD_FOR_MAC', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 347 | ], |
| 348 | 'direct_dependent_settings': { |
| 349 | 'include_dirs': [ |
| 350 | '../third_party/skia/include/utils/mac', |
| 351 | ], |
| 352 | }, |
| 353 | 'include_dirs': [ |
| 354 | '../third_party/skia/include/utils/mac', |
| 355 | ], |
| 356 | 'link_settings': { |
| 357 | 'libraries': [ |
| 358 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 359 | ], |
| 360 | }, |
| 361 | 'sources': [ |
| 362 | '../third_party/skia/src/utils/mac/SkStream_mac.cpp', |
| 363 | ], |
| 364 | }], |
| 365 | [ 'OS == "win"', { |
| 366 | 'sources!': [ |
| 367 | '../third_party/skia/src/ports/SkOSFile_posix.cpp', |
| 368 | '../third_party/skia/src/ports/SkThread_pthread.cpp', |
| 369 | '../third_party/skia/src/ports/SkTime_Unix.cpp', |
| 370 | '../third_party/skia/src/ports/SkTLS_pthread.cpp', |
| 371 | ], |
[email protected] | 1d93409e | 2013-08-21 17:13:19 | [diff] [blame] | 372 | 'include_dirs': [ |
| 373 | '../third_party/skia/include/utils/win', |
| 374 | '../third_party/skia/src/utils/win', |
| 375 | ], |
| 376 | 'defines': [ |
| 377 | 'SK_FONTHOST_USES_FONTMGR', |
| 378 | ], |
| 379 | },{ # not 'OS == "win"' |
| 380 | 'sources!': [ |
| 381 | '../third_party/skia/src/ports/SkFontHost_win_dw.cpp', |
| 382 | '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp', |
| 383 | |
| 384 | '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp', |
| 385 | '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h', |
| 386 | '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp', |
| 387 | '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h', |
| 388 | '../third_party/skia/src/utils/win/SkHRESULT.cpp', |
| 389 | ], |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 390 | }], |
| 391 | # TODO(scottmg): http://crbug.com/177306 |
| 392 | ['clang==1', { |
| 393 | 'xcode_settings': { |
| 394 | 'WARNING_CFLAGS!': [ |
| 395 | # Don't warn about string->bool used in asserts. |
| 396 | '-Wstring-conversion', |
| 397 | ], |
| 398 | }, |
| 399 | 'cflags!': [ |
| 400 | '-Wstring-conversion', |
| 401 | ], |
| 402 | }], |
| 403 | ], |
| 404 | 'target_conditions': [ |
| 405 | # Pull in specific Mac files for iOS (which have been filtered out |
| 406 | # by file name rules). |
| 407 | [ 'OS == "ios"', { |
| 408 | 'sources/': [ |
| 409 | ['include', 'SkFontHost_mac\\.cpp$',], |
| 410 | ['include', 'SkStream_mac\\.cpp$',], |
| 411 | ['include', 'SkCreateCGImageRef\\.cpp$',], |
| 412 | ], |
| 413 | }], |
| 414 | ], |
| 415 | |
| 416 | 'defines': [ |
| 417 | '<@(skia_export_defines)', |
| 418 | |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 419 | # skia uses static initializers to initialize the serialization logic |
| 420 | # of its "pictures" library. This is currently not used in chrome; if |
| 421 | # it ever gets used the processes that use it need to call |
| 422 | # SkGraphics::Init(). |
| 423 | 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', |
| 424 | |
[email protected] | c1bb258 | 2013-11-02 02:03:39 | [diff] [blame] | 425 | # Forcing the unoptimized path for the offset image filter in skia until |
| 426 | # all filters used in Blink support the optimized path properly |
| 427 | 'SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION', |
| 428 | |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 429 | # Disable this check because it is too strict for some Chromium-specific |
| 430 | # subclasses of SkPixelRef. See bug: crbug.com/171776. |
| 431 | 'SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK', |
| 432 | |
| 433 | 'IGNORE_ROT_AA_RECT_OPT', |
| 434 | |
[email protected] | 36b39bb4 | 2013-10-18 13:40:22 | [diff] [blame] | 435 | 'SK_IGNORE_QUAD_RR_CORNERS_OPT', |
| 436 | |
[email protected] | 44fb9dc | 2013-07-29 21:51:13 | [diff] [blame] | 437 | 'SKIA_IGNORE_GPU_MIPMAPS', |
| 438 | |
[email protected] | 1d93409e | 2013-08-21 17:13:19 | [diff] [blame] | 439 | # this flag forces Skia not to use typographic metrics with GDI. |
[email protected] | 44fb9dc | 2013-07-29 21:51:13 | [diff] [blame] | 440 | 'SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS', |
| 441 | |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 442 | 'SK_DEFAULT_FONT_CACHE_LIMIT=<(default_font_cache_limit)', |
[email protected] | 3d7b487 | 2013-11-05 13:47:04 | [diff] [blame] | 443 | |
[email protected] | e643315 | 2013-11-07 07:41:52 | [diff] [blame] | 444 | # http://crbug.com/314387 |
| 445 | 'SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=64', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 446 | ], |
| 447 | |
| 448 | 'direct_dependent_settings': { |
| 449 | 'include_dirs': [ |
| 450 | #temporary until we can hide SkFontHost |
| 451 | '../third_party/skia/src/core', |
| 452 | |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 453 | '../third_party/skia/include/core', |
| 454 | '../third_party/skia/include/effects', |
| 455 | '../third_party/skia/include/pdf', |
| 456 | '../third_party/skia/include/gpu', |
[email protected] | 9d6bc35 | 2013-07-23 13:00:10 | [diff] [blame] | 457 | '../third_party/skia/include/lazy', |
| 458 | '../third_party/skia/include/pathops', |
| 459 | '../third_party/skia/include/pipe', |
| 460 | '../third_party/skia/include/ports', |
| 461 | '../third_party/skia/include/utils', |
| 462 | ], |
| 463 | 'defines': [ |
| 464 | '<@(skia_export_defines)', |
| 465 | ], |
| 466 | }, |
| 467 | } |