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