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

Side by Side Diff: skia/BUILD.gn

Issue 1525043002: Enabling Skia / Moterm to build with PNaCl Newlib toolchain (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « examples/BUILD.gn ('k') | skia/ext/platform_canvas.h » ('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 import("//testing/test.gni") 7 import("//testing/test.gni")
8 if (current_cpu == "arm" || current_cpu == "arm64") { 8 if (current_cpu == "arm" || current_cpu == "arm64") {
9 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 } 10 }
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", 386 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp",
387 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", 387 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp",
388 ] 388 ]
389 } 389 }
390 if (!is_mac && !is_ios) { 390 if (!is_mac && !is_ios) {
391 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] 391 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ]
392 } 392 }
393 393
394 # On "Linux" (i.e., not Android), we use our a custom SkFontMgr. 394 # On "Linux" (i.e., not Android), we use our a custom SkFontMgr.
395 # TODO(vtl): We should probably do the same on Android. 395 # TODO(vtl): We should probably do the same on Android.
396 if (is_linux) { 396 if (is_linux || is_nacl) {
397 sources += [ 397 sources += [
398 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", 398 "//third_party/skia/src/ports/SkFontMgr_custom.cpp",
399 "ports/font_mgr_factory.cc", 399 "ports/font_mgr_factory.cc",
400 ] 400 ]
401 } 401 }
402 402
403 if (!is_linux && !is_android) { 403 if (!is_linux && !is_android && !is_nacl) {
404 sources -= [ 404 sources -= [
405 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", 405 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
406 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", 406 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
407 ] 407 ]
408 } 408 }
409 409
410 # Select the right BitmapPlatformDevice. 410 # Select the right BitmapPlatformDevice.
411 if (is_mac || is_ios) { 411 if (is_mac || is_ios) {
412 sources += [ 412 sources += [
413 "ext/bitmap_platform_device_mac.cc", 413 "ext/bitmap_platform_device_mac.cc",
(...skipping 20 matching lines...) Expand all
434 ] 434 ]
435 public_configs = [ ":skia_config" ] 435 public_configs = [ ":skia_config" ]
436 436
437 deps = [ 437 deps = [
438 ":skia_opts", 438 ":skia_opts",
439 "//base", 439 "//base",
440 "//base/third_party/dynamic_annotations", 440 "//base/third_party/dynamic_annotations",
441 "//third_party/zlib", 441 "//third_party/zlib",
442 ] 442 ]
443 443
444 if (is_linux) { 444 if (is_linux || is_nacl) {
445 deps += [ 445 deps += [
446 "//third_party/freetype2", 446 "//third_party/freetype2",
447 "//third_party/icu:icuuc", 447 "//third_party/icu:icuuc",
448 ] 448 ]
449 } 449 }
450 450
451 if (is_android) { 451 if (is_android) {
452 set_sources_assignment_filter([]) 452 set_sources_assignment_filter([])
453 sources += [ "ext/platform_device_linux.cc" ] 453 sources += [ "ext/platform_device_linux.cc" ]
454 set_sources_assignment_filter(sources_assignment_filter) 454 set_sources_assignment_filter(sources_assignment_filter)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 } else { 495 } else {
496 sources = gypi_skia_opts.none_sources 496 sources = gypi_skia_opts.none_sources
497 } 497 }
498 } else if (current_cpu == "arm64") { 498 } else if (current_cpu == "arm64") {
499 # TODO(1841): NEON sources are not currently used on arm64. 499 # TODO(1841): NEON sources are not currently used on arm64.
500 sources = gypi_skia_opts.none_sources 500 sources = gypi_skia_opts.none_sources
501 } else if (current_cpu == "mipsel") { 501 } else if (current_cpu == "mipsel") {
502 cflags += [ "-fomit-frame-pointer" ] 502 cflags += [ "-fomit-frame-pointer" ]
503 503
504 sources = gypi_skia_opts.none_sources 504 sources = gypi_skia_opts.none_sources
505 } else if (current_cpu == "pnacl") {
506 sources = gypi_skia_opts.none_sources
505 } else { 507 } else {
506 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") 508 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp")
507 } 509 }
508 510
509 if (is_android && !is_debug) { 511 if (is_android && !is_debug) {
510 configs -= [ "//build/config/compiler:optimize" ] 512 configs -= [ "//build/config/compiler:optimize" ]
511 configs += [ "//build/config/compiler:optimize_max" ] 513 configs += [ "//build/config/compiler:optimize_max" ]
512 } 514 }
513 515
514 configs -= [ "//build/config/compiler:chromium_code" ] 516 configs -= [ "//build/config/compiler:chromium_code" ]
(...skipping 26 matching lines...) Expand all
541 deps = [ 543 deps = [
542 ":skia", 544 ":skia",
543 "//base", 545 "//base",
544 "//base/test:run_all_unittests", 546 "//base/test:run_all_unittests",
545 "//cc:test_support", # TODO: Fix this test to not depend on cc. 547 "//cc:test_support", # TODO: Fix this test to not depend on cc.
546 "//testing/gtest", 548 "//testing/gtest",
547 "//ui/gfx", 549 "//ui/gfx",
548 "//ui/gfx/geometry", 550 "//ui/gfx/geometry",
549 ] 551 ]
550 } 552 }
OLDNEW
« no previous file with comments | « examples/BUILD.gn ('k') | skia/ext/platform_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698