Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: skia/BUILD.gn

Issue 305513003: Add ppapi, improve Windows GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/ppapi_sources.gypi ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 if (cpu_arch == "arm") { 7 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 10
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", 365 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
366 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", 366 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp",
367 ] 367 ]
368 } 368 }
369 if (!is_posix) { 369 if (!is_posix) {
370 sources -= [ 370 sources -= [
371 "//third_party/skia/src/utils/SkThreadUtils_pthread.cpp", 371 "//third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
372 ] 372 ]
373 } 373 }
374 374
375 sources -= [
376 # This file is a stub for systems that use pthreads but aren't covered by
377 # one of the more specific pthread files. We don't support any such
378 # systems.
379 "//third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp",
380 ]
381
375 if (!use_cairo) { 382 if (!use_cairo) {
376 sources -= [ 383 sources -= [
377 "ext/bitmap_platform_device_cairo.cc", 384 "ext/bitmap_platform_device_cairo.cc",
378 "ext/bitmap_platform_device_cairo.h", 385 "ext/bitmap_platform_device_cairo.h",
379 ] 386 ]
380 } 387 }
381 388
382 if (is_clang) { 389 if (is_clang) {
383 # Skia won't compile with some of the more strict clang warnings. 390 # Skia won't compile with some of the more strict clang warnings.
384 # e.g. it does: 391 # e.g. it does:
(...skipping 12 matching lines...) Expand all
397 ":skia_opts", 404 ":skia_opts",
398 "//base", 405 "//base",
399 "//base/third_party/dynamic_annotations", 406 "//base/third_party/dynamic_annotations",
400 "//third_party/zlib", 407 "//third_party/zlib",
401 ] 408 ]
402 409
403 if (component_mode == "shared_library") { 410 if (component_mode == "shared_library") {
404 defines = [ "SKIA_IMPLEMENTATION=1" ] 411 defines = [ "SKIA_IMPLEMENTATION=1" ]
405 } 412 }
406 413
414 if (is_win) {
415 configs -= [
416 # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate
417 # definition warning.
418 "//build/config/win:lean_and_mean",
419 ]
420 }
421
407 if (is_linux) { 422 if (is_linux) {
408 configs += [ 423 configs += [
409 "//build/config/linux:fontconfig", 424 "//build/config/linux:fontconfig",
410 "//build/config/linux:freetype2", 425 "//build/config/linux:freetype2",
411 "//build/config/linux:pangocairo", 426 "//build/config/linux:pangocairo",
412 ] 427 ]
413 deps += [ 428 deps += [
414 "//third_party/icu:icuuc", 429 "//third_party/icu:icuuc",
415 ] 430 ]
416 } 431 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 ":skia_config", 561 ":skia_config",
547 "//build/config/compiler:no_chromium_code" 562 "//build/config/compiler:no_chromium_code"
548 ] 563 ]
549 564
550 deps = [ 565 deps = [
551 "//base", 566 "//base",
552 ] 567 ]
553 568
554 visibility = ":skia" 569 visibility = ":skia"
555 } 570 }
OLDNEW
« no previous file with comments | « ppapi/ppapi_sources.gypi ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698