blob: 76bc916b237ec1315ce05e0d654d470ed0e97cf6 [file] [log] [blame]
Colin Cross72a8c4a2019-05-28 14:03:41 -07001//
2// Copyright (C) 2008 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17//
18// Define rules to build temp_layoutlib.jar, which contains a subset of
19// the classes in framework.jar. The layoutlib_create tool is used to
20// transform the framework jar into the temp_layoutlib jar.
21//
22
Bob Badour5da52842021-02-12 20:17:07 -080023package {
Bob Badour182a1852022-01-19 15:33:57 -080024 // See: http://go/android-license-faq
25 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour5da52842021-02-12 20:17:07 -080026}
27
Colin Cross72a8c4a2019-05-28 14:03:41 -070028java_genrule_host {
29 name: "temp_layoutlib",
30 tools: ["layoutlib_create"],
31 out: ["temp_layoutlib.jar"],
32 srcs: [
Jerome Gaillarde9244ef2023-01-20 15:05:25 +000033 ":atf-prebuilt-502584086{.jar}",
Paul Duffind6d63812021-04-21 10:30:35 +010034 ":core-icu4j-for-host{.jar}",
Paul Duffin07ac8442021-04-19 17:26:27 +010035 ":core-libart-for-host{.jar}",
Jerome Gaillard0fe257a2020-01-02 17:50:50 +000036 ":framework-all{.jar}",
Colin Cross72a8c4a2019-05-28 14:03:41 -070037 ":ext{.jar}",
38 ":icu4j-icudata-jarjar{.jar}", // HOST
39 ":icu4j-icutzdata-jarjar{.jar}", // HOST
Jerome Gaillard6dc349b2022-06-06 18:02:13 +010040 ":monet{.jar}",
Colin Cross72a8c4a2019-05-28 14:03:41 -070041 ],
42 cmd: "rm -f $(out) && $(location layoutlib_create) --create-stub $(out) $(in)",
43}
Jerome Gaillard89531a22019-06-06 12:14:09 +010044
Jerome Gaillarda4937002021-09-22 16:00:25 +010045java_device_for_host {
46 name: "layoutlib_create-classpath",
47 libs: [
48 "conscrypt-for-host",
49 "core-icu4j-for-host",
50 "core-libart-for-host",
51 "ext",
52 "framework-all",
53 "icu4j-icudata-jarjar",
54 "icu4j-icutzdata-jarjar",
Jerome Gaillard6dc349b2022-06-06 18:02:13 +010055 "monet",
Jerome Gaillarda4937002021-09-22 16:00:25 +010056 ],
57}