1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_test { 21 name: "CtsWrapWrapDebugTestCases", 22 compile_multilib: "both", 23 dex_preopt: { 24 enabled: false, 25 }, 26 optimize: { 27 enabled: false, 28 }, 29 static_libs: [ 30 "compatibility-device-util-axt", 31 "androidx.test.rules", 32 "wrap_debug_lib", 33 "cts_tests_tests_wrap_src", 34 ], 35 libs: [ 36 "android.test.runner.stubs", 37 "android.test.base.stubs", 38 ], 39 test_suites: [ 40 "cts", 41 "general-tests", 42 ], 43 sdk_version: "current", 44 manifest: "AndroidManifest.xml", 45 // Jarjar to make WrapTest unique. 46 jarjar_rules: "jarjar-rules.txt", 47 use_embedded_native_libs: false, 48} 49 50java_genrule { 51 name: "wrap_debug_lib", 52 srcs: [":wrap.sh"], 53 tools: ["soong_zip"], 54 out: ["wrap_debug_abi.jar"], 55 cmd: "mkdir -p $(genDir)/lib/armeabi-v7a/ && " + 56 "mkdir -p $(genDir)/lib/arm64-v8a/ && " + 57 "mkdir -p $(genDir)/lib/x86/ && " + 58 "mkdir -p $(genDir)/lib/x86_64/ && " + 59 "cp $(in) $(genDir)/lib/armeabi-v7a/ && " + 60 "cp $(in) $(genDir)/lib/arm64-v8a/ && " + 61 "cp $(in) $(genDir)/lib/x86/ && " + 62 "cp $(in) $(genDir)/lib/x86_64/ && " + 63 "$(location soong_zip) -o $(out) -C $(genDir) " + 64 "-D $(genDir)/lib/armeabi-v7a/ -D $(genDir)/lib/arm64-v8a/ " + 65 "-D $(genDir)/lib/x86/ -D $(genDir)/lib/x86_64/", 66} 67