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

Side by Side Diff: BUILD.gn

Issue 2296803002: GN: add sksl (Closed)
Patch Set: add tests 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 | gyp/sksl.gypi » ('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 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_enable_tools = !is_fuchsia && !is_component_build 7 skia_enable_tools = !is_fuchsia && !is_component_build
8 8
9 skia_use_expat = true 9 skia_use_expat = true
10 skia_use_fontconfig = is_linux 10 skia_use_fontconfig = is_linux
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 "src/fonts", 61 "src/fonts",
62 "src/gpu", 62 "src/gpu",
63 "src/image", 63 "src/image",
64 "src/images", 64 "src/images",
65 "src/lazy", 65 "src/lazy",
66 "src/opts", 66 "src/opts",
67 "src/pathops", 67 "src/pathops",
68 "src/pdf", 68 "src/pdf",
69 "src/ports", 69 "src/ports",
70 "src/sfnt", 70 "src/sfnt",
71 "src/sksl",
71 "src/utils", 72 "src/utils",
72 "src/utils/win", 73 "src/utils/win",
73 "third_party/etc1", 74 "third_party/etc1",
74 "third_party/ktx", 75 "third_party/ktx",
75 ] 76 ]
76 77
77 defines = [ "SK_GAMMA_APPLY_TO_A8" ] 78 defines = [ "SK_GAMMA_APPLY_TO_A8" ]
78 } 79 }
79 80
80 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs. 81 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 128
128 pdf_gypi = exec_script("gn/gypi_to_gn.py", 129 pdf_gypi = exec_script("gn/gypi_to_gn.py",
129 [ 130 [
130 rebase_path("gyp/pdf.gypi"), 131 rebase_path("gyp/pdf.gypi"),
131 "--replace=<(skia_include_path)=include", 132 "--replace=<(skia_include_path)=include",
132 "--replace=<(skia_src_path)=src", 133 "--replace=<(skia_src_path)=src",
133 ], 134 ],
134 "scope", 135 "scope",
135 [ "gyp/pdf.gypi" ]) 136 [ "gyp/pdf.gypi" ])
136 137
138 sksl_gypi = exec_script("gn/gypi_to_gn.py",
139 [
140 rebase_path("gyp/sksl.gypi"),
141 "--replace=<(skia_include_path)=include",
142 "--replace=<(skia_src_path)=src",
143 ],
144 "scope",
145 [ "gyp/sksl.gypi" ])
146
137 utils_gypi = exec_script("gn/gypi_to_gn.py", 147 utils_gypi = exec_script("gn/gypi_to_gn.py",
138 [ 148 [
139 rebase_path("gyp/utils.gypi"), 149 rebase_path("gyp/utils.gypi"),
140 "--replace=<(skia_include_path)=include", 150 "--replace=<(skia_include_path)=include",
141 "--replace=<(skia_src_path)=src", 151 "--replace=<(skia_src_path)=src",
142 ], 152 ],
143 "scope", 153 "scope",
144 [ "gyp/utils.gypi" ]) 154 [ "gyp/utils.gypi" ])
145 155
146 # Use for CPU-specific Skia code that needs particular compiler flags. 156 # Use for CPU-specific Skia code that needs particular compiler flags.
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 ":ssse3", 413 ":ssse3",
404 ":typeface_freetype", 414 ":typeface_freetype",
405 ":webp", 415 ":webp",
406 ":xml", 416 ":xml",
407 ] 417 ]
408 418
409 sources = [] 419 sources = []
410 sources += core_gypi.sources 420 sources += core_gypi.sources
411 sources += effects_gypi.sources 421 sources += effects_gypi.sources
412 sources += gpu_gypi.skgpu_sources 422 sources += gpu_gypi.skgpu_sources
423 sources += sksl_gypi.sources
413 sources += utils_gypi.sources 424 sources += utils_gypi.sources
414 sources += [ 425 sources += [
415 "src/android/SkBitmapRegionCodec.cpp", 426 "src/android/SkBitmapRegionCodec.cpp",
416 "src/android/SkBitmapRegionDecoder.cpp", 427 "src/android/SkBitmapRegionDecoder.cpp",
417 "src/codec/SkAndroidCodec.cpp", 428 "src/codec/SkAndroidCodec.cpp",
418 "src/codec/SkBmpCodec.cpp", 429 "src/codec/SkBmpCodec.cpp",
419 "src/codec/SkBmpMaskCodec.cpp", 430 "src/codec/SkBmpMaskCodec.cpp",
420 "src/codec/SkBmpRLECodec.cpp", 431 "src/codec/SkBmpRLECodec.cpp",
421 "src/codec/SkBmpStandardCodec.cpp", 432 "src/codec/SkBmpStandardCodec.cpp",
422 "src/codec/SkCodec.cpp", 433 "src/codec/SkCodec.cpp",
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 "*.c*", 692 "*.c*",
682 rebase_path("tests"), 693 rebase_path("tests"),
683 ], 694 ],
684 "list lines", 695 "list lines",
685 []) 696 [])
686 697
687 test_lib("tests") { 698 test_lib("tests") {
688 public_include_dirs = [ "tests" ] 699 public_include_dirs = [ "tests" ]
689 sources = tests_sources - [ 700 sources = tests_sources - [
690 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main 701 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
691 rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
692 rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work
693 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile 702 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
694 rebase_path("tests/skia_test.cpp"), # alternate main 703 rebase_path("tests/skia_test.cpp"), # alternate main
695 ] 704 ]
696 if (!fontmgr_android_enabled) { 705 if (!fontmgr_android_enabled) {
697 sources -= [ rebase_path("tests/FontMgrAndroidParserTest.cpp") ] 706 sources -= [ rebase_path("tests/FontMgrAndroidParserTest.cpp") ]
698 } 707 }
699 deps = [ 708 deps = [
700 ":experimental_svg_model", 709 ":experimental_svg_model",
701 ":flags", 710 ":flags",
702 ":gpu_tool_utils", 711 ":gpu_tool_utils",
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 "tools/using_skia_and_harfbuzz.cpp", 820 "tools/using_skia_and_harfbuzz.cpp",
812 ] 821 ]
813 deps = [ 822 deps = [
814 ":skia", 823 ":skia",
815 "//third_party/harfbuzz", 824 "//third_party/harfbuzz",
816 ] 825 ]
817 testonly = true 826 testonly = true
818 } 827 }
819 } 828 }
820 } 829 }
OLDNEW
« no previous file with comments | « no previous file | gyp/sksl.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698