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

Unified Diff: ui/ozone/ozone.gyp

Issue 44053005: Implement --ozone-platform flag to select OzonePlatform implementation at runtime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 2 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/generate_ozone_platform_list.py ('k') | ui/ozone/ozone_platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/ozone.gyp
diff --git a/ui/ozone/ozone.gyp b/ui/ozone/ozone.gyp
index 32008b73cf6c7891268f8aae96a20284efe89227..ee5db69d8983d0e462b73d85e77f772ff7a59e3c 100644
--- a/ui/ozone/ozone.gyp
+++ b/ui/ozone/ozone.gyp
@@ -5,6 +5,7 @@
{
'variables': {
'chromium_code': 1,
+ 'external_ozone_platforms': [],
'external_ozone_platform_files': [],
'external_ozone_platform_deps': [],
},
@@ -22,7 +23,14 @@
'defines': [
'OZONE_IMPLEMENTATION',
],
+ 'variables': {
+ 'platform_list_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/ozone_platform_list.cc',
+ 'ozone_platforms': [
+ '<@(external_ozone_platforms)',
+ ],
+ },
'sources': [
+ '<(platform_list_file)',
'ozone_platform.cc',
'ozone_platform.h',
'ozone_switches.cc',
@@ -33,13 +41,46 @@
'platform/test/ozone_platform_test.h',
'<@(external_ozone_platform_files)',
],
+ 'actions': [
+ {
+ 'action_name': 'generate_ozone_platform_list',
+ 'variables': {
+ 'generator_path': 'generate_ozone_platform_list.py',
+ },
+ 'inputs': [
+ '<(generator_path)',
+ ],
+ 'outputs': [
+ '<(platform_list_file)',
+ ],
+ 'action': [
+ 'python',
+ '<(generator_path)',
+ '--output_file=<(platform_list_file)',
+ '--default=<(ozone_platform)',
+ '<@(ozone_platforms)',
+ ],
+ },
+ ],
'conditions': [
- ['ozone_platform != "dri"', {
+ ['<(ozone_platform_dri)==1', {
+ 'variables': {
+ 'ozone_platforms': [
+ 'dri'
+ ]
+ }
+ }, { # ozone_platform_dri==0
'sources/': [
['exclude', '^platform/dri/'],
]
}],
- ['ozone_platform != "test"', {
+ ['<(ozone_platform_test)==1', {
+ 'variables': {
+ 'ozone_platforms': [
+ 'test'
+ ],
+ }
+ }, { # ozone_platform_test==0
'sources/': [
['exclude', '^platform/test/'],
]
« no previous file with comments | « ui/ozone/generate_ozone_platform_list.py ('k') | ui/ozone/ozone_platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698