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