summaryrefslogtreecommitdiff
path: root/third_party/BUILD.gn
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-05-24 08:40:49 +0200
committerChromium commit bot <commit-bot@chromium.org>2017-05-24 23:48:30 +0000
commit0fafb4fc5009418bff9578f8da940a980ee5b28d (patch)
tree3e79229c223e41eede4773124469fce6a07f51e6 /third_party/BUILD.gn
parentdc8a2b7606c2c6c12d5cfb280dfb49128c1a60ab (diff)
downloadpdfium-0fafb4fc5009418bff9578f8da940a980ee5b28d.tar.xz
core: allow building against system lcms2chromium/3111
In a way similar to the existing USE_SYSTEM_ZLIB. The default is of course still the bundled lcms2. Change-Id: I219b50854b3c7870b0f4d94574ba39f6cb26f556 Reviewed-on: https://pdfium-review.googlesource.com/5870 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'third_party/BUILD.gn')
-rw-r--r--third_party/BUILD.gn15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 4e12741f69..6d093f2249 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -336,6 +336,21 @@ group("zlib") {
}
}
+config("system_lcms2_config") {
+ libs = [ "lcms2" ]
+ defines = [ "USE_SYSTEM_LCMS2" ]
+}
+
+group("lcms2") {
+ if (use_system_lcms2) {
+ public_configs = [ ":system_lcms2_config" ]
+ } else {
+ public_deps = [
+ ":fx_lcms2",
+ ]
+ }
+}
+
config("fx_libopenjpeg_warnings") {
visibility = [ ":*" ]
if (is_win) {