Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 1 | // |
| 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 Badour | e9c2068 | 2021-03-19 03:30:57 -0700 | [diff] [blame] | 18 | package { |
| 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 20 | } |
| 21 | |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 22 | filegroup { |
| 23 | name: "ThemePicker_srcs", |
| 24 | srcs: [ |
| 25 | "src/**/*.java", |
| 26 | "src/**/*.kt", |
| 27 | ], |
| 28 | } |
| 29 | |
| 30 | filegroup { |
| 31 | name: "ThemePicker_Manifest", |
| 32 | srcs: [ |
| 33 | "AndroidManifest.xml", |
| 34 | ], |
| 35 | } |
| 36 | |
| 37 | genrule { |
| 38 | name: "ThemePicker_res", |
| 39 | tools: ["soong_zip"], |
| 40 | srcs: [ |
George Lin | 621fb8f | 2022-07-29 21:13:41 +0000 | [diff] [blame] | 41 | "res/**/*", |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 42 | ], |
| 43 | out: ["ThemePicker_res.zip"], |
| 44 | cmd: "INPUTS=($(in)) && " |
| 45 | + "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && " |
Colin Cross | 928f313 | 2021-05-11 18:32:09 +0000 | [diff] [blame] | 46 | + "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR" |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | // |
| 50 | // Build app code. |
| 51 | // |
| 52 | android_app { |
| 53 | name: "ThemePicker", |
| 54 | |
| 55 | static_libs: [ |
Kunhung Li | 53fc4d5 | 2022-02-12 16:58:06 +0800 | [diff] [blame] | 56 | "guava", |
| 57 | "monet", |
Alejandro Nijamkin | 0f02b08 | 2022-11-24 13:43:43 -0800 | [diff] [blame^] | 58 | "renderscript_toolkit", |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 59 | "wallpaper-common-deps", |
Chihhang Chuang | c21a3ff | 2021-06-08 12:53:24 +0800 | [diff] [blame] | 60 | "SettingsLibSettingsTheme", |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 61 | "SystemUI-statsd", |
Chihhang Chuang | c21a3ff | 2021-06-08 12:53:24 +0800 | [diff] [blame] | 62 | "styleprotoslite", |
Alejandro Nijamkin | 0f02b08 | 2022-11-24 13:43:43 -0800 | [diff] [blame^] | 63 | "androidx.lifecycle_lifecycle-runtime-ktx", |
| 64 | "androidx.lifecycle_lifecycle-viewmodel-ktx", |
| 65 | "androidx.recyclerview_recyclerview", |
| 66 | "SystemUICustomizationLib", |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 67 | ], |
| 68 | |
Ching-Sung Li | bdf3422 | 2022-03-30 15:19:13 +0800 | [diff] [blame] | 69 | jni_libs: [ |
| 70 | "librenderscript-toolkit", |
| 71 | ], |
| 72 | |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 73 | srcs: [ |
| 74 | ":WallpaperPicker2_srcs", |
| 75 | ":ThemePicker_srcs", |
| 76 | "src_override/**/*.java", |
| 77 | "src_override/**/*.kt", |
| 78 | ], |
| 79 | |
George Lin | 621fb8f | 2022-07-29 21:13:41 +0000 | [diff] [blame] | 80 | resource_dirs: [ |
| 81 | "res_override", |
| 82 | ], |
| 83 | |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 84 | use_embedded_native_libs: true, |
| 85 | |
| 86 | resource_zips: [":WallpaperPicker2_res", ":ThemePicker_res"], |
| 87 | |
| 88 | optimize: { |
| 89 | enabled: false, |
| 90 | }, |
Santiago Etchebehere | 260beaf | 2021-03-16 18:53:50 -0700 | [diff] [blame] | 91 | kotlincflags: ["-Xjvm-default=enable"], |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 92 | certificate: "", |
| 93 | |
| 94 | privileged: true, |
| 95 | system_ext_specific: true, |
| 96 | platform_apis: true, |
| 97 | manifest: "AndroidManifest.xml", |
Chihhang Chuang | d2ece57 | 2021-06-17 22:40:26 +0800 | [diff] [blame] | 98 | additional_manifests: [":WallpaperPicker2_Manifest"], |
Santiago Etchebehere | 0b1d66e | 2021-03-04 18:25:05 -0800 | [diff] [blame] | 99 | overrides: ["WallpaperPicker2"], |
| 100 | } |