-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathAndroid.bp
68 lines (67 loc) · 1.93 KB
/
Android.bp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
android_app {
name: "Gallery2",
static_libs: [
"androidx.fragment_fragment",
"androidx.legacy_legacy-support-core-ui",
"androidx.core_core",
"androidx.legacy_legacy-support-v13",
"xmp_toolkit",
"mp4parser",
"com.google.android.material_material",
"androidx.preference_preference",
],
srcs: [
"src/**/*.java",
"src/**/*.kt",
"src_pd/**/*.java",
":Gallery2-rscript{Gallery2-rscript.srcjar}",
],
resource_dirs: ["res"],
product_specific: true,
overrides: [
"Gallery",
"Gallery3D",
"GalleryNew3D",
],
sdk_version: "current",
target_sdk_version: "28",
min_sdk_version: "28",
jni_libs: [
"libjni_eglfence",
"libjni_filtershow_filters",
"libjni_jpegstream",
],
use_embedded_native_libs: true,
compile_multilib: "both",
optimize: {
proguard_flags_files: ["proguard.flags"],
},
libs: ["org.apache.http.legacy"],
optional_uses_libs: ["com.google.android.media.effects"],
kotlincflags: ["-Xjvm-default=enable"],
}
genrule {
name: "Gallery2-rscript",
srcs: [
"src/**/*.rscript",
":rs_script_api",
":rs_clang_headers",
],
tools: [
"llvm-rs-cc",
"soong_zip",
],
out: [
"Gallery2-rscript.srcjar",
],
cmd: "for f in $(locations src/**/*.rscript); do " +
" $(location llvm-rs-cc) -Wno-error=deprecated-declarations " +
" -o $(genDir)/res/raw -p $(genDir)/src " +
" -I $$(dirname $$(echo $(locations :rs_script_api) | awk '{ print $$1 }')) " +
" -I $$(dirname $$(echo $(locations :rs_clang_headers) | awk '{ print $$1 }')) $${f}; " +
"done && " +
"$(location soong_zip) -srcjar -o $(location Gallery2-rscript.srcjar) -C $(genDir)/src -D $(genDir)/src",
}