blob: d9d1f93137a0572e8a2bc8c78ab41bb77ce063f6 [file] [log] [blame] [edit]
android_app {
name: "omnirom-res",
use_resource_processor: false,
sdk_version: "core_platform",
certificate: "platform",
manifest: "AndroidManifest.xml",
resource_dirs: ["res"],
export_package_resources: true,
// Disable dexpreopt and verify_uses_libraries check as the app
// contains no Java code to be dexpreopted.
enforce_uses_libs: false,
dex_preopt: {
enabled: false,
},
// Soong special-cases omnirom-res to install this alongside
// the libraries at /system/framework/omnirom-res.apk.
// Generate private symbols into the org.omnirom.omnilib.R class
// so they are not accessible to 3rd party apps.
aaptflags: [
"--private-symbols",
"org.omnirom.omnilib",
// Framework doesn't need versioning since it IS the platform.
"--no-auto-version",
// Allow overlay to add resource
"--auto-add-overlay",
// Tell aapt to create "extending (non-application)" resource IDs,
// since these resources will be used by many apps.
"--allow-reserved-package-id",
// Use id 0x3f (one less than app id).
"--package-id",
"63",
],
}
// Used by frameworks
filegroup {
name: "omnirom-internal",
srcs: [
"src/org/omnirom/omnilib/utils/OmniSettings.java",
],
path: "src",
}
// The OmniRom Platform Framework Library
// ============================================================
omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES = [
"vendor.lineage.health-V2-java",
]
// Used by services
java_library {
name: "omnirom.internal",
static_libs: omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
srcs: [
"src/org/omnirom/omnilib/utils/*.java",
"sdk/**/*.java",
"sdk/**/I*.aidl",
// For the generated R.java and Manifest.java
":omnirom-res{.aapt.srcjar}",
],
}
java_library {
name: "OmniLib",
installable: true,
sdk_version: "core_platform",
static_libs: omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
srcs: [
"src/**/*.java",
"sdk/**/*.java",
"sdk/**/I*.aidl",
// For the generated R.java and Manifest.java
":omnirom-res{.aapt.srcjar}",
],
libs: [
"framework",
"OmniPreference",
"services",
],
// Include aidl files from omnirom.app namespace as well as internal src aidl files
aidl: {
local_include_dirs: ["sdk/src"],
},
}