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",
106 "//build/config/sanitizers:deps",
110 "//ui/compositor:test_support",
113 "//ui/resources:ui_test_pak",
115 "//ui/views:test_support",
120 deps += [ "//ui/aura" ]
123 deps += [ "//ui/gfx/x" ]
127 component("views_examples_with_content_lib") {
130 "examples_window_with_content.cc",
131 "examples_window_with_content.h",
132 "views_examples_with_content_export.h",
133 "webview_example.cc",
137 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
140 ":views_examples_lib",
146 "//ui/views/controls/webview",
151 executable("views_examples_with_content_exe") {
155 "examples_with_content_main_exe.cc",
158 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
161 ":views_examples_with_content_lib",
163 "//build/config/sanitizers:deps",
165 "//content:startup_helper_win",
166 "//ui/views_content_client",
170 configs += [ "//build/config/win:windowed" ]
171 configs -= [ "//build/config/win:console" ]