Jiyong Park | a7266ac | 2021-05-17 21:57:24 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | android_app { |
| 6 | name: "MicrodroidTestApp", |
| 7 | srcs: ["src/java/**/*.java"], |
| 8 | jni_libs: ["MicrodroidTestNativeLib"], |
Andrew Scull | 6661661 | 2021-06-17 16:41:03 +0000 | [diff] [blame] | 9 | platform_apis: true, |
Jiyong Park | ef746ea | 2021-06-14 18:19:31 +0900 | [diff] [blame] | 10 | use_embedded_native_libs: true, |
Jiyong Park | a7266ac | 2021-05-17 21:57:24 +0900 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | // TODO(jiyong): make this a binary, not a shared library |
| 14 | cc_library_shared { |
| 15 | name: "MicrodroidTestNativeLib", |
| 16 | srcs: ["src/native/*.cpp"], |
Andrew Scull | 6661661 | 2021-06-17 16:41:03 +0000 | [diff] [blame] | 17 | shared_libs: [ |
| 18 | "android.system.keystore2-V1-ndk_platform", |
| 19 | "libbinder_ndk", |
| 20 | ], |
Jiyong Park | a7266ac | 2021-05-17 21:57:24 +0900 | [diff] [blame] | 21 | } |
Jiyong Park | 6de0857 | 2021-06-14 21:13:32 +0900 | [diff] [blame] | 22 | |
| 23 | genrule { |
| 24 | name: "MicrodroidTestApp.signed", |
| 25 | out: [ |
| 26 | "MicrodroidTestApp.apk", |
| 27 | "MicrodroidTestApp.apk.idsig", |
| 28 | ], |
| 29 | srcs: [":MicrodroidTestApp"], |
| 30 | tools:["apksigner"], |
| 31 | tool_files: ["test.keystore"], |
| 32 | cmd: "$(location apksigner) sign " + |
| 33 | "--ks $(location test.keystore) " + |
| 34 | "--ks-pass=pass:testkey --key-pass=pass:testkey " + |
| 35 | "--in $(in) " + |
| 36 | "--out $(genDir)/MicrodroidTestApp.apk", |
| 37 | // $(genDir)/MicrodroidTestApp.apk.idsig is generated implicitly |
| 38 | } |