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", |
(...skipping 10 matching lines...) Expand all Loading... |
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/CoreImpl.java", | 30 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", |
| 31 "system/src/org/chromium/mojo/system/impl/BaseRunLoop.java", |
31 ] | 32 ] |
32 | 33 |
33 jni_package = "mojo" | 34 jni_package = "mojo" |
34 } | 35 } |
35 | 36 |
36 source_set("libsystem_java") { | 37 source_set("libsystem_java") { |
37 sources = [ | 38 sources = [ |
38 "system/core_impl.cc", | 39 "system/core_impl.cc", |
39 "system/core_impl.h", | 40 "system/core_impl.h", |
| 41 "system/base_run_loop.cc", |
| 42 "system/base_run_loop.h", |
40 ] | 43 ] |
41 | 44 |
42 deps = [ | 45 deps = [ |
43 ":system_java_jni_headers", | 46 ":system_java_jni_headers", |
44 "//base", | 47 "//base", |
45 "//mojo/edk/system", | |
46 "//mojo/environment:chromium", | |
47 "//mojo/public/cpp/environment", | 48 "//mojo/public/cpp/environment", |
| 49 "//mojo/common:common", |
| 50 "//mojo/public/c/system:system", |
| 51 "//mojo/public/cpp/bindings:callback", |
48 ] | 52 ] |
49 } | 53 } |
50 | 54 |
51 android_library("system_java") { | 55 android_library("system_java") { |
52 java_files = [ | 56 java_files = [ |
53 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", | 57 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", |
54 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java", | 58 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java", |
55 "system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java", | 59 "system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java", |
56 "system/src/org/chromium/mojo/system/impl/HandleBase.java", | 60 "system/src/org/chromium/mojo/system/impl/HandleBase.java", |
57 "system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java", | 61 "system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java", |
58 "system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java", | 62 "system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java", |
59 "system/src/org/chromium/mojo/system/impl/UntypedHandleImpl.java", | 63 "system/src/org/chromium/mojo/system/impl/UntypedHandleImpl.java", |
| 64 "system/src/org/chromium/mojo/system/impl/BaseRunLoop.java", |
60 ] | 65 ] |
61 | 66 |
62 deps = [ | 67 deps = [ |
63 "//base:base_java", | 68 "//base:base_java", |
64 "//mojo/public/java:system", | 69 "//mojo/public/java:system", |
65 ] | 70 ] |
66 } | 71 } |
67 | 72 |
68 android_library("mojo_javatests") { | 73 android_library("mojo_javatests") { |
69 testonly = true | 74 testonly = true |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 ":jni_headers", | 120 ":jni_headers", |
116 ":libsystem_java", | 121 ":libsystem_java", |
117 ":system_java_jni_headers", | 122 ":system_java_jni_headers", |
118 "//base", | 123 "//base", |
119 "//base/test/:test_support", | 124 "//base/test/:test_support", |
120 "//mojo/common", | 125 "//mojo/common", |
121 "//mojo/edk/system", | 126 "//mojo/edk/system", |
122 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", | 127 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", |
123 "//mojo/public/cpp/test_support:test_utils", | 128 "//mojo/public/cpp/test_support:test_utils", |
124 "//mojo/public/cpp/environment", | 129 "//mojo/public/cpp/environment", |
| 130 "//mojo/edk/system", |
| 131 "//mojo/environment:chromium", |
125 ] | 132 ] |
126 defines = [ "UNIT_TEST" ] | 133 defines = [ "UNIT_TEST" ] |
127 } | 134 } |
128 | 135 |
129 android_apk("mojo_test_apk") { | 136 android_apk("mojo_test_apk") { |
130 testonly = true | 137 testonly = true |
131 deps = [ | 138 deps = [ |
132 ":mojo_javatests", | 139 ":mojo_javatests", |
133 ":mojo_java_unittests", | 140 ":mojo_java_unittests", |
134 ":system_java", | 141 ":system_java", |
135 "//base:base_java", | 142 "//base:base_java", |
136 "//mojo/public/java:bindings", | 143 "//mojo/public/java:bindings", |
137 "//mojo/public/interfaces/bindings/tests:test_interfaces", | 144 "//mojo/public/interfaces/bindings/tests:test_interfaces", |
138 ] | 145 ] |
139 native_libs = [ "libmojo_java_unittests.so" ] | 146 native_libs = [ "libmojo_java_unittests.so" ] |
140 apk_name = "MojoTest" | 147 apk_name = "MojoTest" |
141 android_manifest = "javatests/AndroidManifest.xml" | 148 android_manifest = "javatests/AndroidManifest.xml" |
142 } | 149 } |
OLD | NEW |