Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 1 | // Copyright (C) 2023 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 | // Aconfig declarations and libraries for the core framework |
| 16 | java_defaults { |
| 17 | name: "framework-minus-apex-aconfig-libraries", |
| 18 | |
| 19 | // Add java_aconfig_libraries to here to add them to the core framework |
| 20 | srcs: [ |
| 21 | ":com.android.hardware.camera2-aconfig-java{.generated_srcjars}", |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 22 | ":com.android.window.flags.window-aconfig-java{.generated_srcjars}", |
Josep del Rio | c469f35 | 2023-08-24 18:03:06 +0000 | [diff] [blame^] | 23 | ":com.android.hardware.input-aconfig-java{.generated_srcjars}", |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 24 | ":com.android.text.flags-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 25 | ], |
Zhi Dou | 3b92dcb | 2023-08-30 22:12:17 +0000 | [diff] [blame] | 26 | // Add aconfig-annotations-lib as a dependency for the optimization |
| 27 | libs: ["aconfig-annotations-lib"], |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | // Default flags for java_aconfig_libraries that go into framework-minus-apex |
| 31 | // These libraries will not work standalone |
| 32 | java_defaults { |
| 33 | name: "framework-minus-apex-aconfig-java-defaults", |
| 34 | sdk_version: "core_platform", |
| 35 | libs: ["fake_device_config"], |
| 36 | } |
| 37 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 38 | // Camera |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 39 | aconfig_declarations { |
| 40 | name: "com.android.hardware.camera2-aconfig", |
| 41 | package: "com.android.hardware.camera2", |
| 42 | srcs: ["core/java/android/hardware/camera2/camera_platform.aconfig"], |
| 43 | } |
| 44 | |
| 45 | java_aconfig_library { |
| 46 | name: "com.android.hardware.camera2-aconfig-java", |
| 47 | aconfig_declarations: "com.android.hardware.camera2-aconfig", |
| 48 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 49 | } |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 50 | |
| 51 | // Window |
| 52 | aconfig_declarations { |
| 53 | name: "com.android.window.flags.window-aconfig", |
| 54 | package: "com.android.window.flags", |
| 55 | srcs: ["core/java/android/window/flags/*.aconfig"], |
| 56 | } |
| 57 | |
| 58 | java_aconfig_library { |
| 59 | name: "com.android.window.flags.window-aconfig-java", |
| 60 | aconfig_declarations: "com.android.window.flags.window-aconfig", |
| 61 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 62 | } |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 63 | |
Josep del Rio | c469f35 | 2023-08-24 18:03:06 +0000 | [diff] [blame^] | 64 | // Input |
| 65 | aconfig_declarations { |
| 66 | name: "com.android.hardware.input.input-aconfig", |
| 67 | package: "com.android.hardware.input", |
| 68 | srcs: ["core/java/android/hardware/input/*.aconfig"], |
| 69 | } |
| 70 | |
| 71 | java_aconfig_library { |
| 72 | name: "com.android.hardware.input-aconfig-java", |
| 73 | aconfig_declarations: "com.android.hardware.input.input-aconfig", |
| 74 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 75 | } |
| 76 | |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 77 | // Text |
| 78 | aconfig_declarations { |
| 79 | name: "com.android.text.flags-aconfig", |
| 80 | package: "com.android.text.flags", |
| 81 | srcs: ["core/java/android/text/flags/*.aconfig"], |
| 82 | } |
| 83 | |
| 84 | java_aconfig_library { |
| 85 | name: "com.android.text.flags-aconfig-java", |
| 86 | aconfig_declarations: "com.android.text.flags-aconfig", |
| 87 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 88 | } |