Files
vendor_lineage/bootanimation/Android.bp
Yumi Yukimura 3b29ed3826 bootanimation: Convert to Android.bp
Change-Id: Id82308522c3cf25d2fb89a1a18b78191c89c4931
2025-08-18 19:26:28 +00:00

62 lines
1.8 KiB
Plaintext

//
// SPDX-FileCopyrightText: The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
genrule {
name: "gen-bootanimation.zip",
tools: [
"mogrify",
"soong_zip",
],
tool_files: [
"bootanimation.tar",
"desc.txt",
"gen-bootanimation.sh",
],
out: ["bootanimation.zip"],
cmd: select((soong_config_variable("lineage_bootanimation", "height"),
soong_config_variable("lineage_bootanimation", "width"),
soong_config_variable("lineage_bootanimation", "half_res"),
soong_config_variable("lineage_bootanimation", "prebuilt_file")), {
(any @ height, any @ width, any @ half_res, any @ prebuilt_file):
"cp ../../../../../" + prebuilt_file + " $(out)",
(any @ height, any @ width, any @ half_res, default):
"$(location gen-bootanimation.sh)" +
" $(out)" +
" $(genDir)" +
" $(location bootanimation.tar)" +
" $(location desc.txt)" +
" $(location mogrify)" +
" $(location soong_zip)" +
" " + height +
" " + width +
" " + half_res,
(default, default, default, default):
"$(location gen-bootanimation.sh)" +
" $(out)" +
" $(genDir)" +
" $(location bootanimation.tar)" +
" $(location desc.txt)" +
" $(location mogrify)" +
" $(location soong_zip)" +
" 600" +
" 600" +
" false",
}),
}
prebuilt_media {
name: "bootanimation.zip",
src: ":gen-bootanimation.zip",
product_specific: true,
}
install_symlink {
name: "bootanimation-dark.zip",
product_specific: true,
installed_location: "media/bootanimation-dark.zip",
symlink_target: "bootanimation.zip",
}