Add the PrintSpoolerLib module in Soong
Added the PrintSpoolerLib module that is used as one dependency of the
ArcPrintSpooler module.
Bug: 205649904
Bug: 211801887
Test: compared the two apk files built by Make and Soong
Test: TreeHugger
Change-Id: I9b6d0c9f4620ed58d5be55862f9a18dcfefa9cfa
diff --git a/packages/PrintSpooler/Android.bp b/packages/PrintSpooler/Android.bp
index 772c69f..6af3c66 100644
--- a/packages/PrintSpooler/Android.bp
+++ b/packages/PrintSpooler/Android.bp
@@ -34,18 +34,23 @@
android_app {
name: "PrintSpooler",
defaults: ["platform_app_defaults"],
+ resource_dirs: [],
+ platform_apis: true,
+ jni_libs: ["libprintspooler_jni"],
+ static_libs: [
+ "PrintSpoolerLib",
+ ],
+}
+android_library {
+ name: "PrintSpoolerLib",
resource_dirs: ["res"],
-
srcs: [
"src/**/*.java",
"src/com/android/printspooler/renderer/IPdfRenderer.aidl",
"src/com/android/printspooler/renderer/IPdfEditor.aidl",
],
-
platform_apis: true,
-
- jni_libs: ["libprintspooler_jni"],
static_libs: [
"android-support-v7-recyclerview",
"android-support-compat",
@@ -55,4 +60,5 @@
"android-support-fragment",
"android-support-annotations",
],
+ manifest: "AndroidManifest.xml",
}