1// Copyright (C) 2014 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: [ 18 "Android-Apache-2.0", 19 "frameworks_layoutlib_create_tests_license", 20 ], 21} 22 23license { 24 name: "frameworks_layoutlib_create_tests_license", 25 license_kinds: ["SPDX-license-identifier-EPL"], 26 license_text: ["LICENSE"], 27} 28 29java_test_host { 30 name: "layoutlib-create-tests", 31 32 // Only compile source java files in this lib. 33 srcs: ["src/**/*.java"], 34 35 java_resource_dirs: ["res"], 36 37 libs: [ 38 "layoutlib_create", 39 "junit", 40 "hamcrest", 41 ], 42 static_libs: ["ow2-asm"], 43 44 // Copy the jar to DIST_DIR for sdk builds 45 dist: { 46 targets: [ 47 "sdk", 48 "win_sdk", 49 ], 50 }, 51} 52 53java_library_host { 54 name: "mock_android", 55 56 srcs: ["res/mock_data/**/*.java"], 57 java_resource_dirs: ["res/mock_data"], 58} 59