1// 2// Copyright (C) 2020 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17// TODO(b/150663999): Change this to a filegroup when the build system is able 18// to process a large number of files. 19package { 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23genrule { 24 name: "vndk_abi_dump_zip", 25 tools: ["soong_zip"], 26 // Directories 33 and 34 contain symbolic links to LLNDK dumps. 27 // They do not have to be included in the zip. 28 cmd: "find prebuilts/abi-dumps/vndk -type f -name '*.lsdump' > $(genDir)/paths.txt && " + 29 "$(location soong_zip) -symlinks=false -o $(out) -C prebuilts/abi-dumps/vndk -l $(genDir)/paths.txt", 30 srcs: [ 31 "30/**/*.lsdump", 32 "31/**/*.lsdump", 33 "32/**/*.lsdump", 34 "33/**/*.lsdump", 35 "34/**/*.lsdump", 36 ], 37 out: ["vndk_abi_dump.zip"], 38} 39