blob: 77d1aa52e8a5a304c4ae7c76227bc695739cb368 [file] [log] [blame]
micky38798506412023-10-23 16:33:47 +02001android_app {
2 name: "omnirom-res",
3 sdk_version: "core_platform",
4 certificate: "platform",
5 manifest: "AndroidManifest.xml",
6
Vachounetb669cc82020-10-14 16:25:09 +02007 resource_dirs: ["res"],
micky38798506412023-10-23 16:33:47 +02008 export_package_resources: true,
9
10 // Disable dexpreopt and verify_uses_libraries check as the app
11 // contains no Java code to be dexpreopted.
12 enforce_uses_libs: false,
13 dex_preopt: {
14 enabled: false,
15 },
16
17 // Soong special-cases omnirom-res to install this alongside
18 // the libraries at /system/framework/omnirom-res.apk.
19
20 // Generate private symbols into the org.omnirom.omnilib.R class
21 // so they are not accessible to 3rd party apps.
22 aaptflags: [
23 "--private-symbols",
24 "org.omnirom.omnilib",
25
26 // Framework doesn't need versioning since it IS the platform.
27 "--no-auto-version",
28
29 // Allow overlay to add resource
30 "--auto-add-overlay",
31
32 // Tell aapt to create "extending (non-application)" resource IDs,
33 // since these resources will be used by many apps.
34 "--allow-reserved-package-id",
35 // Use id 0x3f (one less than app id).
36 "--package-id",
37 "63",
38 ],
Vachounetb669cc82020-10-14 16:25:09 +020039}
micky38731a81aa2022-08-31 14:13:50 +020040
micky387e3f75892025-01-05 19:53:41 -050041// Used by frameworks
micky387d8df7542023-10-25 13:51:23 +020042filegroup {
43 name: "omnirom-internal",
44 srcs: [
45 "src/org/omnirom/omnilib/utils/OmniSettings.java",
46 ],
47 path: "src",
48}
49
Luofan Chen120a40d2023-03-01 19:12:53 +080050// The OmniRom Platform Framework Library
51// ============================================================
52
53omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES = [
Oliver Scott778f7752025-02-20 12:37:48 -050054 "vendor.lineage.health-V2-java",
Luofan Chen120a40d2023-03-01 19:12:53 +080055]
56
micky387e3f75892025-01-05 19:53:41 -050057// Used by services
58java_library {
59 name: "omnirom.internal",
Luofan Chen120a40d2023-03-01 19:12:53 +080060 static_libs: omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
micky387e3f75892025-01-05 19:53:41 -050061 srcs: [
62 "src/org/omnirom/omnilib/utils/*.java",
Luofan Chen120a40d2023-03-01 19:12:53 +080063 "sdk/**/*.java",
64 "sdk/**/I*.aidl",
micky387e3f75892025-01-05 19:53:41 -050065
66 // For the generated R.java and Manifest.java
67 ":omnirom-res{.aapt.srcjar}",
68 ],
69}
70
micky38798506412023-10-23 16:33:47 +020071java_library {
72 name: "OmniLib",
73 installable: true,
74 sdk_version: "core_platform",
Luofan Chen120a40d2023-03-01 19:12:53 +080075 static_libs: omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
micky38798506412023-10-23 16:33:47 +020076
77 srcs: [
78 "src/**/*.java",
Luofan Chen120a40d2023-03-01 19:12:53 +080079 "sdk/**/*.java",
80 "sdk/**/I*.aidl",
micky38798506412023-10-23 16:33:47 +020081
82 // For the generated R.java and Manifest.java
83 ":omnirom-res{.aapt.srcjar}",
84 ],
85
86 libs: [
87 "framework",
88 "OmniPreference",
Adnan Begovic01561422025-01-04 16:13:21 -050089 "services",
micky38798506412023-10-23 16:33:47 +020090 ],
Luofan Chen120a40d2023-03-01 19:12:53 +080091
92 // Include aidl files from omnirom.app namespace as well as internal src aidl files
93 aidl: {
94 local_include_dirs: ["sdk/src"],
95 },
micky38731a81aa2022-08-31 14:13:50 +020096}