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 shared_library("libdevice_name") { |
9 output_name = "device_name" | 9 output_name = "device_name" |
10 | 10 |
11 deps = [ | 11 deps = [ |
12 "//base", | 12 "//base", |
13 "//mojo/public/c/system:for_shared_library", | 13 "//mojo/public/c/system", |
14 "//mojo/public/cpp/application:standalone", | 14 "//mojo/public/cpp/application:standalone", |
15 "//mojo/public/cpp/bindings", | 15 "//mojo/public/cpp/bindings", |
16 "//mojo/public/cpp/utility", | 16 "//mojo/public/cpp/utility", |
| 17 "//mojo/public/platform/native:system", |
17 ":jni_headers", | 18 ":jni_headers", |
18 ] | 19 ] |
19 | 20 |
20 sources = [ | 21 sources = [ |
21 "device_name.cc", | 22 "device_name.cc", |
22 ] | 23 ] |
23 } | 24 } |
24 | 25 |
25 generate_jni("jni_headers") { | 26 generate_jni("jni_headers") { |
26 sources = [ | 27 sources = [ |
(...skipping 11 matching lines...) Expand all Loading... |
38 "//base:base_java", | 39 "//base:base_java", |
39 ] | 40 ] |
40 | 41 |
41 dex_path = dex_output_path | 42 dex_path = dex_output_path |
42 } | 43 } |
43 | 44 |
44 mojo_android_application("device_name") { | 45 mojo_android_application("device_name") { |
45 input_so = "$root_out_dir/lib.stripped/libdevice_name.so" | 46 input_so = "$root_out_dir/lib.stripped/libdevice_name.so" |
46 input_dex_jar = dex_output_path | 47 input_dex_jar = dex_output_path |
47 } | 48 } |
OLD | NEW |