OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 android_resources("memconsumer_apk_resources") { | 7 android_resources("memconsumer_apk_resources") { |
8 resource_dirs = [ "java/res" ] | 8 resource_dirs = [ "java/res" ] |
9 android_manifest = "java/AndroidManifest.xml" | 9 android_manifest = "java/AndroidManifest.xml" |
10 } | 10 } |
11 | 11 |
12 android_apk("memconsumer_apk") { | 12 android_apk("memconsumer_apk") { |
13 apk_name = "MemConsumer" | 13 apk_name = "MemConsumer" |
14 android_manifest = "java/AndroidManifest.xml" | 14 android_manifest = "java/AndroidManifest.xml" |
15 DEPRECATED_java_in_dir = "java/src" | 15 java_files = [ |
| 16 "java/src/org/chromium/memconsumer/MemConsumer.java", |
| 17 "java/src/org/chromium/memconsumer/ResidentService.java", |
| 18 ] |
16 native_libs = [ "libmemconsumer.so" ] | 19 native_libs = [ "libmemconsumer.so" ] |
17 | 20 |
18 deps = [ | 21 deps = [ |
19 ":libmemconsumer", | 22 ":libmemconsumer", |
20 ":memconsumer_apk_resources", | 23 ":memconsumer_apk_resources", |
21 "//base:base_java", | 24 "//base:base_java", |
22 ] | 25 ] |
23 } | 26 } |
24 | 27 |
25 shared_library("libmemconsumer") { | 28 shared_library("libmemconsumer") { |
26 output_name = "memconsumer" | 29 output_name = "memconsumer" |
27 sources = [ | 30 sources = [ |
28 "memconsumer_hook.cc", | 31 "memconsumer_hook.cc", |
29 ] | 32 ] |
30 libs = [ "log" ] | 33 libs = [ "log" ] |
31 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 34 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
32 | 35 |
33 configs -= [ "//build/config/compiler:chromium_code" ] | 36 configs -= [ "//build/config/compiler:chromium_code" ] |
34 configs += [ "//build/config/compiler:no_chromium_code" ] | 37 configs += [ "//build/config/compiler:no_chromium_code" ] |
35 } | 38 } |
OLD | NEW |