OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 assert(is_android) | 8 assert(is_android) |
9 | 9 |
10 component("android") { | 10 component("android") { |
(...skipping 25 matching lines...) Expand all Loading... |
36 "window_android.cc", | 36 "window_android.cc", |
37 "window_android.h", | 37 "window_android.h", |
38 "window_android_compositor.cc", | 38 "window_android_compositor.cc", |
39 "window_android_compositor.h", | 39 "window_android_compositor.h", |
40 "window_android_observer.h", | 40 "window_android_observer.h", |
41 ] | 41 ] |
42 | 42 |
43 defines = [ "UI_ANDROID_IMPLEMENTATION" ] | 43 defines = [ "UI_ANDROID_IMPLEMENTATION" ] |
44 | 44 |
45 deps = [ | 45 deps = [ |
| 46 ":ui_android_jni_headers", |
46 "//base", | 47 "//base", |
47 "//cc", | 48 "//cc", |
48 "//skia", | 49 "//skia", |
49 "//ui/gfx", | 50 "//ui/gfx", |
50 "//ui/gfx/geometry", | 51 "//ui/gfx/geometry", |
51 ":ui_android_jni_headers", | |
52 ] | 52 ] |
53 } | 53 } |
54 | 54 |
55 generate_jni("ui_android_jni_headers") { | 55 generate_jni("ui_android_jni_headers") { |
56 sources = [ | 56 sources = [ |
57 "java/src/org/chromium/ui/base/WindowAndroid.java", | 57 "java/src/org/chromium/ui/base/WindowAndroid.java", |
58 "java/src/org/chromium/ui/resources/ResourceManager.java", | 58 "java/src/org/chromium/ui/resources/ResourceManager.java", |
59 ] | 59 ] |
60 jni_package = "ui_android" | 60 jni_package = "ui_android" |
61 } | 61 } |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ":ui_java_resources", | 136 ":ui_java_resources", |
137 "//base:base_java", | 137 "//base:base_java", |
138 ] | 138 ] |
139 srcjar_deps = [ ":java_enums_srcjar" ] | 139 srcjar_deps = [ ":java_enums_srcjar" ] |
140 } | 140 } |
141 | 141 |
142 android_library("ui_javatests") { | 142 android_library("ui_javatests") { |
143 DEPRECATED_java_in_dir = "javatests/src" | 143 DEPRECATED_java_in_dir = "javatests/src" |
144 testonly = true | 144 testonly = true |
145 deps = [ | 145 deps = [ |
| 146 ":ui_java", |
146 ":ui_java_resources", | 147 ":ui_java_resources", |
147 ":ui_java", | |
148 "//base:base_java", | 148 "//base:base_java", |
149 "//base:base_java_test_support", | 149 "//base:base_java_test_support", |
150 ] | 150 ] |
151 } | 151 } |
152 | 152 |
153 test("ui_android_unittests") { | 153 test("ui_android_unittests") { |
154 sources = [ | 154 sources = [ |
155 "overscroll_refresh_unittest.cc", | 155 "overscroll_refresh_unittest.cc", |
156 "resources/resource_manager_impl_unittest.cc", | 156 "resources/resource_manager_impl_unittest.cc", |
157 "run_all_unittests.cc", | 157 "run_all_unittests.cc", |
158 ] | 158 ] |
159 deps = [ | 159 deps = [ |
160 ":android", | 160 ":android", |
161 "//base", | 161 "//base", |
162 "//base/test:test_support", | 162 "//base/test:test_support", |
163 "//cc", | 163 "//cc", |
164 "//cc:test_support", | 164 "//cc:test_support", |
165 "//skia", | 165 "//skia", |
166 "//testing/gmock", | 166 "//testing/gmock", |
167 "//testing/gtest", | 167 "//testing/gtest", |
168 "//ui/base", | 168 "//ui/base", |
169 "//ui/gfx", | 169 "//ui/gfx", |
170 "//ui/resources:ui_test_pak", | 170 "//ui/resources:ui_test_pak", |
171 ] | 171 ] |
172 apk_deps = [ ":ui_java" ] | 172 apk_deps = [ ":ui_java" ] |
173 } | 173 } |
OLD | NEW |