summaryrefslogtreecommitdiffstats
path: root/tools/android/memconsumer/BUILD.gn
blob: 90b7fcf83a7d2ade5da4bc669915e075004db340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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",
  ]
  native_libs = [ "libmemconsumer.so" ]

  deps = [
    ":libmemconsumer",
    ":memconsumer_apk_resources",
    "//base:base_java",
  ]
}

shared_library("libmemconsumer") {
  output_name = "memconsumer"
  sources = [
    "memconsumer_hook.cc",
  ]
  libs = [ "log" ]
  configs -= [ "//build/config/android:hide_native_jni_exports" ]

  configs -= [ "//build/config/compiler:chromium_code" ]
  configs += [ "//build/config/compiler:no_chromium_code" ]
}