blob: 34a62152487d0db238a9ad9a8aa8b7d96a4cf2b7 [file] [log] [blame]
Joe Onoratocd779472023-08-19 19:49:52 -07001// 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
16java_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 Li547ae2c2023-07-28 14:01:06 +080022 ":com.android.window.flags.window-aconfig-java{.generated_srcjars}",
Seigo Nonaka1e157782023-08-22 09:57:46 +090023 ":com.android.text.flags-aconfig-java{.generated_srcjars}",
Joe Onoratocd779472023-08-19 19:49:52 -070024 ],
25}
26
27// Default flags for java_aconfig_libraries that go into framework-minus-apex
28// These libraries will not work standalone
29java_defaults {
30 name: "framework-minus-apex-aconfig-java-defaults",
31 sdk_version: "core_platform",
32 libs: ["fake_device_config"],
33}
34
Chris Li547ae2c2023-07-28 14:01:06 +080035// Camera
Joe Onoratocd779472023-08-19 19:49:52 -070036aconfig_declarations {
37 name: "com.android.hardware.camera2-aconfig",
38 package: "com.android.hardware.camera2",
39 srcs: ["core/java/android/hardware/camera2/camera_platform.aconfig"],
40}
41
42java_aconfig_library {
43 name: "com.android.hardware.camera2-aconfig-java",
44 aconfig_declarations: "com.android.hardware.camera2-aconfig",
45 defaults: ["framework-minus-apex-aconfig-java-defaults"],
46}
Chris Li547ae2c2023-07-28 14:01:06 +080047
48// Window
49aconfig_declarations {
50 name: "com.android.window.flags.window-aconfig",
51 package: "com.android.window.flags",
52 srcs: ["core/java/android/window/flags/*.aconfig"],
53}
54
55java_aconfig_library {
56 name: "com.android.window.flags.window-aconfig-java",
57 aconfig_declarations: "com.android.window.flags.window-aconfig",
58 defaults: ["framework-minus-apex-aconfig-java-defaults"],
59}
Seigo Nonaka1e157782023-08-22 09:57:46 +090060
61// Text
62aconfig_declarations {
63 name: "com.android.text.flags-aconfig",
64 package: "com.android.text.flags",
65 srcs: ["core/java/android/text/flags/*.aconfig"],
66}
67
68java_aconfig_library {
69 name: "com.android.text.flags-aconfig-java",
70 aconfig_declarations: "com.android.text.flags-aconfig",
71 defaults: ["framework-minus-apex-aconfig-java-defaults"],
72}