| OLD | NEW |
| (Empty) |
| 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 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| 11 # variables and defines should go in skia_common.gypi so they can be seen | |
| 12 # by files listed here and in skia_library_opts.gypi. | |
| 13 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| 14 { | |
| 15 'dependencies': [ | |
| 16 'skia_library_opts.gyp:skia_opts', | |
| 17 '../third_party/zlib/zlib.gyp:zlib', | |
| 18 ], | |
| 19 | |
| 20 'includes': [ | |
| 21 '../third_party/skia/gyp/core.gypi', | |
| 22 '../third_party/skia/gyp/effects.gypi', | |
| 23 '../third_party/skia/gyp/pdf.gypi', | |
| 24 '../third_party/skia/gyp/utils.gypi', | |
| 25 ], | |
| 26 | |
| 27 'sources': [ | |
| 28 # this should likely be moved into src/utils in skia | |
| 29 '../third_party/skia/src/core/SkFlate.cpp', | |
| 30 | |
| 31 '../third_party/skia/src/ports/SkImageDecoder_empty.cpp', | |
| 32 '../third_party/skia/src/images/SkScaledBitmapSampler.cpp', | |
| 33 '../third_party/skia/src/images/SkScaledBitmapSampler.h', | |
| 34 | |
| 35 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', | |
| 36 | |
| 37 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp', | |
| 38 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp', | |
| 39 | |
| 40 '../third_party/skia/src/fonts/SkFontMgr_indirect.cpp', | |
| 41 '../third_party/skia/src/fonts/SkRemotableFontMgr.cpp', | |
| 42 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp', | |
| 43 | |
| 44 '../third_party/skia/src/ports/SkImageGenerator_none.cpp', | |
| 45 | |
| 46 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', | |
| 47 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', | |
| 48 '../third_party/skia/src/ports/SkFontHost_FreeType_common.h', | |
| 49 '../third_party/skia/src/ports/SkFontHost_mac.cpp', | |
| 50 '../third_party/skia/src/ports/SkFontHost_win.cpp', | |
| 51 '../third_party/skia/src/ports/SkFontMgr_android.cpp', | |
| 52 '../third_party/skia/src/ports/SkFontMgr_android_factory.cpp', | |
| 53 '../third_party/skia/src/ports/SkFontMgr_android_parser.cpp', | |
| 54 '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp', | |
| 55 '../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp', | |
| 56 '../third_party/skia/src/ports/SkOSFile_posix.cpp', | |
| 57 '../third_party/skia/src/ports/SkOSFile_stdio.cpp', | |
| 58 '../third_party/skia/src/ports/SkOSFile_win.cpp', | |
| 59 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp', | |
| 60 '../third_party/skia/src/ports/SkScalerContext_win_dw.h', | |
| 61 '../third_party/skia/src/ports/SkTime_Unix.cpp', | |
| 62 '../third_party/skia/src/ports/SkTLS_pthread.cpp', | |
| 63 '../third_party/skia/src/ports/SkTLS_win.cpp', | |
| 64 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp', | |
| 65 '../third_party/skia/src/ports/SkTypeface_win_dw.h', | |
| 66 | |
| 67 '../third_party/skia/src/sfnt/SkOTTable_name.cpp', | |
| 68 '../third_party/skia/src/sfnt/SkOTTable_name.h', | |
| 69 '../third_party/skia/src/sfnt/SkOTUtils.cpp', | |
| 70 '../third_party/skia/src/sfnt/SkOTUtils.h', | |
| 71 | |
| 72 '../third_party/skia/include/core/SkFontStyle.h', | |
| 73 | |
| 74 '../third_party/skia/include/images/SkMovie.h', | |
| 75 '../third_party/skia/include/images/SkPageFlipper.h', | |
| 76 | |
| 77 '../third_party/skia/include/ports/SkFontConfigInterface.h', | |
| 78 '../third_party/skia/include/ports/SkFontMgr.h', | |
| 79 '../third_party/skia/include/ports/SkFontMgr_indirect.h', | |
| 80 '../third_party/skia/include/ports/SkRemotableFontMgr.h', | |
| 81 '../third_party/skia/include/ports/SkTypeface_win.h', | |
| 82 ], | |
| 83 | |
| 84 # Exclude all unused files in skia utils.gypi file | |
| 85 'sources!': [ | |
| 86 '../third_party/skia/include/utils/SkBoundaryPatch.h', | |
| 87 '../third_party/skia/include/utils/SkFrontBufferedStream.h', | |
| 88 '../third_party/skia/include/utils/SkCamera.h', | |
| 89 '../third_party/skia/include/utils/SkCanvasStateUtils.h', | |
| 90 '../third_party/skia/include/utils/SkCubicInterval.h', | |
| 91 '../third_party/skia/include/utils/SkCullPoints.h', | |
| 92 '../third_party/skia/include/utils/SkDebugUtils.h', | |
| 93 '../third_party/skia/include/utils/SkDumpCanvas.h', | |
| 94 '../third_party/skia/include/utils/SkEventTracer.h', | |
| 95 '../third_party/skia/include/utils/SkInterpolator.h', | |
| 96 '../third_party/skia/include/utils/SkLayer.h', | |
| 97 '../third_party/skia/include/utils/SkMeshUtils.h', | |
| 98 '../third_party/skia/include/utils/SkNinePatch.h', | |
| 99 '../third_party/skia/include/utils/SkParsePaint.h', | |
| 100 '../third_party/skia/include/utils/SkParsePath.h', | |
| 101 '../third_party/skia/include/utils/SkRandom.h', | |
| 102 | |
| 103 '../third_party/skia/src/utils/SkBitmapHasher.cpp', | |
| 104 '../third_party/skia/src/utils/SkBitmapHasher.h', | |
| 105 '../third_party/skia/src/utils/SkBoundaryPatch.cpp', | |
| 106 '../third_party/skia/src/utils/SkFrontBufferedStream.cpp', | |
| 107 '../third_party/skia/src/utils/SkCamera.cpp', | |
| 108 '../third_party/skia/src/utils/SkCanvasStack.h', | |
| 109 '../third_party/skia/src/utils/SkCubicInterval.cpp', | |
| 110 '../third_party/skia/src/utils/SkCullPoints.cpp', | |
| 111 '../third_party/skia/src/utils/SkDumpCanvas.cpp', | |
| 112 '../third_party/skia/src/utils/SkFloatUtils.h', | |
| 113 '../third_party/skia/src/utils/SkInterpolator.cpp', | |
| 114 '../third_party/skia/src/utils/SkLayer.cpp', | |
| 115 '../third_party/skia/src/utils/SkMD5.cpp', | |
| 116 '../third_party/skia/src/utils/SkMD5.h', | |
| 117 '../third_party/skia/src/utils/SkMeshUtils.cpp', | |
| 118 '../third_party/skia/src/utils/SkNinePatch.cpp', | |
| 119 '../third_party/skia/src/utils/SkOSFile.cpp', | |
| 120 '../third_party/skia/src/utils/SkParsePath.cpp', | |
| 121 '../third_party/skia/src/utils/SkPathUtils.cpp', | |
| 122 '../third_party/skia/src/utils/SkSHA1.cpp', | |
| 123 '../third_party/skia/src/utils/SkSHA1.h', | |
| 124 '../third_party/skia/src/utils/SkTFitsIn.h', | |
| 125 '../third_party/skia/src/utils/SkTLogic.h', | |
| 126 | |
| 127 # We don't currently need to change thread affinity, so leave out this complex
ity for now. | |
| 128 "../third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp", | |
| 129 "../third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp", | |
| 130 | |
| 131 #windows | |
| 132 '../third_party/skia/include/utils/win/SkAutoCoInitialize.h', | |
| 133 '../third_party/skia/include/utils/win/SkHRESULT.h', | |
| 134 '../third_party/skia/include/utils/win/SkIStream.h', | |
| 135 '../third_party/skia/include/utils/win/SkTScopedComPtr.h', | |
| 136 '../third_party/skia/src/utils/win/SkAutoCoInitialize.cpp', | |
| 137 '../third_party/skia/src/utils/win/SkIStream.cpp', | |
| 138 '../third_party/skia/src/utils/win/SkWGL_win.cpp', | |
| 139 | |
| 140 #testing | |
| 141 '../third_party/skia/src/fonts/SkGScalerContext.cpp', | |
| 142 '../third_party/skia/src/fonts/SkGScalerContext.h', | |
| 143 ], | |
| 144 | |
| 145 'include_dirs': [ | |
| 146 '../third_party/skia/include/c', | |
| 147 '../third_party/skia/include/core', | |
| 148 '../third_party/skia/include/effects', | |
| 149 '../third_party/skia/include/images', | |
| 150 '../third_party/skia/include/lazy', | |
| 151 '../third_party/skia/include/pathops', | |
| 152 '../third_party/skia/include/pdf', | |
| 153 '../third_party/skia/include/pipe', | |
| 154 '../third_party/skia/include/ports', | |
| 155 '../third_party/skia/include/record', | |
| 156 '../third_party/skia/include/utils', | |
| 157 '../third_party/skia/src/core', | |
| 158 '../third_party/skia/src/opts', | |
| 159 '../third_party/skia/src/image', | |
| 160 '../third_party/skia/src/pdf', | |
| 161 '../third_party/skia/src/ports', | |
| 162 '../third_party/skia/src/sfnt', | |
| 163 '../third_party/skia/src/utils', | |
| 164 '../third_party/skia/src/lazy', | |
| 165 ], | |
| 166 'conditions': [ | |
| 167 ['skia_support_gpu != 0', { | |
| 168 'includes': [ | |
| 169 '../third_party/skia/gyp/gpu.gypi', | |
| 170 ], | |
| 171 'sources': [ | |
| 172 '<@(skgpu_null_gl_sources)', | |
| 173 '<@(skgpu_sources)', | |
| 174 ], | |
| 175 'include_dirs': [ | |
| 176 '../third_party/skia/include/gpu', | |
| 177 '../third_party/skia/src/gpu', | |
| 178 ], | |
| 179 }], | |
| 180 ['skia_support_pdf == 0', { | |
| 181 'sources/': [ | |
| 182 ['exclude', '../third_party/skia/src/doc/SkDocument_PDF.cpp'], | |
| 183 ['exclude', '../third_party/skia/src/pdf/'], | |
| 184 ], | |
| 185 }], | |
| 186 ['skia_support_pdf == 1', { | |
| 187 'dependencies': [ | |
| 188 '../third_party/sfntly/sfntly.gyp:sfntly', | |
| 189 ], | |
| 190 }], | |
| 191 | |
| 192 [ 'OS == "win"', { | |
| 193 'sources!': [ | |
| 194 # Keeping _win.cpp | |
| 195 "../third_party/skia/src/utils/SkThreadUtils_pthread.cpp", | |
| 196 "../third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp", | |
| 197 ], | |
| 198 },{ | |
| 199 'sources!': [ | |
| 200 # Keeping _pthread.cpp and _pthread_other.cpp | |
| 201 "../third_party/skia/src/utils/SkThreadUtils_win.cpp", | |
| 202 ], | |
| 203 }], | |
| 204 | |
| 205 [ 'OS != "mac"', { | |
| 206 'sources/': [ | |
| 207 ['exclude', '/mac/'] | |
| 208 ], | |
| 209 }], | |
| 210 [ 'OS == "android" and target_arch == "arm"', { | |
| 211 'sources': [ | |
| 212 '../third_party/skia/src/core/SkUtilsArm.cpp', | |
| 213 ], | |
| 214 'includes': [ | |
| 215 '../build/android/cpufeatures.gypi', | |
| 216 ], | |
| 217 }], | |
| 218 [ 'desktop_linux == 1 or chromeos == 1', { | |
| 219 'dependencies': [ | |
| 220 '../build/linux/system.gyp:fontconfig', | |
| 221 '../build/linux/system.gyp:freetype2', | |
| 222 '../third_party/icu/icu.gyp:icuuc', | |
| 223 ], | |
| 224 'cflags': [ | |
| 225 '-Wno-unused', | |
| 226 '-Wno-unused-function', | |
| 227 ], | |
| 228 }], | |
| 229 [ 'use_cairo == 1 and use_pango == 1', { | |
| 230 'dependencies': [ | |
| 231 '../build/linux/system.gyp:pangocairo', | |
| 232 ], | |
| 233 }], | |
| 234 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { | |
| 235 'sources!': [ | |
| 236 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', | |
| 237 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp', | |
| 238 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp', | |
| 239 ], | |
| 240 }], | |
| 241 [ 'OS=="win" or OS=="mac" or OS=="ios"', { | |
| 242 'sources!': [ | |
| 243 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', | |
| 244 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', | |
| 245 | |
| 246 ], | |
| 247 }], | |
| 248 [ 'OS == "android"', { | |
| 249 'dependencies': [ | |
| 250 '../third_party/expat/expat.gyp:expat', | |
| 251 '../third_party/freetype/freetype.gyp:ft2', | |
| 252 ], | |
| 253 # This exports a hard dependency because it needs to run its | |
| 254 # symlink action in order to expose the skia header files. | |
| 255 'hard_dependency': 1, | |
| 256 'include_dirs': [ | |
| 257 '../third_party/expat/files/lib', | |
| 258 ], | |
| 259 }, { # not 'OS == "android"' | |
| 260 'sources!': [ | |
| 261 "../third_party/skia/src/ports/SkFontMgr_android_factory.cpp", | |
| 262 '../third_party/skia/src/ports/SkFontMgr_android_parser.cpp', | |
| 263 ], | |
| 264 }], | |
| 265 [ 'OS == "ios"', { | |
| 266 'include_dirs': [ | |
| 267 '../third_party/skia/include/utils/ios', | |
| 268 '../third_party/skia/include/utils/mac', | |
| 269 ], | |
| 270 'link_settings': { | |
| 271 'libraries': [ | |
| 272 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', | |
| 273 ], | |
| 274 }, | |
| 275 'sources': [ | |
| 276 # This file is used on both iOS and Mac, so it should be removed | |
| 277 # from the ios and mac conditions and moved into the main sources | |
| 278 # list. | |
| 279 '../third_party/skia/src/utils/mac/SkStream_mac.cpp', | |
| 280 ], | |
| 281 | |
| 282 # The main skia_opts target does not currently work on iOS because the | |
| 283 # target architecture on iOS is determined at compile time rather than | |
| 284 # gyp time (simulator builds are x86, device builds are arm). As a | |
| 285 # temporary measure, this is a separate opts target for iOS-only, using | |
| 286 # the _none.cpp files to avoid architecture-dependent implementations. | |
| 287 'dependencies': [ | |
| 288 'skia_library_opts.gyp:skia_opts_none', | |
| 289 ], | |
| 290 'dependencies!': [ | |
| 291 'skia_library_opts.gyp:skia_opts', | |
| 292 ], | |
| 293 }], | |
| 294 [ 'OS == "mac"', { | |
| 295 'direct_dependent_settings': { | |
| 296 'include_dirs': [ | |
| 297 '../third_party/skia/include/utils/mac', | |
| 298 ], | |
| 299 }, | |
| 300 'include_dirs': [ | |
| 301 '../third_party/skia/include/utils/mac', | |
| 302 ], | |
| 303 'link_settings': { | |
| 304 'libraries': [ | |
| 305 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
| 306 ], | |
| 307 }, | |
| 308 'sources': [ | |
| 309 '../third_party/skia/src/utils/mac/SkStream_mac.cpp', | |
| 310 ], | |
| 311 }], | |
| 312 [ 'OS == "win"', { | |
| 313 'sources!': [ | |
| 314 '../third_party/skia/src/ports/SkOSFile_posix.cpp', | |
| 315 '../third_party/skia/src/ports/SkTime_Unix.cpp', | |
| 316 '../third_party/skia/src/ports/SkTLS_pthread.cpp', | |
| 317 ], | |
| 318 'include_dirs': [ | |
| 319 '../third_party/skia/include/utils/win', | |
| 320 '../third_party/skia/src/utils/win', | |
| 321 ], | |
| 322 },{ # not 'OS == "win"' | |
| 323 'sources!': [ | |
| 324 '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp', | |
| 325 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp', | |
| 326 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp', | |
| 327 '../third_party/skia/src/ports/SkScalerContext_win_dw.h', | |
| 328 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp', | |
| 329 '../third_party/skia/src/ports/SkTypeface_win_dw.h', | |
| 330 | |
| 331 '../third_party/skia/src/utils/win/SkDWrite.h', | |
| 332 '../third_party/skia/src/utils/win/SkDWrite.cpp', | |
| 333 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp', | |
| 334 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h', | |
| 335 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp', | |
| 336 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h', | |
| 337 '../third_party/skia/src/utils/win/SkHRESULT.cpp', | |
| 338 ], | |
| 339 }], | |
| 340 ], | |
| 341 'target_conditions': [ | |
| 342 # Pull in specific Mac files for iOS (which have been filtered out | |
| 343 # by file name rules). | |
| 344 [ 'OS == "ios"', { | |
| 345 'sources/': [ | |
| 346 ['include', 'SkFontHost_mac\\.cpp$',], | |
| 347 ['include', 'SkStream_mac\\.cpp$',], | |
| 348 ['include', 'SkCreateCGImageRef\\.cpp$',], | |
| 349 ], | |
| 350 'xcode_settings' : { | |
| 351 'WARNING_CFLAGS': [ | |
| 352 # SkFontHost_mac.cpp uses API deprecated in iOS 7. | |
| 353 # crbug.com/408571 | |
| 354 '-Wno-deprecated-declarations', | |
| 355 ], | |
| 356 }, | |
| 357 }], | |
| 358 ], | |
| 359 | |
| 360 'direct_dependent_settings': { | |
| 361 'include_dirs': [ | |
| 362 '../third_party/skia/include/core', | |
| 363 '../third_party/skia/include/effects', | |
| 364 '../third_party/skia/include/pdf', | |
| 365 '../third_party/skia/include/gpu', | |
| 366 '../third_party/skia/include/lazy', | |
| 367 '../third_party/skia/include/pathops', | |
| 368 '../third_party/skia/include/pipe', | |
| 369 '../third_party/skia/include/ports', | |
| 370 '../third_party/skia/include/utils', | |
| 371 ], | |
| 372 }, | |
| 373 } | |
| OLD | NEW |