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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 source_set("libsystem_java") { | 36 source_set("libsystem_java") { |
37 sources = [ | 37 sources = [ |
38 "system/core_impl.cc", | 38 "system/core_impl.cc", |
39 "system/core_impl.h", | 39 "system/core_impl.h", |
40 ] | 40 ] |
41 | 41 |
42 deps = [ | 42 deps = [ |
43 ":system_java_jni_headers", | 43 ":system_java_jni_headers", |
44 "//base", | 44 "//base", |
45 "//mojo/edk/system", | |
46 "//mojo/environment:chromium", | 45 "//mojo/environment:chromium", |
47 "//mojo/public/cpp/environment", | 46 "//third_party/mojo/src/mojo/edk/system", |
| 47 "//third_party/mojo/src/mojo/public/cpp/environment", |
48 ] | 48 ] |
49 } | 49 } |
50 | 50 |
51 android_library("system_java") { | 51 android_library("system_java") { |
52 java_files = [ | 52 java_files = [ |
53 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", | 53 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", |
54 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java", | 54 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java", |
55 "system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java", | 55 "system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java", |
56 "system/src/org/chromium/mojo/system/impl/HandleBase.java", | 56 "system/src/org/chromium/mojo/system/impl/HandleBase.java", |
57 "system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java", | 57 "system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java", |
58 "system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java", | 58 "system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java", |
59 "system/src/org/chromium/mojo/system/impl/UntypedHandleImpl.java", | 59 "system/src/org/chromium/mojo/system/impl/UntypedHandleImpl.java", |
60 ] | 60 ] |
61 | 61 |
62 deps = [ | 62 deps = [ |
63 "//base:base_java", | 63 "//base:base_java", |
64 "//mojo/public/java:system", | 64 "//third_party/mojo/src/mojo/public/java:system", |
65 ] | 65 ] |
66 } | 66 } |
67 | 67 |
68 android_library("mojo_javatests") { | 68 android_library("mojo_javatests") { |
69 testonly = true | 69 testonly = true |
70 java_files = [ | 70 java_files = [ |
71 "javatests/src/org/chromium/mojo/HandleMock.java", | 71 "javatests/src/org/chromium/mojo/HandleMock.java", |
72 "javatests/src/org/chromium/mojo/MojoTestCase.java", | 72 "javatests/src/org/chromium/mojo/MojoTestCase.java", |
73 "javatests/src/org/chromium/mojo/TestUtils.java", | 73 "javatests/src/org/chromium/mojo/TestUtils.java", |
74 "javatests/src/org/chromium/mojo/bindings/BindingsHelperTest.java", | 74 "javatests/src/org/chromium/mojo/bindings/BindingsHelperTest.java", |
(...skipping 11 matching lines...) Expand all Loading... |
86 "javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java", | 86 "javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java", |
87 "javatests/src/org/chromium/mojo/bindings/ValidationTestUtilTest.java", | 87 "javatests/src/org/chromium/mojo/bindings/ValidationTestUtilTest.java", |
88 "javatests/src/org/chromium/mojo/bindings/test/mojom/mojo/IntegrationTestInt
erface2TestHelper.java", | 88 "javatests/src/org/chromium/mojo/bindings/test/mojom/mojo/IntegrationTestInt
erface2TestHelper.java", |
89 "javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java", | 89 "javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java", |
90 ] | 90 ] |
91 | 91 |
92 deps = [ | 92 deps = [ |
93 ":system_java", | 93 ":system_java", |
94 "//base:base_java", | 94 "//base:base_java", |
95 "//base:base_java_test_support", | 95 "//base:base_java_test_support", |
96 "//mojo/public/interfaces/bindings/tests:test_interfaces_java", | 96 "//third_party/mojo/src/mojo/public/interfaces/bindings/tests:test_interface
s_java", |
97 "//mojo/public/java:bindings", | 97 "//third_party/mojo/src/mojo/public/java:bindings", |
98 "//mojo/public/java:system", | 98 "//third_party/mojo/src/mojo/public/java:system", |
99 ] | 99 ] |
100 } | 100 } |
101 | 101 |
102 shared_library("mojo_java_unittests") { | 102 shared_library("mojo_java_unittests") { |
103 testonly = true | 103 testonly = true |
104 | 104 |
105 sources = [ | 105 sources = [ |
106 "javatests/mojo_test_case.cc", | 106 "javatests/mojo_test_case.cc", |
107 "javatests/mojo_test_case.h", | 107 "javatests/mojo_test_case.h", |
108 "javatests/init_library.cc", | 108 "javatests/init_library.cc", |
109 "javatests/validation_test_util.cc", | 109 "javatests/validation_test_util.cc", |
110 "javatests/validation_test_util.h", | 110 "javatests/validation_test_util.h", |
111 ] | 111 ] |
112 | 112 |
113 deps = [ | 113 deps = [ |
114 ":jni_headers", | 114 ":jni_headers", |
115 ":libsystem_java", | 115 ":libsystem_java", |
116 ":system_java_jni_headers", | 116 ":system_java_jni_headers", |
117 "//base", | 117 "//base", |
118 "//base/test/:test_support", | 118 "//base/test/:test_support", |
119 "//mojo/common", | 119 "//mojo/common", |
120 "//mojo/edk/system", | 120 "//third_party/mojo/src/mojo/edk/system", |
121 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", | 121 "//third_party/mojo/src/mojo/public/cpp/bindings/tests:mojo_public_bindings_
test_utils", |
122 "//mojo/public/cpp/test_support:test_utils", | 122 "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils", |
123 "//mojo/public/cpp/environment", | 123 "//third_party/mojo/src/mojo/public/cpp/environment", |
124 ] | 124 ] |
125 defines = [ "UNIT_TEST" ] | 125 defines = [ "UNIT_TEST" ] |
126 } | 126 } |
127 | 127 |
128 android_apk("mojo_test_apk") { | 128 android_apk("mojo_test_apk") { |
129 testonly = true | 129 testonly = true |
130 deps = [ | 130 deps = [ |
131 ":mojo_javatests", | 131 ":mojo_javatests", |
132 ":mojo_java_unittests", | 132 ":mojo_java_unittests", |
133 ":system_java", | 133 ":system_java", |
134 "//base:base_java", | 134 "//base:base_java", |
135 "//mojo/public/java:bindings", | 135 "//third_party/mojo/src/mojo/public/java:bindings", |
136 "//mojo/public/interfaces/bindings/tests:test_interfaces", | 136 "//third_party/mojo/src/mojo/public/interfaces/bindings/tests:test_interface
s", |
137 ] | 137 ] |
138 native_libs = [ "libmojo_java_unittests.so" ] | 138 native_libs = [ "libmojo_java_unittests.so" ] |
139 apk_name = "MojoTest" | 139 apk_name = "MojoTest" |
140 android_manifest = "javatests/AndroidManifest.xml" | 140 android_manifest = "javatests/AndroidManifest.xml" |
141 } | 141 } |
OLD | NEW |