blob: 7bbbb1022619dd6d809b07a7f38ebd30670c9524 [file] [log] [blame]
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -08001//
2// Copyright (C) 2021 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
Bob Badoure9c20682021-03-19 03:30:57 -070018package {
19 default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080022filegroup {
23 name: "ThemePicker_srcs",
24 srcs: [
25 "src/**/*.java",
26 "src/**/*.kt",
27 ],
28}
29
30filegroup {
31 name: "ThemePicker_Manifest",
32 srcs: [
33 "AndroidManifest.xml",
34 ],
35}
36
37genrule {
38 name: "ThemePicker_res",
39 tools: ["soong_zip"],
40 srcs: [
George Lin621fb8f2022-07-29 21:13:41 +000041 "res/**/*",
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080042 ],
43 out: ["ThemePicker_res.zip"],
44 cmd: "INPUTS=($(in)) && "
45 + "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && "
Colin Cross928f3132021-05-11 18:32:09 +000046 + "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080047}
48
49//
50// Build app code.
51//
52android_app {
53 name: "ThemePicker",
54
55 static_libs: [
Kunhung Li53fc4d52022-02-12 16:58:06 +080056 "guava",
57 "monet",
Ching-Sung Libdf34222022-03-30 15:19:13 +080058 "renderscript_toolkit",
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080059 "wallpaper-common-deps",
Chihhang Chuangc21a3ff2021-06-08 12:53:24 +080060 "SettingsLibSettingsTheme",
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080061 "SystemUI-statsd",
Chihhang Chuangc21a3ff2021-06-08 12:53:24 +080062 "styleprotoslite",
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080063 ],
64
Ching-Sung Libdf34222022-03-30 15:19:13 +080065 jni_libs: [
66 "librenderscript-toolkit",
67 ],
68
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080069 srcs: [
70 ":WallpaperPicker2_srcs",
71 ":ThemePicker_srcs",
72 "src_override/**/*.java",
73 "src_override/**/*.kt",
74 ],
75
George Lin621fb8f2022-07-29 21:13:41 +000076 resource_dirs: [
77 "res_override",
78 ],
79
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080080 use_embedded_native_libs: true,
81
82 resource_zips: [":WallpaperPicker2_res", ":ThemePicker_res"],
83
84 optimize: {
85 enabled: false,
86 },
Santiago Etchebehere260beaf2021-03-16 18:53:50 -070087 kotlincflags: ["-Xjvm-default=enable"],
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080088 certificate: "",
89
90 privileged: true,
91 system_ext_specific: true,
92 platform_apis: true,
93 manifest: "AndroidManifest.xml",
Chihhang Chuangd2ece572021-06-17 22:40:26 +080094 additional_manifests: [":WallpaperPicker2_Manifest"],
Santiago Etchebehere0b1d66e2021-03-04 18:25:05 -080095 overrides: ["WallpaperPicker2"],
96}