diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-06-18 17:05:27 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-06-18 17:05:27 -0700 |
commit | e295819e5ded76e405b6d5800401cb5983b4ce10 (patch) | |
tree | 64f28bd7e305081576c5509cdef42126561467c4 /third_party/BUILD.gn | |
parent | aa23c864b84d99f23a82ee8da852e575db981c07 (diff) | |
download | pdfium-e295819e5ded76e405b6d5800401cb5983b4ce10.tar.xz |
Move libopenjpeg to third_party/
We get to delete a whole bunch of fx_foo.c files that did nothing
but #include "foo.c" after defining _CRT_SECURE_NO_WARNINGS. Do this
from the .gyp/.gn files instead.
Also sort some "config"s in .gn file.
R=thestig@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/c7a17bf9cdb0d646aa8b653e6ab2678a1837ed6a
Review URL: https://codereview.chromium.org/1185373010.
Diffstat (limited to 'third_party/BUILD.gn')
-rw-r--r-- | third_party/BUILD.gn | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index 11da543683..be6538e990 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -13,8 +13,8 @@ group("third_party") { source_set("bigint") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ - "//third_party/pdfium:pdfium_config", "//build/config/compiler:no_chromium_code", + "//third_party/pdfium:pdfium_config", ] sources = [ "bigint/BigInteger.cc", @@ -33,8 +33,8 @@ source_set("bigint") { source_set("freetype") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ - "//third_party/pdfium:pdfium_config", "//build/config/compiler:no_chromium_code", + "//third_party/pdfium:pdfium_config", ] defines = [ "FT2_BUILD_LIBRARY" ] sources = [ @@ -196,11 +196,40 @@ source_set("fx_libjpeg") { ] } -source_set("pdfium_base") { +source_set("fx_libopenjpeg") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ + "//build/config/compiler:no_chromium_code", "//third_party/pdfium:pdfium_config", + ] + sources = [ + "libopenjpeg20/bio.c", + "libopenjpeg20/cio.c", + "libopenjpeg20/dwt.c", + "libopenjpeg20/event.c", + "libopenjpeg20/function_list.c", + "libopenjpeg20/image.c", + "libopenjpeg20/invert.c", + "libopenjpeg20/j2k.c", + "libopenjpeg20/jp2.c", + "libopenjpeg20/mct.c", + "libopenjpeg20/mqc.c", + "libopenjpeg20/openjpeg.c", + "libopenjpeg20/opj_clock.c", + "libopenjpeg20/pi.c", + "libopenjpeg20/raw.c", + "libopenjpeg20/t1.c", + "libopenjpeg20/t2.c", + "libopenjpeg20/tcd.c", + "libopenjpeg20/tgt.c", + ] +} + +source_set("pdfium_base") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code", + "//third_party/pdfium:pdfium_config", ] sources = [ "base/logging.h", |