Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: mojo/android/BUILD.gn

Issue 830593003: Update mojo sdk to rev 9fbbc4f0fef1187312316c0ed992342474e139f1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cherry-pick mojo 9d3b8dd17f12d20035a14737fdc38dd926890ff8 Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ] 13 ]
13 } 14 }
14 15
16 generate_jni("jni_headers") {
17 sources = [
18 "javatests/src/org/chromium/mojo/MojoTestCase.java",
19 "javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java",
20 ]
21 deps = [
22 ":system_java_jni_headers",
23 ]
24
25 jni_package = "mojo"
26 }
27
15 generate_jni("system_java_jni_headers") { 28 generate_jni("system_java_jni_headers") {
16 sources = [ 29 sources = [
17 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", 30 "system/src/org/chromium/mojo/system/impl/CoreImpl.java",
18 ] 31 ]
19 32
20 jni_package = "mojo" 33 jni_package = "mojo"
21 } 34 }
22 35
23 source_set("libsystem_java") { 36 source_set("libsystem_java") {
24 sources = [ 37 sources = [
25 "system/core_impl.cc", 38 "system/core_impl.cc",
26 "system/core_impl.h", 39 "system/core_impl.h",
27 ] 40 ]
28 41
29 deps = [ 42 deps = [
30 ":system_java_jni_headers", 43 ":system_java_jni_headers",
44 "//base",
31 "//mojo/edk/system", 45 "//mojo/edk/system",
32 "//mojo/environment:chromium", 46 "//mojo/environment:chromium",
47 "//mojo/public/cpp/environment",
33 ] 48 ]
34 } 49 }
35 50
36 android_library("system_java") { 51 android_library("system_java") {
37 java_files = [ 52 java_files = [
38 "system/src/org/chromium/mojo/system/impl/CoreImpl.java", 53 "system/src/org/chromium/mojo/system/impl/CoreImpl.java",
39 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java", 54 "system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java",
40 "system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java", 55 "system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java",
41 "system/src/org/chromium/mojo/system/impl/HandleBase.java", 56 "system/src/org/chromium/mojo/system/impl/HandleBase.java",
42 "system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java", 57 "system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 91
77 deps = [ 92 deps = [
78 ":system_java", 93 ":system_java",
79 "//base:base_java", 94 "//base:base_java",
80 "//base:base_java_test_support", 95 "//base:base_java_test_support",
81 "//mojo/public/interfaces/bindings/tests:test_interfaces_java", 96 "//mojo/public/interfaces/bindings/tests:test_interfaces_java",
82 "//mojo/public/java:bindings", 97 "//mojo/public/java:bindings",
83 "//mojo/public/java:system", 98 "//mojo/public/java:system",
84 ] 99 ]
85 } 100 }
101
102 shared_library("mojo_java_unittests") {
103 testonly = true
104
105 sources = [
106 "javatests/mojo_test_case.cc",
107 "javatests/mojo_test_case.h",
108 "javatests/init_library.cc",
109 "javatests/validation_test_util.cc",
110 "javatests/validation_test_util.h",
111 ]
112
113 deps = [
114 ":jni_headers",
115 ":libsystem_java",
116 ":system_java_jni_headers",
117 "//base",
118 "//base/test/:test_support",
119 "//mojo/common",
120 "//mojo/edk/system",
121 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils",
122 "//mojo/public/cpp/test_support:test_utils",
123 "//mojo/public/cpp/environment",
124 ]
125 defines = [ "UNIT_TEST" ]
126 }
127
128 android_apk("mojo_test_apk") {
129 testonly = true
130 deps = [
131 ":mojo_javatests",
132 ":mojo_java_unittests",
133 ":system_java",
134 "//base:base_java",
135 "//mojo/public/java:bindings",
136 "//mojo/public/interfaces/bindings/tests:test_interfaces",
137 ]
138 native_libs = [ "libmojo_java_unittests.so" ]
139 apk_name = "MojoTest"
140 android_manifest = "javatests/AndroidManifest.xml"
141 }
OLDNEW
« no previous file with comments | « ipc/mojo/async_handle_waiter_unittest.cc ('k') | mojo/android/javatests/src/org/chromium/mojo/TestUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698