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 import("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
7 | 7 |
8 shared_library("libdevice_name") { | 8 mojo_android_application("device_name") { |
9 output_name = "device_name" | 9 sources = [ |
| 10 "device_name.cc", |
| 11 ] |
10 | 12 |
11 deps = [ | 13 deps = [ |
12 "//base", | 14 "//base", |
13 "//mojo/public/c/system", | 15 "//mojo/public/c/system", |
14 "//mojo/public/cpp/application:standalone", | 16 "//mojo/public/cpp/application:standalone", |
15 "//mojo/public/cpp/bindings", | 17 "//mojo/public/cpp/bindings", |
16 "//mojo/public/cpp/system", | 18 "//mojo/public/cpp/system", |
17 "//mojo/public/cpp/utility", | 19 "//mojo/public/cpp/utility", |
18 "//mojo/public/platform/native:system", | 20 "//mojo/public/platform/native:system", |
19 ":jni_headers", | |
20 ] | 21 ] |
21 | 22 |
22 sources = [ | 23 java_sources = [ "java/src/org/chromium/mojo/examples/DeviceName.java" ] |
23 "device_name.cc", | |
24 ] | |
25 } | |
26 | 24 |
27 generate_jni("jni_headers") { | 25 java_deps = [ "//base:base_java" ] |
28 sources = [ | |
29 "java/src/org/chromium/mojo/examples/DeviceName.java", | |
30 ] | |
31 | 26 |
32 jni_package = "mojo" | 27 jni_package = "mojo" |
33 } | 28 } |
34 | |
35 dex_output_path = "$target_out_dir/device_name_java.dex.jar" | |
36 android_library("device_name_java") { | |
37 java_files = [ "java/src/org/chromium/mojo/examples/DeviceName.java" ] | |
38 | |
39 deps = [ | |
40 "//base:base_java", | |
41 ] | |
42 | |
43 dex_path = dex_output_path | |
44 } | |
45 | |
46 mojo_android_application("device_name") { | |
47 input_so = "$root_out_dir/lib.stripped/libdevice_name.so" | |
48 input_dex_jar = dex_output_path | |
49 } | |
OLD | NEW |