naiveproxy/tools/android/memconsumer/BUILD.gn

38 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2018-01-28 19:30:36 +03:00
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
android_resources("memconsumer_apk_resources") {
resource_dirs = [ "java/res" ]
android_manifest = "java/AndroidManifest.xml"
}
android_apk("memconsumer_apk") {
apk_name = "MemConsumer"
android_manifest = "java/AndroidManifest.xml"
java_files = [
"java/src/org/chromium/memconsumer/MemConsumer.java",
"java/src/org/chromium/memconsumer/ResidentService.java",
]
shared_libraries = [ ":libmemconsumer" ]
deps = [
":memconsumer_apk_resources",
"//base:base_java",
]
}
shared_library("libmemconsumer") {
output_name = "memconsumer"
sources = [
"memconsumer_hook.cc",
]
libs = [ "log" ]
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
}