summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-09-19 15:27:10 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-09-20 12:36:04 +0000
commit61674c854cdd8cfdb88a1a4baef379f24ba0cf3a (patch)
tree4f5a1f46c7feb64c8d9b089dc63da054d4643cf7
parent61f2f4812e28caa0c62c2e6899ed490fc8ad9e19 (diff)
downloadpdfium-61674c854cdd8cfdb88a1a4baef379f24ba0cf3a.tar.xz
Get system lcms2 config using pkg-config.
BUG=chromium:765914 Change-Id: I187507cd87ff5d88be37ce07216ffa3d7ff7bb83 Reviewed-on: https://pdfium-review.googlesource.com/14411 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
-rw-r--r--third_party/BUILD.gn12
1 files changed, 7 insertions, 5 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index cea96d02a1..3411b656ef 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/arm.gni")
+import("//build/config/linux/pkg_config.gni")
import("//build_overrides/build.gni")
import("../pdfium.gni")
@@ -337,14 +338,15 @@ group("zlib") {
}
}
-config("system_lcms2_config") {
- libs = [ "lcms2" ]
- defines = [ "USE_SYSTEM_LCMS2" ]
+if (use_system_lcms2) {
+ pkg_config("lcms2_from_pkgconfig") {
+ defines = [ "USE_SYSTEM_LCMS2" ]
+ packages = [ "lcms2" ]
+ }
}
-
group("lcms2") {
if (use_system_lcms2) {
- public_configs = [ ":system_lcms2_config" ]
+ public_configs = [ ":lcms2_from_pkgconfig" ]
} else {
public_deps = [
":fx_lcms2",