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

Unified Diff: third_party/BUILD.gn

Issue 2779393002: Add an include-paths only jpeg group (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/BUILD.gn
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index f973f84fb70e412cf6f67713ee480ac09b14168c..1fa7ac45b2ad2926fc9e32c6576dec99d252bfbb 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -43,3 +43,17 @@ group("jpeg") {
]
}
}
+
+# This is a meta target that forwards include paths only to the system's
+# libjpeg, third_party/libjpeg, or third_party/libjpeg_turbo depending on the
+# build args declared in this file. This is needed, rarely, for targets that
+# need to reference libjpeg without explicitly building it.
+group("jpeg_includes") {
+ if (use_system_libjpeg) {
+ public_configs = [ ":system_libjpeg_config" ]
+ } else if (use_libjpeg_turbo) {
+ public_configs = [ "//third_party/libjpeg_turbo:libjpeg_config" ]
+ } else {
+ public_configs = [ "//third_party/libjpeg:libjpeg_config" ]
+ }
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698