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

Unified Diff: ui/views/views.gyp

Issue 2027943002: [WIP] Make content_shell run under Wayland Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on tonikitoo's CL (included) Created 4 years, 6 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
Index: ui/views/views.gyp
diff --git a/ui/views/views.gyp b/ui/views/views.gyp
index 2dbaf6099fa75c954579119fd424f4b052bf2d53..f72b3668b6b163a1c2a596bf23fb40956013468d 100644
--- a/ui/views/views.gyp
+++ b/ui/views/views.gyp
@@ -492,6 +492,14 @@
'widget/desktop_aura/desktop_screen_ozone.cc',
'widget/desktop_aura/desktop_window_tree_host_ozone.cc',
],
+ 'views_desktop_aura_ozone_wayland_sources': [
+ 'widget/desktop_aura/desktop_factory_ozone_wayland.cc',
+ 'widget/desktop_aura/desktop_factory_ozone_wayland.h',
+ 'widget/desktop_aura/desktop_screen_wayland.cc',
+ 'widget/desktop_aura/desktop_screen_wayland.h',
+ 'widget/desktop_aura/desktop_window_tree_host_wayland.cc',
+ 'widget/desktop_aura/desktop_window_tree_host_wayland.h',
+ ],
'views_test_support_sources': [
'animation/test/flood_fill_ink_drop_ripple_test_api.cc',
'animation/test/flood_fill_ink_drop_ripple_test_api.h',
@@ -771,6 +779,7 @@
['use_ozone==1', {
'dependencies': [
'../ozone/ozone.gyp:ozone',
+ '../../third_party/wayland/wayland.gyp:wayland_client',
],
}],
['use_x11==1', {
@@ -811,7 +820,46 @@
'sources': [ '<@(views_desktop_aura_win_sources)' ],
}],
['use_ozone==1', {
- 'sources': [ '<@(views_desktop_aura_ozone_sources)' ],
+ 'sources': [
+ '<@(views_desktop_aura_ozone_sources)',
+ '<(desktop_factory_ozone_list_cc_file)',
+ ],
+
+ 'conditions': [
+ ['ozone_platform_wayland == 1', {
+ 'sources': [ '<@(views_desktop_aura_ozone_wayland_sources)' ],
+
+ }],
+ ],
+ 'variables': {
+ 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
+ 'desktop_factory_ozone_list_cc_file': '<(INTERMEDIATE_DIR)/ui/views/desktop_factory_ozone_list.cc',
+ },
+ 'actions': [
+ {
+ # GN version: //ui/views:generate_constructor_list
+ 'action_name': 'generate_constructor_list',
+ 'variables': {
+ 'generator_path': '../ozone/generate_constructor_list.py',
+ },
+ 'inputs': [
+ '<(generator_path)',
+ '<(platform_list_txt_file)',
+ ],
+ 'outputs': [
+ '<(desktop_factory_ozone_list_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ '<(generator_path)',
+ '--platform_list=<(platform_list_txt_file)',
+ '--output_cc=<(desktop_factory_ozone_list_cc_file)',
+ '--namespace=views',
+ '--typename=DesktopFactoryOzone',
+ '--include="ui/views/widget/desktop_aura/desktop_factory_ozone.h"',
+ ],
+ },
+ ],
}],
],
}],

Powered by Google App Engine
This is Rietveld 408576698