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

Unified Diff: ui/gfx/BUILD.gn

Issue 285103002: Add GN build for parts of gpu and ozone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « tools/gn/builder.cc ('k') | ui/gfx/ozone/BUILD.gn » ('j') | ui/ozone/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/BUILD.gn
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
index ea1a2defdd088917bc114822f6655e96b78ba3e3..4270699773caccf6d5c81be4de234615c4253d5d 100644
--- a/ui/gfx/BUILD.gn
+++ b/ui/gfx/BUILD.gn
@@ -8,6 +8,9 @@ if (is_android) {
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
}
+if (use_ozone) {
+ import("//ui/ozone/ozone.gni")
+}
# Several targets want to include this header file, and some of them are
# child dependencies of "gfx". Therefore, we separate it out here so multiple
@@ -336,7 +339,7 @@ component("gfx") {
"ozone/overlay_candidates_ozone.h",
]
}
- if (ozone_platform_dri) {
+ if (use_ozone && ozone_platform_dri) {
configs += [ "//build/config/linux:dridrm" ]
} else {
sources -= [
« no previous file with comments | « tools/gn/builder.cc ('k') | ui/gfx/ozone/BUILD.gn » ('j') | ui/ozone/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698