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
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
7 component("views_examples_lib") {
15 "checkbox_example.cc",
17 "combobox_example.cc",
19 "double_split_view_example.cc",
20 "double_split_view_example.h",
23 "example_combobox_model.cc",
24 "example_combobox_model.h",
33 "message_box_example.cc",
34 "message_box_example.h",
35 "multiline_example.cc",
36 "multiline_example.h",
37 "progress_bar_example.cc",
38 "progress_bar_example.h",
39 "radio_button_example.cc",
40 "radio_button_example.h",
41 "scroll_view_example.cc",
42 "scroll_view_example.h",
43 "single_split_view_example.cc",
44 "single_split_view_example.h",
47 "tabbed_pane_example.cc",
48 "tabbed_pane_example.h",
53 "textfield_example.cc",
54 "textfield_example.h",
55 "throbber_example.cc",
57 "tree_view_example.cc",
58 "tree_view_example.h",
59 "views_examples_export.h",
64 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
65 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
67 defines = [ "VIEWS_EXAMPLES_IMPLEMENTATION" ]
78 "//ui/resources:ui_test_pak",
83 deps += [ "//third_party/wtl" ]
87 deps += [ "//ui/aura" ]
91 executable("views_examples_exe") {
99 ":views_examples_lib",
104 "//ui/compositor:test_support",
107 "//ui/resources:ui_test_pak",
109 "//ui/views:test_support",
114 deps += [ "//ui/aura" ]
117 deps += [ "//ui/gfx/x" ]
121 component("views_examples_with_content_lib") {
124 "examples_window_with_content.cc",
125 "examples_window_with_content.h",
126 "views_examples_with_content_export.h",
127 "webview_example.cc",
131 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
134 ":views_examples_lib",
140 "//ui/views/controls/webview",
145 executable("views_examples_with_content_exe") {
149 "examples_with_content_main_exe.cc",
152 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
155 ":views_examples_with_content_lib",
158 "//ui/views_content_client",
162 configs += [ "//build/config/win:windowed" ]
163 configs -= [ "//build/config/win:console" ]