diff options
author | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 20:44:16 +0000 |
---|---|---|
committer | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 20:44:16 +0000 |
commit | 4c5e36be50f207a239195aba7ba3f036d7f3980b (patch) | |
tree | 7495d9c7f6c9947124d209f76a4a386080cbbe9a /ui/ozone/ozone.gni | |
parent | bc335801071e5e07c2bb0f45992fb3a8f8010198 (diff) | |
download | chromium_src-4c5e36be50f207a239195aba7ba3f036d7f3980b.zip chromium_src-4c5e36be50f207a239195aba7ba3f036d7f3980b.tar.gz chromium_src-4c5e36be50f207a239195aba7ba3f036d7f3980b.tar.bz2 |
ozone: Fix GN build for ozone_egl_demo, ozone_unittests
This fixes the GN build for the ui/ozone component (and tests). The
following build should work going forward:
gn gen out_gn_ozone --args="use_ozone=true"
ninja -C out_gn_ozone -j1000 -k50 ozone_egl_demo ozone_unittests
BUG=396316
TEST=compile & run ozone_egl_demo, ozone_unittests
TBR=darin
Review URL: https://codereview.chromium.org/409163004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285362 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ozone/ozone.gni')
-rw-r--r-- | ui/ozone/ozone.gni | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni index a777f59..867813c 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 + } } |