Merge "Revert "Remove renderscript related samples""

This commit is contained in:
Treehugger Robot
2022-11-08 21:51:45 +00:00
committed by Gerrit Code Review

View File

@@ -15,6 +15,12 @@ android_sdk_repo_host {
":build_tools_runtime_properties", ":build_tools_runtime_properties",
], ],
merge_zips: [
":build-tools_renderscript_includes",
":renderscript-clang-include",
":renderscript_sdk_prebuilts",
],
multilib: { multilib: {
common: { common: {
deps: [ deps: [
@@ -51,8 +57,10 @@ android_sdk_repo_host {
"aapt2", "aapt2",
"aidl", "aidl",
"apksigner", "apksigner",
"bcc_compat",
"d8", "d8",
"dexdump", "dexdump",
"llvm-rs-cc",
"split-select", "split-select",
"zipalign", "zipalign",
], ],
@@ -70,6 +78,8 @@ android_sdk_repo_host {
"aapt", "aapt",
"aapt2", "aapt2",
"aidl", "aidl",
"bcc_compat",
"llvm-rs-cc",
"split-select", "split-select",
"zipalign", "zipalign",
], ],
@@ -86,9 +96,12 @@ android_sdk_repo_host {
"aapt2", "aapt2",
"aidl", "aidl",
"apksigner", "apksigner",
"bcc_compat",
"d8", "d8",
"dexdump", "dexdump",
"libwinpthread-1", "libwinpthread-1",
"lld",
"llvm-rs-cc",
"split-select", "split-select",
"zipalign", "zipalign",
], ],
@@ -118,11 +131,13 @@ android_sdk_repo_host {
"aapt.exe", "aapt.exe",
"aapt2.exe", "aapt2.exe",
"aidl.exe", "aidl.exe",
"bcc_compat.exe",
"dexdump.exe", "dexdump.exe",
"lib64/*.dll", "lib64/*.dll",
"lld-bin/*.dll", "lld-bin/*.dll",
"lld-bin/*.exe", "lld-bin/*.exe",
"lld.exe", "lld.exe",
"llvm-rs-cc.exe",
"split-select.exe", "split-select.exe",
"zipalign.exe", "zipalign.exe",
], ],
@@ -130,6 +145,18 @@ android_sdk_repo_host {
}, },
} }
// Rename rs_script_api files to renderscript/include/...
genrule {
name: "build-tools_renderscript_includes",
visibility: ["//visibility:private"],
tools: ["soong_zip"],
cmd: "echo $(in) >$(genDir)/list && " +
"$(location soong_zip) -o $(out) -P renderscript " +
"-C $$(dirname $$(dirname $$(awk '{ print $$1 }' $(genDir)/list))) -l $(genDir)/list",
srcs: [":rs_script_api"],
out: ["rs_script_api.zip"],
}
// This is a device library, so it can't be used by android_sdk_repo_host directly. // This is a device library, so it can't be used by android_sdk_repo_host directly.
java_device_for_host { java_device_for_host {
name: "build-tools_core-lambda-stubs-device", name: "build-tools_core-lambda-stubs-device",