Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e86e89ac authored by Jiyong Park's avatar Jiyong Park
Browse files

Add filegroups for services.* libraries

... in preparation for creating a stub library from services.jar

Bug: 139391334
Test: m

Exempt-From-Owner-Approval: cherry-pick from internal

Merged-In: Ifd6cfc77acf2284804a2f64011c2733b5c222369
(cherry picked from commit bae2e907)
Change-Id: Ifd6cfc77acf2284804a2f64011c2733b5c222369
parent b24e34c1
Loading
Loading
Loading
Loading
+35 −3
Original line number Diff line number Diff line
filegroup {
    name: "services-main-sources",
    srcs: ["java/**/*.java"],
    path: "java",
    visibility: ["//visibility:private"],
}

filegroup {
    name: "services-sources",
    srcs: [
        ":services.core-sources",
        ":services.accessibility-sources",
        ":services.appprediction-sources",
        ":services.appwidget-sources",
        ":services.autofill-sources",
        ":services.backup-sources",
        ":services.companion-sources",
        ":services.contentcapture-sources",
        ":services.contentsuggestions-sources",
        ":services.coverage-sources",
        ":services.devicepolicy-sources",
        ":services.midi-sources",
        ":services.net-sources",
        ":services.print-sources",
        ":services.restrictions-sources",
        ":services.startop.iorap-sources",
        ":services.systemcaptions-sources",
        ":services.usage-sources",
        ":services.usb-sources",
        ":services.voiceinteraction-sources",
    ],
    visibility: ["//visibility:private"],
}

// merge all required services into one jar
// ============================================================
java_library {
@@ -9,9 +43,7 @@ java_library {
        profile: "art-profile",
    },

    srcs: [
        "java/**/*.java",
    ],
    srcs: [":services-main-sources"],

    // The convention is to name each service module 'services.$(module_name)'
    static_libs: [
+8 −1
Original line number Diff line number Diff line
filegroup {
    name: "services.accessibility-sources",
    srcs: ["java/**/*.java"],
    path: "java",
    visibility: ["//frameworks/base/services"],
}

java_library_static {
    name: "services.accessibility",
    srcs: ["java/**/*.java"],
    srcs: [":services.accessibility-sources"],
    libs: ["services.core"],
}
+8 −1
Original line number Diff line number Diff line
filegroup {
    name: "services.appprediction-sources",
    srcs: ["java/**/*.java"],
    path: "java",
    visibility: ["//frameworks/base/services"],
}

java_library_static {
    name: "services.appprediction",
    srcs: ["java/**/*.java"],
    srcs: [":services.appprediction-sources"],
    libs: ["services.core"],
}
+8 −1
Original line number Diff line number Diff line
filegroup {
    name: "services.appwidget-sources",
    srcs: ["java/**/*.java"],
    path: "java",
    visibility: ["//frameworks/base/services"],
}

java_library_static {
    name: "services.appwidget",
    srcs: ["java/**/*.java"],
    srcs: [":services.appwidget-sources"],
    libs: ["services.core"],
}
+8 −1
Original line number Diff line number Diff line
filegroup {
    name: "services.autofill-sources",
    srcs: ["java/**/*.java"],
    path: "java",
    visibility: ["//frameworks/base/services"],
}

java_library_static {
    name: "services.autofill",
    srcs: ["java/**/*.java"],
    srcs: [":services.autofill-sources"],
    libs: ["services.core"],
}
Loading