Chromium Code Reviews| Index: BUILD.gn |
| diff --git a/BUILD.gn b/BUILD.gn |
| index 7f0d16e7b791e2caf0dec07d3227faf984ab3afc..c0467d04c375cd6238b676dff56542062d87827f 100644 |
| --- a/BUILD.gn |
| +++ b/BUILD.gn |
| @@ -20,6 +20,7 @@ declare_args() { |
| skia_use_libpng = true |
| skia_use_libwebp = !is_fuchsia |
| skia_use_mesa = false |
| + skia_use_raw = !is_win |
| skia_use_sfntly = !is_fuchsia && !is_win # TODO: icu on Windows, re-enable this. |
| skia_use_zlib = true |
| @@ -284,9 +285,13 @@ template("optional") { |
| [ |
| "public_defines", |
| "sources_when_disabled", |
| + "configs_to_remove", |
| ]) |
| all_dependent_configs = [ ":" + target_name + "_public" ] |
| configs += skia_library_configs |
| + if (defined(invoker.configs_to_remove)) { |
| + configs -= invoker.configs_to_remove |
| + } |
| } |
| } else { |
| source_set(target_name) { |
| @@ -298,6 +303,7 @@ template("optional") { |
| "libs", |
| "sources", |
| "sources_when_disabled", |
| + "configs_to_remove", |
| ]) |
| if (defined(invoker.sources_when_disabled)) { |
| sources = invoker.sources_when_disabled |
| @@ -442,6 +448,24 @@ optional("png") { |
| ] |
| } |
| +optional("raw") { |
| + enabled = skia_use_raw && skia_use_libjpeg_turbo && skia_use_zlib |
| + public_defines = [ "SK_CODEC_DECODES_RAW" ] |
| + |
| + deps = [ |
| + "//third_party/dng_sdk", |
| + "//third_party/libjpeg-turbo:libjpeg", |
| + "//third_party/piex", |
| + ] |
| + |
| + configs_to_remove = [ "//gn:no_exceptions" ] |
|
mtklein_C
2016/10/31 14:38:03
Let's add a note why?
# SkRawCodec catches any ex
scroggo
2016/10/31 14:58:58
Done.
|
| + |
| + sources = [ |
| + "src/codec/SkRawAdapterCodec.cpp", |
| + "src/codec/SkRawCodec.cpp", |
| + ] |
| +} |
| + |
| optional("typeface_freetype") { |
| enabled = skia_use_freetype |
| @@ -501,6 +525,7 @@ component("skia") { |
| ":none", |
| ":pdf", |
| ":png", |
| + ":raw", |
| ":sse2", |
| ":sse41", |
| ":sse42", |