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: [ |
Gil Cukierman | 4585b93 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 21 | ":android.os.flags-aconfig-java{.generated_srcjars}", |
Victor Hsieh | 529c1a73 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 22 | ":android.security.flags-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 23 | ":com.android.hardware.camera2-aconfig-java{.generated_srcjars}", |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 24 | ":com.android.window.flags.window-aconfig-java{.generated_srcjars}", |
Josep del Rio | c469f35 | 2023-08-24 18:03:06 +0000 | [diff] [blame] | 25 | ":com.android.hardware.input-aconfig-java{.generated_srcjars}", |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 26 | ":com.android.text.flags-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 27 | ], |
Zhi Dou | 3b92dcb | 2023-08-30 22:12:17 +0000 | [diff] [blame] | 28 | // Add aconfig-annotations-lib as a dependency for the optimization |
| 29 | libs: ["aconfig-annotations-lib"], |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | // Default flags for java_aconfig_libraries that go into framework-minus-apex |
| 33 | // These libraries will not work standalone |
| 34 | java_defaults { |
| 35 | name: "framework-minus-apex-aconfig-java-defaults", |
| 36 | sdk_version: "core_platform", |
| 37 | libs: ["fake_device_config"], |
| 38 | } |
| 39 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 40 | // Camera |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 41 | aconfig_declarations { |
| 42 | name: "com.android.hardware.camera2-aconfig", |
| 43 | package: "com.android.hardware.camera2", |
| 44 | srcs: ["core/java/android/hardware/camera2/camera_platform.aconfig"], |
| 45 | } |
| 46 | |
| 47 | java_aconfig_library { |
| 48 | name: "com.android.hardware.camera2-aconfig-java", |
| 49 | aconfig_declarations: "com.android.hardware.camera2-aconfig", |
| 50 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 51 | } |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 52 | |
| 53 | // Window |
| 54 | aconfig_declarations { |
| 55 | name: "com.android.window.flags.window-aconfig", |
| 56 | package: "com.android.window.flags", |
| 57 | srcs: ["core/java/android/window/flags/*.aconfig"], |
| 58 | } |
| 59 | |
| 60 | java_aconfig_library { |
| 61 | name: "com.android.window.flags.window-aconfig-java", |
| 62 | aconfig_declarations: "com.android.window.flags.window-aconfig", |
| 63 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 64 | } |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 65 | |
Josep del Rio | c469f35 | 2023-08-24 18:03:06 +0000 | [diff] [blame] | 66 | // Input |
| 67 | aconfig_declarations { |
| 68 | name: "com.android.hardware.input.input-aconfig", |
| 69 | package: "com.android.hardware.input", |
| 70 | srcs: ["core/java/android/hardware/input/*.aconfig"], |
| 71 | } |
| 72 | |
| 73 | java_aconfig_library { |
| 74 | name: "com.android.hardware.input-aconfig-java", |
| 75 | aconfig_declarations: "com.android.hardware.input.input-aconfig", |
| 76 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 77 | } |
| 78 | |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 79 | // Text |
| 80 | aconfig_declarations { |
| 81 | name: "com.android.text.flags-aconfig", |
| 82 | package: "com.android.text.flags", |
| 83 | srcs: ["core/java/android/text/flags/*.aconfig"], |
| 84 | } |
| 85 | |
| 86 | java_aconfig_library { |
| 87 | name: "com.android.text.flags-aconfig-java", |
| 88 | aconfig_declarations: "com.android.text.flags-aconfig", |
| 89 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 90 | } |
Victor Hsieh | 529c1a73 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 91 | |
Gil Cukierman | 4585b93 | 2023-08-29 15:57:05 +0000 | [diff] [blame] | 92 | // OS |
| 93 | aconfig_declarations { |
| 94 | name: "android.os.flags-aconfig", |
| 95 | package: "android.os", |
| 96 | srcs: ["core/java/android/os/*.aconfig"], |
| 97 | } |
| 98 | |
| 99 | java_aconfig_library { |
| 100 | name: "android.os.flags-aconfig-java", |
| 101 | aconfig_declarations: "android.os.flags-aconfig", |
| 102 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 103 | } |
| 104 | |
Victor Hsieh | 529c1a73 | 2023-08-21 17:20:25 -0700 | [diff] [blame] | 105 | // Security |
| 106 | aconfig_declarations { |
| 107 | name: "android.security.flags-aconfig", |
| 108 | package: "android.security", |
| 109 | srcs: ["core/java/android/security/*.aconfig"], |
| 110 | } |
| 111 | |
| 112 | java_aconfig_library { |
| 113 | name: "android.security.flags-aconfig-java", |
| 114 | aconfig_declarations: "android.security.flags-aconfig", |
| 115 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 116 | } |
Victor Hsieh | 65bec8d | 2023-08-29 14:04:02 -0700 | [diff] [blame] | 117 | |
| 118 | java_aconfig_library { |
| 119 | name: "android.security.flags-aconfig-java-host", |
| 120 | aconfig_declarations: "android.security.flags-aconfig", |
| 121 | host_supported: true, |
| 122 | test: true, |
| 123 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 124 | } |