| OLD | NEW |
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 declare_args() { | 6 declare_args() { |
| 7 skia_use_libwebp = !is_fuchsia | 7 skia_use_libwebp = !is_fuchsia |
| 8 } | 8 } |
| 9 | 9 |
| 10 skia_public_includes = [ | 10 skia_public_includes = [ |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 "src/codec/SkJpegCodec.cpp", | 250 "src/codec/SkJpegCodec.cpp", |
| 251 "src/codec/SkJpegDecoderMgr.cpp", | 251 "src/codec/SkJpegDecoderMgr.cpp", |
| 252 "src/codec/SkJpegUtility.cpp", | 252 "src/codec/SkJpegUtility.cpp", |
| 253 "src/codec/SkMaskSwizzler.cpp", | 253 "src/codec/SkMaskSwizzler.cpp", |
| 254 "src/codec/SkMasks.cpp", | 254 "src/codec/SkMasks.cpp", |
| 255 "src/codec/SkPngCodec.cpp", | 255 "src/codec/SkPngCodec.cpp", |
| 256 "src/codec/SkSampledCodec.cpp", | 256 "src/codec/SkSampledCodec.cpp", |
| 257 "src/codec/SkSampler.cpp", | 257 "src/codec/SkSampler.cpp", |
| 258 "src/codec/SkSwizzler.cpp", | 258 "src/codec/SkSwizzler.cpp", |
| 259 "src/codec/SkWbmpCodec.cpp", | 259 "src/codec/SkWbmpCodec.cpp", |
| 260 "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
| 260 "src/images/SkImageEncoder.cpp", | 261 "src/images/SkImageEncoder.cpp", |
| 261 "src/images/SkImageEncoder_Factory.cpp", | 262 "src/images/SkImageEncoder_Factory.cpp", |
| 262 "src/images/SkJPEGImageEncoder.cpp", | 263 "src/images/SkJPEGImageEncoder.cpp", |
| 263 "src/images/SkJPEGWriteUtility.cpp", | 264 "src/images/SkJPEGWriteUtility.cpp", |
| 264 "src/images/SkKTXImageEncoder.cpp", | 265 "src/images/SkKTXImageEncoder.cpp", |
| 265 "src/images/SkPNGImageEncoder.cpp", | 266 "src/images/SkPNGImageEncoder.cpp", |
| 266 "src/ports/SkDiscardableMemory_none.cpp", | 267 "src/ports/SkDiscardableMemory_none.cpp", |
| 267 "src/ports/SkGlobalInitialization_default.cpp", | 268 "src/ports/SkGlobalInitialization_default.cpp", |
| 268 "src/ports/SkImageGenerator_skia.cpp", | 269 "src/ports/SkImageGenerator_skia.cpp", |
| 269 "src/ports/SkMemory_malloc.cpp", | 270 "src/ports/SkMemory_malloc.cpp", |
| 270 "src/ports/SkOSFile_stdio.cpp", | 271 "src/ports/SkOSFile_stdio.cpp", |
| 271 "src/sfnt/SkOTTable_name.cpp", | 272 "src/sfnt/SkOTTable_name.cpp", |
| 272 "src/sfnt/SkOTUtils.cpp", | 273 "src/sfnt/SkOTUtils.cpp", |
| 273 "src/svg/SkSVGCanvas.cpp", | 274 "src/svg/SkSVGCanvas.cpp", |
| 274 "src/svg/SkSVGDevice.cpp", | 275 "src/svg/SkSVGDevice.cpp", |
| 275 "src/utils/mac/SkStream_mac.cpp", | 276 "src/utils/mac/SkStream_mac.cpp", |
| 276 "src/xml/SkDOM.cpp", | 277 "src/xml/SkDOM.cpp", |
| 277 "src/xml/SkXMLParser.cpp", | 278 "src/xml/SkXMLParser.cpp", |
| 278 "src/xml/SkXMLWriter.cpp", | 279 "src/xml/SkXMLWriter.cpp", |
| 279 "third_party/etc1/etc1.cpp", | 280 "third_party/etc1/etc1.cpp", |
| 280 "third_party/ktx/ktx.cpp", | 281 "third_party/ktx/ktx.cpp", |
| 281 ] | 282 ] |
| 283 sources -= [ |
| 284 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", |
| 285 "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
| 286 ] |
| 282 | 287 |
| 283 if (is_win) { | 288 if (is_win) { |
| 284 sources += [ | 289 sources += [ |
| 285 "src/ports/SkDebug_win.cpp", | 290 "src/ports/SkDebug_win.cpp", |
| 286 "src/ports/SkFontHost_win.cpp", | 291 "src/ports/SkFontHost_win.cpp", |
| 287 "src/ports/SkFontMgr_win_dw.cpp", | 292 "src/ports/SkFontMgr_win_dw.cpp", |
| 288 "src/ports/SkFontMgr_win_dw_factory.cpp", | 293 "src/ports/SkFontMgr_win_dw_factory.cpp", |
| 289 "src/ports/SkImageEncoder_WIC.cpp", | 294 "src/ports/SkImageEncoder_WIC.cpp", |
| 290 "src/ports/SkImageGeneratorWIC.cpp", | 295 "src/ports/SkImageGeneratorWIC.cpp", |
| 291 "src/ports/SkOSFile_win.cpp", | 296 "src/ports/SkOSFile_win.cpp", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 302 "src/ports/SkTLS_pthread.cpp", | 307 "src/ports/SkTLS_pthread.cpp", |
| 303 "src/xps/SkDocument_XPS_None.cpp", | 308 "src/xps/SkDocument_XPS_None.cpp", |
| 304 ] | 309 ] |
| 305 } | 310 } |
| 306 | 311 |
| 307 if (is_linux) { | 312 if (is_linux) { |
| 308 deps += [ | 313 deps += [ |
| 309 "third_party:fontconfig", | 314 "third_party:fontconfig", |
| 310 "third_party:freetype2", | 315 "third_party:freetype2", |
| 311 ] | 316 ] |
| 317 libs += [ |
| 318 "GL", |
| 319 "GLU", |
| 320 "X11", |
| 321 ] |
| 312 sources += [ | 322 sources += [ |
| 323 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp", |
| 313 "src/ports/SkFontConfigInterface_direct.cpp", | 324 "src/ports/SkFontConfigInterface_direct.cpp", |
| 314 "src/ports/SkFontConfigInterface_direct_factory.cpp", | 325 "src/ports/SkFontConfigInterface_direct_factory.cpp", |
| 315 "src/ports/SkFontHost_FreeType.cpp", | 326 "src/ports/SkFontHost_FreeType.cpp", |
| 316 "src/ports/SkFontHost_FreeType_common.cpp", | 327 "src/ports/SkFontHost_FreeType_common.cpp", |
| 317 "src/ports/SkFontMgr_FontConfigInterface.cpp", | 328 "src/ports/SkFontMgr_FontConfigInterface.cpp", |
| 318 "src/ports/SkFontMgr_fontconfig.cpp", | 329 "src/ports/SkFontMgr_fontconfig.cpp", |
| 319 "src/ports/SkFontMgr_fontconfig_factory.cpp", | 330 "src/ports/SkFontMgr_fontconfig_factory.cpp", |
| 320 ] | 331 ] |
| 321 } | 332 } |
| 322 | 333 |
| 323 if (is_mac) { | 334 if (is_mac) { |
| 324 sources += [ | 335 sources += [ |
| 336 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp", |
| 325 "src/ports/SkFontHost_mac.cpp", | 337 "src/ports/SkFontHost_mac.cpp", |
| 326 "src/ports/SkImageEncoder_CG.cpp", | 338 "src/ports/SkImageEncoder_CG.cpp", |
| 327 "src/ports/SkImageGeneratorCG.cpp", | 339 "src/ports/SkImageGeneratorCG.cpp", |
| 328 ] | 340 ] |
| 329 libs += [ "ApplicationServices.framework" ] | 341 libs += [ |
| 342 "ApplicationServices.framework", |
| 343 "OpenGL.framework", |
| 344 ] |
| 330 } | 345 } |
| 331 | 346 |
| 332 if (is_fuchsia) { | 347 if (is_fuchsia) { |
| 333 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ] | 348 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ] |
| 334 } | 349 } |
| 335 } | 350 } |
| 336 | 351 |
| 337 skia_h_headers = exec_script("gyp/find.py", | 352 skia_h_headers = exec_script("gyp/find.py", |
| 338 [ "*.h" ] + rebase_path(skia_public_includes), | 353 [ "*.h" ] + rebase_path(skia_public_includes), |
| 339 "list lines", | 354 "list lines", |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 "tools/gpu/gl/debug/GrFrameBufferObj.cpp", | 421 "tools/gpu/gl/debug/GrFrameBufferObj.cpp", |
| 407 "tools/gpu/gl/debug/GrProgramObj.cpp", | 422 "tools/gpu/gl/debug/GrProgramObj.cpp", |
| 408 "tools/gpu/gl/debug/GrShaderObj.cpp", | 423 "tools/gpu/gl/debug/GrShaderObj.cpp", |
| 409 "tools/gpu/gl/debug/GrTextureObj.cpp", | 424 "tools/gpu/gl/debug/GrTextureObj.cpp", |
| 410 "tools/gpu/gl/debug/GrTextureUnitObj.cpp", | 425 "tools/gpu/gl/debug/GrTextureUnitObj.cpp", |
| 411 "tools/gpu/gl/null/NullGLTestContext.cpp", | 426 "tools/gpu/gl/null/NullGLTestContext.cpp", |
| 412 ] | 427 ] |
| 413 libs = [] | 428 libs = [] |
| 414 | 429 |
| 415 if (is_linux) { | 430 if (is_linux) { |
| 416 sources += [ | 431 sources += [ "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp" ] |
| 417 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp", | |
| 418 "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp", | |
| 419 ] | |
| 420 libs += [ | |
| 421 "GL", | |
| 422 "GLU", | |
| 423 "X11", | |
| 424 ] | |
| 425 } else if (is_mac) { | 432 } else if (is_mac) { |
| 426 sources += [ | 433 sources += [ "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp" ] |
| 427 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp", | |
| 428 "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp", | |
| 429 ] | |
| 430 libs += [ "OpenGL.framework" ] | |
| 431 } | 434 } |
| 432 } | 435 } |
| 433 | 436 |
| 434 test_lib("flags") { | 437 test_lib("flags") { |
| 435 public_include_dirs = [ "tools/flags" ] | 438 public_include_dirs = [ "tools/flags" ] |
| 436 sources = [ | 439 sources = [ |
| 437 "tools/flags/SkCommandLineFlags.cpp", | 440 "tools/flags/SkCommandLineFlags.cpp", |
| 438 "tools/flags/SkCommonFlags.cpp", | 441 "tools/flags/SkCommonFlags.cpp", |
| 439 "tools/flags/SkCommonFlagsConfig.cpp", | 442 "tools/flags/SkCommonFlagsConfig.cpp", |
| 440 ] | 443 ] |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 "tools/SkShaper_harfbuzz.cpp", | 628 "tools/SkShaper_harfbuzz.cpp", |
| 626 "tools/using_skia_and_harfbuzz.cpp", | 629 "tools/using_skia_and_harfbuzz.cpp", |
| 627 ] | 630 ] |
| 628 deps = [ | 631 deps = [ |
| 629 ":skia", | 632 ":skia", |
| 630 "//third_party/harfbuzz", | 633 "//third_party/harfbuzz", |
| 631 ] | 634 ] |
| 632 testonly = true | 635 testonly = true |
| 633 } | 636 } |
| 634 } | 637 } |
| OLD | NEW |