1load("@rules_android//rules:rules.bzl", "android_binary", "android_library")
2
3android_binary(
4    name = "app",
5    manifest = "AndroidManifest.xml",
6    deps = [
7        ":applib",
8    ],
9)
10
11android_library(
12  name = "applib",
13  srcs = [
14      "MainActivity.java",
15      #"Jni.java", # TODO: integrate JNI
16  ],
17  resource_files = glob(["res/**"]),
18  manifest = "AndroidManifest.xml",
19  deps = [
20    ":lib",
21    #":jni", # TODO: integrate JNI
22  ]
23)
24
25android_library(
26    name = "lib",
27    srcs = ["Lib.java"],
28)
29
30cc_library(
31    name = "jni",
32    srcs = ["jni.cc"],
33    deps = [":jni_dep"],
34)
35
36cc_library(
37    name = "jni_dep",
38    srcs = ["jni_dep.cc"],
39    hdrs = ["jni_dep.h"],
40)
41