Colin Cross | 1766837 | 2017-10-18 13:01:13 -0700 | [diff] [blame] | 1 | // Copyright (C) 2013 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 | // |
| 15 | // |
| 16 | |
Bob Badour | 664a9e8 | 2021-02-12 14:51:36 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["external_objenesis_license"], |
| 19 | } |
| 20 | |
| 21 | // Added automatically by a large-scale-change |
| 22 | // |
| 23 | // large-scale-change included anything that looked like it might be a license |
| 24 | // text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. |
| 25 | // |
| 26 | // Please consider removing redundant or irrelevant files from 'license_text:'. |
| 27 | // See: http://go/android-license-faq |
| 28 | license { |
| 29 | name: "external_objenesis_license", |
| 30 | visibility: [":__subpackages__"], |
| 31 | license_kinds: [ |
| 32 | "SPDX-license-identifier-Apache-2.0", |
| 33 | ], |
| 34 | license_text: [ |
| 35 | "LICENSE.txt", |
| 36 | "NOTICE", |
| 37 | ], |
| 38 | } |
| 39 | |
Colin Cross | 1766837 | 2017-10-18 13:01:13 -0700 | [diff] [blame] | 40 | java_library_static { |
| 41 | name: "objenesis", |
| 42 | host_supported: true, |
| 43 | hostdex: true, |
| 44 | srcs: ["main/src/main/java/**/*.java"], |
Neil Fuller | 7f916a3 | 2018-10-09 17:37:33 +0100 | [diff] [blame] | 45 | sdk_version: "core_current", |
Colin Cross | 1766837 | 2017-10-18 13:01:13 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | // Compatibility library for old name of host target |
| 49 | java_library_host { |
| 50 | name: "objenesis-host", |
| 51 | static_libs: ["objenesis"], |
| 52 | } |
| 53 | |
| 54 | //-------------------------------- |
| 55 | // Builds the Objenesis TCK as a device-targeted library |
| 56 | |
| 57 | java_library_static { |
| 58 | name: "objenesis-tck", |
Paul Duffin | 0a76bda | 2019-06-12 12:48:37 +0100 | [diff] [blame] | 59 | sdk_version: "core_current", |
Colin Cross | 1766837 | 2017-10-18 13:01:13 -0700 | [diff] [blame] | 60 | |
| 61 | static_libs: ["objenesis"], |
| 62 | srcs: ["tck/src/main/java/**/*.java"], |
| 63 | java_resource_dirs: ["tck/src/main/resources"], |
| 64 | } |