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

Side by Side Diff: BUILD.gn

Issue 2323353002: GN: port a few missing Android bits from GYP. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//gn/shared_sources.gni") 6 import("//gn/shared_sources.gni")
7 7
8 declare_args() { 8 declare_args() {
9 skia_enable_tools = !is_fuchsia && !is_component_build 9 skia_enable_tools = !is_fuchsia && !is_component_build
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 "src/ports", 71 "src/ports",
72 "src/sfnt", 72 "src/sfnt",
73 "src/sksl", 73 "src/sksl",
74 "src/utils", 74 "src/utils",
75 "src/utils/win", 75 "src/utils/win",
76 "third_party/etc1", 76 "third_party/etc1",
77 "third_party/ktx", 77 "third_party/ktx",
78 ] 78 ]
79 79
80 defines = [ "SK_GAMMA_APPLY_TO_A8" ] 80 defines = [ "SK_GAMMA_APPLY_TO_A8" ]
81 if (is_android) {
82 defines += [
83 "SK_GAMMA_EXPONENT=1.4",
84 "SK_GAMMA_CONTRAST=0.0",
85 ]
86 }
81 } 87 }
82 88
83 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs. 89 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs.
84 config("skia_library") { 90 config("skia_library") {
85 visibility = [ ":*" ] 91 visibility = [ ":*" ]
86 defines = [ "SKIA_IMPLEMENTATION=1" ] 92 defines = [ "SKIA_IMPLEMENTATION=1" ]
87 } 93 }
88 94
89 skia_library_configs = [ 95 skia_library_configs = [
90 ":skia_public", 96 ":skia_public",
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 608
603 test_lib("tool_utils") { 609 test_lib("tool_utils") {
604 public_include_dirs = [ 610 public_include_dirs = [
605 "tools", 611 "tools",
606 "tools/debugger", 612 "tools/debugger",
607 "tools/timer", 613 "tools/timer",
608 ] 614 ]
609 sources = [ 615 sources = [
610 "src/images/SkForceLinking.cpp", 616 "src/images/SkForceLinking.cpp",
611 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to tools? 617 "src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to tools?
618 "tools/AndroidSkDebugToStdOut.cpp",
612 "tools/CrashHandler.cpp", 619 "tools/CrashHandler.cpp",
613 "tools/LsanSuppressions.cpp", 620 "tools/LsanSuppressions.cpp",
614 "tools/ProcStats.cpp", 621 "tools/ProcStats.cpp",
615 "tools/Resources.cpp", 622 "tools/Resources.cpp",
616 "tools/ThermalManager.cpp", 623 "tools/ThermalManager.cpp",
617 "tools/UrlDataManager.cpp", 624 "tools/UrlDataManager.cpp",
618 "tools/debugger/SkDebugCanvas.cpp", 625 "tools/debugger/SkDebugCanvas.cpp",
619 "tools/debugger/SkDrawCommand.cpp", 626 "tools/debugger/SkDrawCommand.cpp",
620 "tools/debugger/SkJsonWriteBuffer.cpp", 627 "tools/debugger/SkJsonWriteBuffer.cpp",
621 "tools/debugger/SkObjectParser.cpp", 628 "tools/debugger/SkObjectParser.cpp",
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 "tools/using_skia_and_harfbuzz.cpp", 792 "tools/using_skia_and_harfbuzz.cpp",
786 ] 793 ]
787 deps = [ 794 deps = [
788 ":skia", 795 ":skia",
789 "//third_party/harfbuzz", 796 "//third_party/harfbuzz",
790 ] 797 ]
791 testonly = true 798 testonly = true
792 } 799 }
793 } 800 }
794 } 801 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698