OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 import("//build/config/ui.gni") |
| 6 |
| 7 component("views_examples_lib") { |
| 8 testonly = true |
| 9 |
| 10 sources = [ |
| 11 "bubble_example.cc", |
| 12 "bubble_example.h", |
| 13 "button_example.cc", |
| 14 "button_example.h", |
| 15 "checkbox_example.cc", |
| 16 "checkbox_example.h", |
| 17 "combobox_example.cc", |
| 18 "combobox_example.h", |
| 19 "double_split_view_example.cc", |
| 20 "double_split_view_example.h", |
| 21 "example_base.cc", |
| 22 "example_base.h", |
| 23 "example_combobox_model.cc", |
| 24 "example_combobox_model.h", |
| 25 "examples_window.cc", |
| 26 "examples_window.h", |
| 27 "label_example.cc", |
| 28 "label_example.h", |
| 29 "link_example.cc", |
| 30 "link_example.h", |
| 31 "message_box_example.cc", |
| 32 "message_box_example.h", |
| 33 "menu_example.cc", |
| 34 "menu_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", |
| 45 "slider_example.cc", |
| 46 "slider_example.h", |
| 47 "tabbed_pane_example.cc", |
| 48 "tabbed_pane_example.h", |
| 49 "table_example.cc", |
| 50 "table_example.h", |
| 51 "text_example.cc", |
| 52 "text_example.h", |
| 53 "textfield_example.cc", |
| 54 "textfield_example.h", |
| 55 "throbber_example.cc", |
| 56 "throbber_example.h", |
| 57 "tree_view_example.cc", |
| 58 "tree_view_example.h", |
| 59 "views_examples_export.h", |
| 60 "widget_example.cc", |
| 61 "widget_example.h", |
| 62 ] |
| 63 |
| 64 defines = [ "VIEWS_EXAMPLES_IMPLEMENTATION" ] |
| 65 |
| 66 deps = [ |
| 67 "//base", |
| 68 "//skia", |
| 69 "//third_party/icu", |
| 70 "//ui/base", |
| 71 "//ui/events", |
| 72 "//ui/gfx", |
| 73 "//ui/gfx/geometry", |
| 74 "//ui/resources", |
| 75 "//ui/resources:ui_test_pak", |
| 76 ] |
| 77 |
| 78 if (is_win) { |
| 79 deps += [ "//third_party/wtl" ] |
| 80 |
| 81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 82 cflags = [ "/wd4267" ] |
| 83 } |
| 84 |
| 85 if (use_aura) { |
| 86 deps += [ "//ui/aura" ] |
| 87 } |
| 88 } |
| 89 |
| 90 executable("views_examples_exe") { |
| 91 testonly = true |
| 92 |
| 93 sources = [ |
| 94 "examples_main.cc", |
| 95 ] |
| 96 |
| 97 deps = [ |
| 98 ":views_examples_lib", |
| 99 "//base", |
| 100 "//base:i18n", |
| 101 "//ui/base", |
| 102 "//ui/compositor", |
| 103 "//ui/compositor:test_support", |
| 104 "//ui/gfx", |
| 105 "//ui/resources:ui_test_pak", |
| 106 "//ui/views", |
| 107 "//ui/views:test_support", |
| 108 ] |
| 109 |
| 110 if (use_aura) { |
| 111 deps += [ "//ui/aura" ] |
| 112 } |
| 113 } |
| 114 |
| 115 component("views_examples_with_content_lib") { |
| 116 testonly = true |
| 117 sources = [ |
| 118 "examples_window_with_content.cc", |
| 119 "examples_window_with_content.h", |
| 120 "views_examples_with_content_export.h", |
| 121 "webview_example.cc", |
| 122 "webview_example.h", |
| 123 ] |
| 124 |
| 125 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ] |
| 126 |
| 127 deps = [ |
| 128 ":views_examples_lib", |
| 129 "//base", |
| 130 "//content", |
| 131 "//skia", |
| 132 "//ui/events", |
| 133 "//ui/views", |
| 134 "//ui/views/controls/webview", |
| 135 "//url", |
| 136 ] |
| 137 } |
| 138 |
| 139 executable("views_examples_with_content_exe") { |
| 140 testonly = true |
| 141 |
| 142 sources = [ |
| 143 "examples_with_content_main_exe.cc", |
| 144 ] |
| 145 |
| 146 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ] |
| 147 |
| 148 deps = [ |
| 149 ":views_examples_with_content_lib", |
| 150 "//base", |
| 151 "//content", |
| 152 "//ui/views_content_client", |
| 153 ] |
| 154 } |
OLD | NEW |