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

Commit 0b5eb9a4 authored by Jiyong Park's avatar Jiyong Park
Browse files

Replace framework-annotation-proc java lib with framework-all

The purpose of the java lib framework-annotation-proc is to run some
annotation processesors on source files in framework-all-sources.
However, running an annotation processor requires the compilation
of the entire source files; in fact, the output of the annotation
processors are created as byproduct of the compilation. This is a
duplicated compliation because we already are compiling the source files
for the framework-all java lib. To reduce the duplication, replacing
the references to framework-annotation-proc with framework-all, and
removing framework-annotation-proc.

Test: m
Change-Id: I449488cba235211374e2825df97aae84395e60b6
parent 51fc8a62
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -463,13 +463,6 @@ java_library {
    defaults: ["framework-defaults"],
    srcs: [":framework-all-sources"],
    installable: false,
}

java_library {
    name: "framework-annotation-proc",
    defaults: ["framework-aidl-export-defaults"],
    srcs: [":framework-all-sources"],
    installable: false,
    plugins: [
        "unsupportedappusage-annotation-processor",
        "compat-changeid-annotation-processor",
@@ -478,7 +471,7 @@ java_library {

platform_compat_config {
    name: "framework-platform-compat-config",
    src: ":framework-annotation-proc",
    src: ":framework-all",
}

// A library including just UnsupportedAppUsage.java classes.
@@ -1577,7 +1570,7 @@ aidl_mapping {

genrule {
    name: "framework-annotation-proc-index",
    srcs: [":framework-annotation-proc"],
    srcs: [":framework-all"],
    cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
    out: ["unsupportedappusage_index.csv"],
    dist: {