| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 component("views_examples_lib") { | 7 component("views_examples_lib") { |
| 8 testonly = true | 8 testonly = true |
| 9 | 9 |
| 10 sources = [ | 10 sources = [ |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 deps = [ | 66 deps = [ |
| 67 "//base", | 67 "//base", |
| 68 "//skia", | 68 "//skia", |
| 69 "//third_party/icu", | 69 "//third_party/icu", |
| 70 "//ui/base", | 70 "//ui/base", |
| 71 "//ui/events", | 71 "//ui/events", |
| 72 "//ui/gfx", | 72 "//ui/gfx", |
| 73 "//ui/gfx/geometry", | 73 "//ui/gfx/geometry", |
| 74 "//ui/resources", | 74 "//ui/resources", |
| 75 "//ui/resources:ui_test_pak", | 75 "//ui/resources:ui_test_pak", |
| 76 "//ui/views", |
| 76 ] | 77 ] |
| 77 | 78 |
| 78 if (is_win) { | 79 if (is_win) { |
| 79 deps += [ "//third_party/wtl" ] | 80 deps += [ "//third_party/wtl" ] |
| 80 | 81 |
| 81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 82 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 82 cflags = [ "/wd4267" ] | 83 cflags = [ "/wd4267" ] |
| 83 } | 84 } |
| 84 | 85 |
| 85 if (use_aura) { | 86 if (use_aura) { |
| 86 deps += [ "//ui/aura" ] | 87 deps += [ "//ui/aura" ] |
| 87 } | 88 } |
| 88 } | 89 } |
| 89 | 90 |
| 90 executable("views_examples_exe") { | 91 executable("views_examples_exe") { |
| 91 testonly = true | 92 testonly = true |
| 92 | 93 |
| 93 sources = [ | 94 sources = [ |
| 94 "examples_main.cc", | 95 "examples_main.cc", |
| 95 ] | 96 ] |
| 96 | 97 |
| 97 deps = [ | 98 deps = [ |
| 98 ":views_examples_lib", | 99 ":views_examples_lib", |
| 99 "//base", | 100 "//base", |
| 100 "//base:i18n", | 101 "//base:i18n", |
| 101 "//ui/base", | 102 "//ui/base", |
| 102 "//ui/compositor", | 103 "//ui/compositor", |
| 103 "//ui/compositor:test_support", | 104 "//ui/compositor:test_support", |
| 104 "//ui/gfx", | 105 "//ui/gfx", |
| 106 "//ui/gl", |
| 105 "//ui/resources:ui_test_pak", | 107 "//ui/resources:ui_test_pak", |
| 106 "//ui/views", | 108 "//ui/views", |
| 107 "//ui/views:test_support", | 109 "//ui/views:test_support", |
| 110 "//ui/wm", |
| 108 ] | 111 ] |
| 109 | 112 |
| 110 if (use_aura) { | 113 if (use_aura) { |
| 111 deps += [ "//ui/aura" ] | 114 deps += [ "//ui/aura" ] |
| 112 } | 115 } |
| 116 if (use_x11) { |
| 117 deps += [ "//ui/gfx/x" ] |
| 118 } |
| 113 } | 119 } |
| 114 | 120 |
| 115 component("views_examples_with_content_lib") { | 121 component("views_examples_with_content_lib") { |
| 116 testonly = true | 122 testonly = true |
| 117 sources = [ | 123 sources = [ |
| 118 "examples_window_with_content.cc", | 124 "examples_window_with_content.cc", |
| 119 "examples_window_with_content.h", | 125 "examples_window_with_content.h", |
| 120 "views_examples_with_content_export.h", | 126 "views_examples_with_content_export.h", |
| 121 "webview_example.cc", | 127 "webview_example.cc", |
| 122 "webview_example.h", | 128 "webview_example.h", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 145 | 151 |
| 146 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ] | 152 defines = [ "VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION" ] |
| 147 | 153 |
| 148 deps = [ | 154 deps = [ |
| 149 ":views_examples_with_content_lib", | 155 ":views_examples_with_content_lib", |
| 150 "//base", | 156 "//base", |
| 151 "//content", | 157 "//content", |
| 152 "//ui/views_content_client", | 158 "//ui/views_content_client", |
| 153 ] | 159 ] |
| 154 } | 160 } |
| OLD | NEW |