| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 if (current_cpu == "arm") { | 9 if (current_cpu == "arm") { |
| 10 import("//build/config/arm.gni") | 10 import("//build/config/arm.gni") |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 "//third_party/skia/include/config", | 105 "//third_party/skia/include/config", |
| 106 "//third_party/skia/include/core", | 106 "//third_party/skia/include/core", |
| 107 "//third_party/skia/include/effects", | 107 "//third_party/skia/include/effects", |
| 108 "//third_party/skia/include/images", | 108 "//third_party/skia/include/images", |
| 109 "//third_party/skia/include/lazy", | 109 "//third_party/skia/include/lazy", |
| 110 "//third_party/skia/include/pathops", | 110 "//third_party/skia/include/pathops", |
| 111 "//third_party/skia/include/pdf", | 111 "//third_party/skia/include/pdf", |
| 112 "//third_party/skia/include/pipe", | 112 "//third_party/skia/include/pipe", |
| 113 "//third_party/skia/include/ports", | 113 "//third_party/skia/include/ports", |
| 114 "//third_party/skia/include/utils", | 114 "//third_party/skia/include/utils", |
| 115 |
| 115 # TODO(dsinclair): Right way to use //third_party/freetype? | 116 # TODO(dsinclair): Right way to use //third_party/freetype? |
| 116 "//third_party/freetype/include", | 117 "//third_party/freetype/include", |
| 117 ] | 118 ] |
| 118 | 119 |
| 119 defines = [] | 120 defines = [] |
| 120 | 121 |
| 121 if (skia_support_gpu) { | 122 if (skia_support_gpu) { |
| 122 include_dirs += [ | 123 include_dirs += [ |
| 123 "//third_party/skia/include/gpu", | 124 "//third_party/skia/include/gpu", |
| 124 "//third_party/skia/src/gpu", | 125 "//third_party/skia/src/gpu", |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 "//third_party/skia/src/utils/win/SkIStream.cpp", | 305 "//third_party/skia/src/utils/win/SkIStream.cpp", |
| 305 "//third_party/skia/src/utils/win/SkWGL_win.cpp", | 306 "//third_party/skia/src/utils/win/SkWGL_win.cpp", |
| 306 ] | 307 ] |
| 307 } | 308 } |
| 308 | 309 |
| 309 # Fixup skia library sources. | 310 # Fixup skia library sources. |
| 310 if (is_win) { | 311 if (is_win) { |
| 311 sources -= [ | 312 sources -= [ |
| 312 "//third_party/skia/src/ports/SkOSFile_posix.cpp", | 313 "//third_party/skia/src/ports/SkOSFile_posix.cpp", |
| 313 "//third_party/skia/src/ports/SkTLS_pthread.cpp", | 314 "//third_party/skia/src/ports/SkTLS_pthread.cpp", |
| 314 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", | |
| 315 "//third_party/skia/src/ports/SkFontMgr_custom_empty_factory.cpp", | |
| 316 ] | 315 ] |
| 317 } else { | 316 } else { |
| 318 sources -= [ | 317 sources -= [ |
| 319 "//third_party/skia/src/ports/SkFontHost_win.cpp", | 318 "//third_party/skia/src/ports/SkFontHost_win.cpp", |
| 320 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", | |
| 321 "//third_party/skia/src/ports/SkFontMgr_win_dw_factory.cpp", | |
| 322 "//third_party/skia/src/ports/SkOSFile_win.cpp", | 319 "//third_party/skia/src/ports/SkOSFile_win.cpp", |
| 323 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", | 320 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", |
| 324 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", | 321 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", |
| 325 "//third_party/skia/src/ports/SkTLS_win.cpp", | 322 "//third_party/skia/src/ports/SkTLS_win.cpp", |
| 326 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", | 323 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", |
| 327 ] | 324 ] |
| 328 } | 325 } |
| 329 if (!is_android) { | 326 if (!is_android) { |
| 330 sources -= [ | 327 sources -= [ |
| 331 "//third_party/skia/src/ports/SkFontMgr_android.cpp", | 328 "//third_party/skia/src/ports/SkFontMgr_android.cpp", |
| 332 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", | 329 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", |
| 333 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", | 330 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", |
| 334 ] | 331 ] |
| 335 } | 332 } |
| 336 if (!is_mac) { | 333 if (!is_mac) { |
| 337 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] | 334 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] |
| 338 } | 335 } |
| 339 | 336 |
| 340 if (!is_linux && !is_android) { | 337 if (!is_linux && !is_android && !is_win) { |
| 341 sources -= [ | 338 sources -= [ |
| 342 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 339 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
| 343 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 340 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
| 344 ] | 341 ] |
| 345 } | 342 } |
| 346 | 343 |
| 347 if (is_clang && !is_nacl) { | 344 if (is_clang && !is_nacl) { |
| 348 # Skia won't compile with some of the more strict clang warnings. | 345 # Skia won't compile with some of the more strict clang warnings. |
| 349 # e.g. it does: | 346 # e.g. it does: |
| 350 # SkASSERT(!"sk_out_of_memory"); | 347 # SkASSERT(!"sk_out_of_memory"); |
| 351 configs -= [ "//build/config/clang:extra_warnings" ] | 348 configs -= [ "//build/config/clang:extra_warnings" ] |
| 352 } | 349 } |
| 353 | 350 |
| 354 configs -= [ "//build/config/compiler:chromium_code" ] | 351 configs -= [ "//build/config/compiler:chromium_code" ] |
| 355 configs += [ | 352 configs += [ |
| 356 ":skia_config", | 353 ":skia_config", |
| 357 ":skia_library_config", | 354 ":skia_library_config", |
| 358 "//build/config/compiler:no_chromium_code", | 355 "//build/config/compiler:no_chromium_code", |
| 359 ] | 356 ] |
| 360 public_configs = [ ":skia_config" ] | 357 public_configs = [ ":skia_config" ] |
| 361 | 358 |
| 362 deps = [ | 359 deps = [ |
| 363 ":skia_opts", | 360 ":skia_opts", |
| 364 "../third_party:fx_zlib", | 361 "../third_party:fx_zlib", |
| 365 ] | 362 ] |
| 366 | 363 |
| 367 if (is_linux) { | 364 if (is_linux) { |
| 368 deps += [ | 365 deps += [ "//third_party/icu:icuuc" ] |
| 369 "//third_party/icu:icuuc", | |
| 370 ] | |
| 371 } | 366 } |
| 372 | 367 |
| 373 if (is_android) { | 368 if (is_android) { |
| 374 set_sources_assignment_filter([]) | 369 set_sources_assignment_filter([]) |
| 375 set_sources_assignment_filter(sources_assignment_filter) | 370 set_sources_assignment_filter(sources_assignment_filter) |
| 376 deps += [ | 371 deps += [ |
| 377 "//third_party/android_tools:cpu_features", | 372 "//third_party/android_tools:cpu_features", |
| 378 "//third_party/expat", | 373 "//third_party/expat", |
| 379 "//third_party/freetype-android:freetype", | 374 "//third_party/freetype-android:freetype", |
| 380 ] | 375 ] |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 542 |
| 548 configs -= [ "//build/config/compiler:chromium_code" ] | 543 configs -= [ "//build/config/compiler:chromium_code" ] |
| 549 configs += [ | 544 configs += [ |
| 550 ":skia_config", | 545 ":skia_config", |
| 551 ":skia_library_config", | 546 ":skia_library_config", |
| 552 "//build/config/compiler:no_chromium_code", | 547 "//build/config/compiler:no_chromium_code", |
| 553 ] | 548 ] |
| 554 | 549 |
| 555 visibility = [ ":skia" ] | 550 visibility = [ ":skia" ] |
| 556 } | 551 } |
| OLD | NEW |