vendor_aospa_apps_ParanoidT.../Android.bp

141 lines
3.2 KiB
Plaintext
Raw Normal View History

2022-04-17 01:52:45 +00:00
//
// Copyright (C) 2022 StatiXOS
// Copyright (C) 2022 Paranoid Android
// SPDX-License-Identifer: Apache-2.0
2022-04-17 01:52:45 +00:00
//
package {
default_applicable_licenses: ["packages_apps_Aospa_ThemePicker_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "packages_apps_Aospa_ThemePicker_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
2022-04-17 01:52:45 +00:00
}
filegroup {
name: "ParanoidThemePicker_srcs",
2022-04-17 01:52:45 +00:00
srcs: [
"src/**/*.java",
"src/**/*.kt",
],
}
filegroup {
name: "ParanoidThemePicker_Manifest",
2022-04-17 01:52:45 +00:00
srcs: [
"AndroidManifest.xml",
],
}
genrule {
name: "ParanoidThemePicker_res",
2022-04-17 01:52:45 +00:00
tools: ["soong_zip"],
srcs: [
"res/**/*"
],
out: ["ParanoidThemePicker_res.zip"],
2022-04-17 01:52:45 +00:00
cmd: "INPUTS=($(in)) && "
+ "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && "
+ "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
}
genrule {
name: "ParanoidThemePicker_res_overrides",
tools: ["soong_zip"],
srcs: [
"res_override/**/*",
],
out: ["ThemePicker_res_overrides.zip"],
cmd: "INPUTS=($(in)) && "
+ "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && "
+ "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
}
android_library {
name: "ParanoidThemePicker-core",
2022-04-17 01:52:45 +00:00
defaults: ["ThemePicker_defaults"],
2022-04-17 01:52:45 +00:00
optimize: {
enabled: false,
},
resource_dirs: ["res", "res_override"],
resource_zips: [":WallpaperPicker2_res", ":ThemePicker_res"],
kotlincflags: ["-Xjvm-default=enable"],
}
//
// Build app code.
//
android_app {
name: "ParanoidThemePicker",
static_libs: [
"ParanoidThemePicker-core",
],
2022-04-17 01:52:45 +00:00
srcs: [
":WallpaperPicker2_srcs",
":ThemePicker_srcs",
":ParanoidThemePicker_srcs",
2022-04-17 01:52:45 +00:00
"src_override/**/*.java",
"src_override/**/*.kt",
],
jni_libs: [
"librenderscript-toolkit",
],
2022-04-17 01:52:45 +00:00
use_embedded_native_libs: true,
resource_zips: [":WallpaperPicker2_res", ":ThemePicker_res", ":ParanoidThemePicker_res", ":ParanoidThemePicker_res_overrides"],
2022-04-17 01:52:45 +00:00
optimize: {
enabled: false,
},
kotlincflags: ["-Xjvm-default=enable"],
certificate: "platform",
privileged: true,
system_ext_specific: true,
platform_apis: true,
manifest: "AndroidManifest.xml",
additional_manifests: [":WallpaperPicker2_Manifest", ":ThemePicker_Manifest"],
overrides: ["ThemePicker", "WallpaperPicker2", "WallpaperPicker"],
required: [
"privapp_whitelist_com.android.wallpaper",
"default_permissions_com.android.wallpaper",
"ThemesStub"
],
}
prebuilt_etc {
name: "privapp_whitelist_com.android.wallpaper",
system_ext_specific: true,
src: "privapp_whitelist_com.android.wallpaper.xml",
sub_dir: "permissions",
filename_from_src: true,
2022-04-17 01:52:45 +00:00
}
prebuilt_etc_xml {
name: "default_permissions_com.android.wallpaper",
src: "default_permissions_com.android.wallpaper.xml",
system_ext_specific: true,
filename_from_src: true,
sub_dir: "default-permissions",
}