OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//ui/ozone/ozone.gni") | 8 import("//ui/ozone/ozone.gni") |
9 | 9 |
10 config("flags") { | 10 config("flags") { |
11 defines = [ "TOOLKIT_VIEWS=1" ] | 11 defines = [ "TOOLKIT_VIEWS=1" ] |
12 } | 12 } |
13 | 13 |
| 14 constructor_list_cc_file = "$target_gen_dir/desktop_factory_ozone_list.cc" |
| 15 |
14 component("views") { | 16 component("views") { |
15 all_dependent_configs = [ ":flags" ] | 17 all_dependent_configs = [ ":flags" ] |
16 sources = [ | 18 sources = [ |
17 "accessibility/native_view_accessibility.cc", | 19 "accessibility/native_view_accessibility.cc", |
18 "accessibility/native_view_accessibility.h", | 20 "accessibility/native_view_accessibility.h", |
19 "accessibility/native_view_accessibility_win.cc", | 21 "accessibility/native_view_accessibility_win.cc", |
20 "accessibility/native_view_accessibility_win.h", | 22 "accessibility/native_view_accessibility_win.h", |
21 "accessible_pane_view.cc", | 23 "accessible_pane_view.cc", |
22 "accessible_pane_view.h", | 24 "accessible_pane_view.h", |
23 "animation/bounds_animator.cc", | 25 "animation/bounds_animator.cc", |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 "widget/desktop_aura/desktop_window_tree_host_win.cc", | 603 "widget/desktop_aura/desktop_window_tree_host_win.cc", |
602 "widget/desktop_aura/desktop_window_tree_host_win.h", | 604 "widget/desktop_aura/desktop_window_tree_host_win.h", |
603 ] | 605 ] |
604 } else if (use_ozone) { | 606 } else if (use_ozone) { |
605 sources += [ | 607 sources += [ |
606 "widget/desktop_aura/desktop_factory_ozone.cc", | 608 "widget/desktop_aura/desktop_factory_ozone.cc", |
607 "widget/desktop_aura/desktop_factory_ozone.h", | 609 "widget/desktop_aura/desktop_factory_ozone.h", |
608 "widget/desktop_aura/desktop_screen_ozone.cc", | 610 "widget/desktop_aura/desktop_screen_ozone.cc", |
609 "widget/desktop_aura/desktop_window_tree_host_ozone.cc", | 611 "widget/desktop_aura/desktop_window_tree_host_ozone.cc", |
610 ] | 612 ] |
| 613 |
| 614 deps += [ ":generate_constructor_list" ] |
| 615 sources += [ constructor_list_cc_file ] |
| 616 if (ozone_platform_wayland) { |
| 617 sources += [ |
| 618 "widget/desktop_aura/desktop_factory_ozone_stubs.cc", |
| 619 "widget/desktop_aura/desktop_factory_ozone_stubs.h", |
| 620 "widget/desktop_aura/desktop_factory_ozone_wayland.cc", |
| 621 "widget/desktop_aura/desktop_factory_ozone_wayland.h", |
| 622 "widget/desktop_aura/desktop_screen_wayland.cc", |
| 623 "widget/desktop_aura/desktop_screen_wayland.h", |
| 624 "widget/desktop_aura/desktop_window_tree_host_wayland.cc", |
| 625 "widget/desktop_aura/desktop_window_tree_host_wayland.h", |
| 626 ] |
| 627 deps += [ "//third_party/wayland:wayland_client" ] |
| 628 } |
611 } | 629 } |
612 if (is_linux) { | 630 if (is_linux) { |
613 sources += [ | 631 sources += [ |
614 "style/platform_style_linux.cc", | 632 "style/platform_style_linux.cc", |
615 "widget/desktop_aura/desktop_cursor_loader_updater_auralinux.cc", | 633 "widget/desktop_aura/desktop_cursor_loader_updater_auralinux.cc", |
616 "widget/desktop_aura/desktop_cursor_loader_updater_auralinux.h", | 634 "widget/desktop_aura/desktop_cursor_loader_updater_auralinux.h", |
617 ] | 635 ] |
618 } | 636 } |
619 } | 637 } |
620 } | 638 } |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 "//ui/base:test_support", | 1026 "//ui/base:test_support", |
1009 "//ui/compositor", | 1027 "//ui/compositor", |
1010 "//ui/events:test_support", | 1028 "//ui/events:test_support", |
1011 "//ui/gl:test_support", | 1029 "//ui/gl:test_support", |
1012 "//ui/resources", | 1030 "//ui/resources", |
1013 "//ui/resources:ui_test_pak", | 1031 "//ui/resources:ui_test_pak", |
1014 "//ui/strings", | 1032 "//ui/strings", |
1015 ] | 1033 ] |
1016 } | 1034 } |
1017 } | 1035 } |
| 1036 |
| 1037 # GYP version: ui//views/views.gyp:generate_constructor_list |
| 1038 action("generate_constructor_list") { |
| 1039 script = "../ozone/generate_constructor_list.py" |
| 1040 outputs = [ |
| 1041 constructor_list_cc_file, |
| 1042 ] |
| 1043 platform_list_txt_file = "$target_gen_dir/../ozone/platform_list.txt" |
| 1044 |
| 1045 args = [ |
| 1046 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), |
| 1047 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), |
| 1048 "--namespace=views", |
| 1049 "--typename=DesktopFactoryOzone", |
| 1050 "--include=\"ui/views/widget/desktop_aura/desktop_factory_ozone.h\"", |
| 1051 ] |
| 1052 } |
OLD | NEW |