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",
61 "views_examples_export.h",
66 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
67 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
70 "GFX_VECTOR_ICONS_UNSAFE",
71 "VIEWS_EXAMPLES_IMPLEMENTATION",
83 "//ui/resources:ui_test_pak",
88 deps += [ "//third_party/wtl" ]
92 deps += [ "//ui/aura" ]
96 executable("views_examples_exe") {
104 ":views_examples_lib",
109 "//ui/compositor:test_support",
112 "//ui/resources:ui_test_pak",
114 "//ui/views:test_support",
119 deps += [ "//ui/aura" ]
122 deps += [ "//ui/gfx/x" ]
126 component("views_examples_with_content_lib") {
129 "examples_window_with_content.cc",
130 "examples_window_with_content.h",
131 "views_examples_with_content_export.h",
132 "webview_example.cc",
136 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
139 ":views_examples_lib",
145 "//ui/views/controls/webview",
150 executable("views_examples_with_content_exe") {
154 "examples_with_content_main_exe.cc",
157 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
160 ":views_examples_with_content_lib",
163 "//content:startup_helper_win",
164 "//ui/views_content_client",
168 configs += [ "//build/config/win:windowed" ]
169 configs -= [ "//build/config/win:console" ]