Commit 3bdb0994 authored by spang@chromium.org's avatar spang@chromium.org

ozone: Add ozone_auto_platforms setting

Each time we add a new platform in the default build, products that want
only a single platform have to add an entry to GYP_DEFINES to turn it back
off.

This introduces a new setting, ozone_auto_platforms. If this is turned off
in GYP_DEFINES, we'll only build platforms that are explicitly enabled.

TEST=runhooks
BUG=none

Review URL: https://codereview.chromium.org/288273002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271101 0039d316-1c4b-4281-b951-d872f2087c98
parent cba5e2be
...@@ -561,6 +561,10 @@ ...@@ -561,6 +561,10 @@
# Enable hole punching for the protected video. # Enable hole punching for the protected video.
'video_hole%': 0, 'video_hole%': 0,
# Automatically select platforms under ozone. Turn this off to
# build only explicitly selected platforms.
'ozone_auto_platforms%': 1,
'conditions': [ 'conditions': [
# A flag for POSIX platforms # A flag for POSIX platforms
['OS=="win"', { ['OS=="win"', {
...@@ -1381,6 +1385,16 @@ ...@@ -1381,6 +1385,16 @@
# Support ChromeOS touchpad gestures with ozone. # Support ChromeOS touchpad gestures with ozone.
'use_evdev_gestures%': 0, 'use_evdev_gestures%': 0,
# Default ozone platform (if no --ozone-platform flag).
'ozone_platform%': "",
# Ozone platforms to include in the build.
'ozone_platform_caca%': 0,
'ozone_platform_dri%': 0,
'ozone_platform_egltest%': 0,
'ozone_platform_ozonex%': 0,
'ozone_platform_test%': 0,
'conditions': [ 'conditions': [
# Enable the Syzygy optimization step for the official builds. # Enable the Syzygy optimization step for the official builds.
['OS=="win" and buildtype=="Official" and syzyasan!=1', { ['OS=="win" and buildtype=="Official" and syzyasan!=1', {
...@@ -2109,22 +2123,20 @@ ...@@ -2109,22 +2123,20 @@
'use_brlapi%': 1, 'use_brlapi%': 1,
}], }],
['use_ozone==1', { ['use_ozone==1 and ozone_auto_platforms==1', {
# This is the default platform # Use test as the default platform.
'ozone_platform%': "test", 'ozone_platform%': 'test',
# Enable built-in ozone platforms if ozone is enabled. # Build all platforms whose deps are in install-build-deps.sh.
'ozone_platform_caca%': 0, # Only these platforms will be compile tested by buildbots.
'ozone_platform_dri%': 1, 'ozone_platform_dri%': 1,
'ozone_platform_egltest%': 1,
'ozone_platform_ozonex%': 0,
'ozone_platform_test%': 1, 'ozone_platform_test%': 1,
}, { # use_ozone==0 'ozone_platform_egltest%': 1,
'ozone_platform_caca%': 0, }],
'ozone_platform_dri%': 0,
'ozone_platform_egltest%': 0, ['use_ozone==1 and ozone_auto_platforms==1 and chromeos==1', {
'ozone_platform_ozonex%': 0, # Use dri as the default platform.
'ozone_platform_test%': 0, 'ozone_platform%': 'dri',
}], }],
['desktop_linux==1 and use_aura==1 and use_x11==1', { ['desktop_linux==1 and use_aura==1 and use_x11==1', {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment