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

Unified Diff: ui/ozone/ozone.gni

Issue 409163004: ozone: Fix GN build for ozone_egl_demo, ozone_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove media/BUILD.gn diffs Created 6 years, 5 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 | « ui/ozone/demo/BUILD.gn ('k') | ui/ozone/platform/caca/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/ozone.gni
diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni
index a777f59a8618a33ddee9a81b5279f6a755f9b513..867813c50af2a6abb70b274ad903a74f19e9ef3e 100644
--- a/ui/ozone/ozone.gni
+++ b/ui/ozone/ozone.gni
@@ -2,17 +2,30 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//build/config/ui.gni")
+declare_args() {
+ # Select platforms automatically. Turn this off for manual control.
+ ozone_auto_platforms = true
+}
-if (use_ozone) {
- # Enable built-in ozone platforms if ozone is enabled.
- ozone_platform_caca = false
- ozone_platform_dri = true
- ozone_platform_ozonex = false
- ozone_platform_test = true
-} else {
+declare_args() {
+ # The platform that will be active by default.
+ ozone_platform = ""
+
+ # Enable individual platforms.
ozone_platform_caca = false
ozone_platform_dri = false
- ozone_platform_ozonex = false
+ ozone_platform_egltest = false
+ ozone_platform_gbm = false
ozone_platform_test = false
+
+ if (ozone_auto_platforms) {
+ # Use test as the default platform.
+ ozone_platform = "test"
+
+ # Build all platforms whose deps are in install-build-deps.sh.
+ # Only these platforms will be compile tested by buildbots.
+ ozone_platform_dri = true
+ ozone_platform_test = true
+ ozone_platform_egltest = true
+ }
}
« no previous file with comments | « ui/ozone/demo/BUILD.gn ('k') | ui/ozone/platform/caca/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698