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

Side by Side Diff: BUILD.gn

Issue 2200833010: GN: build sfntly, icu, harfbuzz (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-08-03 (Wednesday) 17:32:27 EDT Created 4 years, 4 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 | gn/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 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 } 7 }
8 8
9 skia_public_includes = [ 9 skia_public_includes = [
10 "include/android", 10 "include/android",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ] 58 ]
59 59
60 defines = [ 60 defines = [
61 "SK_GAMMA_APPLY_TO_A8", 61 "SK_GAMMA_APPLY_TO_A8",
62 62
63 "SK_HAS_GIF_LIBRARY", 63 "SK_HAS_GIF_LIBRARY",
64 "SK_HAS_JPEG_LIBRARY", 64 "SK_HAS_JPEG_LIBRARY",
65 "SK_HAS_PNG_LIBRARY", 65 "SK_HAS_PNG_LIBRARY",
66 "SK_HAS_WEBP_LIBRARY", 66 "SK_HAS_WEBP_LIBRARY",
67 67
68 # TODO(halcanary): make this the default; this is the value Android uses.
69 "SK_SFNTLY_SUBSETTER=\"sample/chromium/font_subsetter.h\"",
70
68 "TURBO_HAS_565", 71 "TURBO_HAS_565",
69 "TURBO_HAS_CROP", 72 "TURBO_HAS_CROP",
70 "TURBO_HAS_SKIP", 73 "TURBO_HAS_SKIP",
71 ] 74 ]
72 } 75 }
73 76
74 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs. 77 # Any code that's linked into Skia-the-library should use this config via += ski a_library_configs.
75 config("skia_library") { 78 config("skia_library") {
76 visibility = [ ":*" ] 79 visibility = [ ":*" ]
77 defines = [ "SKIA_IMPLEMENTATION=1" ] 80 defines = [ "SKIA_IMPLEMENTATION=1" ]
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 167
165 deps = [ 168 deps = [
166 ":opts_avx", 169 ":opts_avx",
167 ":opts_sse41", 170 ":opts_sse41",
168 ":opts_ssse3", 171 ":opts_ssse3",
169 "//third_party/expat", 172 "//third_party/expat",
170 "//third_party/giflib", 173 "//third_party/giflib",
171 "//third_party/libjpeg_turbo", 174 "//third_party/libjpeg_turbo",
172 "//third_party/libpng", 175 "//third_party/libpng",
173 "//third_party/libwebp", 176 "//third_party/libwebp",
177 "//third_party/sfntly",
174 "//third_party/zlib", 178 "//third_party/zlib",
175 ] 179 ]
176 180
177 libs = [ "pthread" ] 181 libs = [ "pthread" ]
178 182
179 sources = [] 183 sources = []
180 sources += core_gypi.sources 184 sources += core_gypi.sources
181 sources += effects_gypi.sources 185 sources += effects_gypi.sources
182 sources += gpu_gypi.skgpu_sources 186 sources += gpu_gypi.skgpu_sources
183 sources += opts_gypi.sse2_sources 187 sources += opts_gypi.sse2_sources
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 "tools/gpu/gl/debug/GrProgramObj.cpp", 361 "tools/gpu/gl/debug/GrProgramObj.cpp",
358 "tools/gpu/gl/debug/GrShaderObj.cpp", 362 "tools/gpu/gl/debug/GrShaderObj.cpp",
359 "tools/gpu/gl/debug/GrTextureObj.cpp", 363 "tools/gpu/gl/debug/GrTextureObj.cpp",
360 "tools/gpu/gl/debug/GrTextureUnitObj.cpp", 364 "tools/gpu/gl/debug/GrTextureUnitObj.cpp",
361 "tools/gpu/gl/null/NullGLTestContext.cpp", 365 "tools/gpu/gl/null/NullGLTestContext.cpp",
362 ] 366 ]
363 libs = [] 367 libs = []
364 368
365 if (is_linux) { 369 if (is_linux) {
366 sources += [ 370 sources += [
367 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp", 371 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
368 "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp", 372 "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp",
369 ] 373 ]
370 libs += [ 374 libs += [
371 "GL", 375 "GL",
372 "GLU", 376 "GLU",
373 "X11", 377 "X11",
374 ] 378 ]
375 } else if (is_mac) { 379 } else if (is_mac) {
376 sources += [ 380 sources += [
377 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp", 381 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
378 "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp", 382 "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp",
379 ] 383 ]
380 libs += [ "OpenGL.framework" ] 384 libs += [ "OpenGL.framework" ]
381 } 385 }
382 } 386 }
383 387
384 test_lib("flags") { 388 test_lib("flags") {
385 public_include_dirs = [ "tools/flags" ] 389 public_include_dirs = [ "tools/flags" ]
386 sources = [ 390 sources = [
387 "tools/flags/SkCommandLineFlags.cpp", 391 "tools/flags/SkCommandLineFlags.cpp",
388 "tools/flags/SkCommonFlags.cpp", 392 "tools/flags/SkCommonFlags.cpp",
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 ], 455 ],
452 "list lines", 456 "list lines",
453 []) 457 [])
454 458
455 test_lib("tests") { 459 test_lib("tests") {
456 public_include_dirs = [ "tests" ] 460 public_include_dirs = [ "tests" ]
457 sources = tests_sources - [ 461 sources = tests_sources - [
458 rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only 462 rebase_path("tests/FontMgrAndroidParserTest.cpp"), # Android only
459 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main 463 rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
460 rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete 464 rebase_path("tests/RTConfRegistryTest.cpp"), # TODO: delete
461 rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work 465 rebase_path("tests/SkSLErrorTest.cpp"), # TODO: make work
462 rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work 466 rebase_path("tests/SkSLGLSLTest.cpp"), # TODO: make work
463 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile 467 rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
464 rebase_path("tests/skia_test.cpp"), # alternate main 468 rebase_path("tests/skia_test.cpp"), # alternate main
465 ] 469 ]
466 deps = [ 470 deps = [
467 ":flags", 471 ":flags",
468 ":gpu_tool_utils", 472 ":gpu_tool_utils",
469 ":skia", 473 ":skia",
470 ":tool_utils", 474 ":tool_utils",
471 "//third_party/libpng", 475 "//third_party/libpng",
472 "//third_party/zlib", 476 "//third_party/zlib",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 ":bench", 541 ":bench",
538 ":flags", 542 ":flags",
539 ":gm", 543 ":gm",
540 ":gpu_tool_utils", 544 ":gpu_tool_utils",
541 ":skia", 545 ":skia",
542 ":tool_utils", 546 ":tool_utils",
543 "//third_party/jsoncpp", 547 "//third_party/jsoncpp",
544 ] 548 ]
545 testonly = true 549 testonly = true
546 } 550 }
551
552 executable("sktexttopdf") {
553 sources = [
554 "tools/SkShaper_harfbuzz.cpp",
555 "tools/using_skia_and_harfbuzz.cpp",
556 ]
557 deps = [
558 ":skia",
559 "//third_party/harfbuzz",
560 ]
561 testonly = true
562 }
547 } 563 }
OLDNEW
« no previous file with comments | « no previous file | gn/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698