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" ]
69 defines = [ "VIEWS_EXAMPLES_IMPLEMENTATION" ]
80 "//ui/resources:ui_test_pak",
85 deps += [ "//third_party/wtl" ]
89 deps += [ "//ui/aura" ]
93 executable("views_examples_exe") {
101 ":views_examples_lib",
106 "//ui/compositor:test_support",
109 "//ui/resources:ui_test_pak",
111 "//ui/views:test_support",
116 deps += [ "//ui/aura" ]
119 deps += [ "//ui/gfx/x" ]
123 component("views_examples_with_content_lib") {
126 "examples_window_with_content.cc",
127 "examples_window_with_content.h",
128 "views_examples_with_content_export.h",
129 "webview_example.cc",
133 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
136 ":views_examples_lib",
142 "//ui/views/controls/webview",
147 executable("views_examples_with_content_exe") {
151 "examples_with_content_main_exe.cc",
154 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ]
157 ":views_examples_with_content_lib",
160 "//content:startup_helper_win",
161 "//ui/views_content_client",
165 configs += [ "//build/config/win:windowed" ]
166 configs -= [ "//build/config/win:console" ]