1*b7c941bbSAndroid Build Coastguard Worker// Copyright (C) 2014 The Android Open Source Project 2*b7c941bbSAndroid Build Coastguard Worker// 3*b7c941bbSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*b7c941bbSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*b7c941bbSAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*b7c941bbSAndroid Build Coastguard Worker// 7*b7c941bbSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*b7c941bbSAndroid Build Coastguard Worker// 9*b7c941bbSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*b7c941bbSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*b7c941bbSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*b7c941bbSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*b7c941bbSAndroid Build Coastguard Worker// limitations under the License. 14*b7c941bbSAndroid Build Coastguard Worker// 15*b7c941bbSAndroid Build Coastguard Worker 16*b7c941bbSAndroid Build Coastguard Worker// Zip all the files in this directory together for merging into cts-verifier.zip. 17*b7c941bbSAndroid Build Coastguard Worker// build/envsetup.sh is used as a known file to get the location of the top of the 18*b7c941bbSAndroid Build Coastguard Worker// directory. 19*b7c941bbSAndroid Build Coastguard Workerpackage { 20*b7c941bbSAndroid Build Coastguard Worker default_applicable_licenses: ["Android-Apache-2.0"], 21*b7c941bbSAndroid Build Coastguard Worker} 22*b7c941bbSAndroid Build Coastguard Worker 23*b7c941bbSAndroid Build Coastguard Workergenrule { 24*b7c941bbSAndroid Build Coastguard Worker name: "camera-its", 25*b7c941bbSAndroid Build Coastguard Worker srcs: [ 26*b7c941bbSAndroid Build Coastguard Worker "**/*", 27*b7c941bbSAndroid Build Coastguard Worker // Placeholder file outside the glob used to find the top of the directory. 28*b7c941bbSAndroid Build Coastguard Worker "build/envsetup.sh", 29*b7c941bbSAndroid Build Coastguard Worker ], 30*b7c941bbSAndroid Build Coastguard Worker exclude_srcs: [ 31*b7c941bbSAndroid Build Coastguard Worker ".gitignore", 32*b7c941bbSAndroid Build Coastguard Worker "Android.bp", 33*b7c941bbSAndroid Build Coastguard Worker "OWNERS", 34*b7c941bbSAndroid Build Coastguard Worker ], 35*b7c941bbSAndroid Build Coastguard Worker tools: ["soong_zip"], 36*b7c941bbSAndroid Build Coastguard Worker out: ["camera-its.zip"], 37*b7c941bbSAndroid Build Coastguard Worker cmd: "echo $(locations **/*) >$(genDir)/list && " + 38*b7c941bbSAndroid Build Coastguard Worker "$(location soong_zip) -o $(out) -P android-cts-verifier/CameraITS -C $$(dirname $(location build/envsetup.sh))/.. -l $(genDir)/list", 39*b7c941bbSAndroid Build Coastguard Worker} 40