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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 | 6 |
7 group("android") { | 7 group("android") { |
8 testonly = true | 8 testonly = true |
9 deps = [ | 9 deps = [ |
10 ":system_java", | 10 ":system_java", |
11 ":mojo_javatests", | 11 ":mojo_javatests", |
12 ":mojo_test_apk", | 12 ":mojo_test_apk", |
13 ] | 13 ] |
14 } | 14 } |
15 | 15 |
16 generate_jni("jni_headers") { | 16 generate_jni("jni_headers") { |
17 sources = [ | 17 sources = [ |
18 "javatests/src/org/chromium/mojo/MojoTestCase.java", | 18 "javatests/src/org/chromium/mojo/MojoTestCase.java", |
19 "javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java", | 19 "javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java", |
20 ] | 20 ] |
21 deps = [ | 21 deps = [ |
22 ":system_java_jni_headers", | 22 ":system_java_jni_headers", |
23 ] | 23 ] |
24 | 24 |
25 jni_package = "mojo" | 25 jni_package = "mojo" |
26 } | 26 } |
27 | 27 |
28 generate_jni("system_java_jni_headers") { | 28 generate_jni("system_java_jni_headers") { |
29 sources = [ | 29 sources = [ |
| 30 "system/src/org/chromium/mojo/system/impl/BaseRunLoop.java", |
30 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", | 31 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", |
31 "system/src/org/chromium/mojo/system/impl/BaseRunLoop.java", | |
32 ] | 32 ] |
33 | 33 |
34 jni_package = "mojo" | 34 jni_package = "mojo" |
35 } | 35 } |
36 | 36 |
37 source_set("libsystem_java") { | 37 source_set("libsystem_java") { |
38 sources = [ | 38 sources = [ |
39 "system/base_run_loop.cc", | 39 "system/base_run_loop.cc", |
40 "system/base_run_loop.h", | 40 "system/base_run_loop.h", |
41 "system/core_impl.cc", | 41 "system/core_impl.cc", |
42 "system/core_impl.h", | 42 "system/core_impl.h", |
43 ] | 43 ] |
44 | 44 |
45 deps = [ | 45 deps = [ |
46 ":system_java_jni_headers", | 46 ":system_java_jni_headers", |
47 "//base", | 47 "//base", |
48 "//mojo/environment:chromium", | 48 "//mojo/environment:chromium", |
49 "//mojo/common:common", | 49 "//mojo/message_pump", |
50 "//third_party/mojo/src/mojo/edk/system", | 50 "//third_party/mojo/src/mojo/edk/system", |
51 "//third_party/mojo/src/mojo/public/cpp/environment", | 51 "//third_party/mojo/src/mojo/public/cpp/environment", |
52 ] | 52 ] |
53 } | 53 } |
54 | 54 |
55 android_library("system_java") { | 55 android_library("system_java") { |
56 java_files = [ | 56 java_files = [ |
57 "system/src/org/chromium/mojo/system/impl/BaseRunLoop.java", | 57 "system/src/org/chromium/mojo/system/impl/BaseRunLoop.java", |
58 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", | 58 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", |
59 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java", | 59 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 "javatests/validation_test_util.cc", | 118 "javatests/validation_test_util.cc", |
119 "javatests/validation_test_util.h", | 119 "javatests/validation_test_util.h", |
120 ] | 120 ] |
121 | 121 |
122 deps = [ | 122 deps = [ |
123 ":jni_headers", | 123 ":jni_headers", |
124 ":libsystem_java", | 124 ":libsystem_java", |
125 ":system_java_jni_headers", | 125 ":system_java_jni_headers", |
126 "//base", | 126 "//base", |
127 "//base/test/:test_support", | 127 "//base/test/:test_support", |
128 "//mojo/common", | 128 "//mojo/message_pump", |
129 "//third_party/mojo/src/mojo/edk/system", | 129 "//third_party/mojo/src/mojo/edk/system", |
130 "//third_party/mojo/src/mojo/public/cpp/bindings/tests:mojo_public_bindings_
test_utils", | 130 "//third_party/mojo/src/mojo/public/cpp/bindings/tests:mojo_public_bindings_
test_utils", |
131 "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils", | 131 "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils", |
132 "//third_party/mojo/src/mojo/public/cpp/environment", | 132 "//third_party/mojo/src/mojo/public/cpp/environment", |
133 ] | 133 ] |
134 defines = [ "UNIT_TEST" ] | 134 defines = [ "UNIT_TEST" ] |
135 } | 135 } |
136 | 136 |
137 android_apk("mojo_test_apk") { | 137 android_apk("mojo_test_apk") { |
138 testonly = true | 138 testonly = true |
139 deps = [ | 139 deps = [ |
140 ":mojo_javatests", | 140 ":mojo_javatests", |
141 ":mojo_java_unittests", | 141 ":mojo_java_unittests", |
142 ":system_java", | 142 ":system_java", |
143 "//base:base_java", | 143 "//base:base_java", |
144 "//third_party/mojo/src/mojo/public/java:bindings", | 144 "//third_party/mojo/src/mojo/public/java:bindings", |
145 "//third_party/mojo/src/mojo/public/interfaces/bindings/tests:test_interface
s", | 145 "//third_party/mojo/src/mojo/public/interfaces/bindings/tests:test_interface
s", |
146 ] | 146 ] |
147 native_libs = [ "libmojo_java_unittests.so" ] | 147 native_libs = [ "libmojo_java_unittests.so" ] |
148 apk_name = "MojoTest" | 148 apk_name = "MojoTest" |
149 android_manifest = "javatests/AndroidManifest.xml" | 149 android_manifest = "javatests/AndroidManifest.xml" |
150 } | 150 } |
OLD | NEW |