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

Commit e1f44b7a authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Clean up HSG build file

Move rules only used by tiny-framework tests to the subdirectory.

Bug: 292141694
Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh -s
Flag: TEST_ONLY
Change-Id: I22a3be64c845a8e37af4bed11cc11aa60702bb3a
parent a0beec3c
Loading
Loading
Loading
Loading
+0 −39
Original line number Diff line number Diff line
@@ -122,42 +122,3 @@ java_test_host {
    test_suites: ["general-tests"],
    visibility: ["//visibility:private"],
}

// File that contains the standard command line argumetns to hoststubgen.
// This is only for the prototype. The productionized version is "ravenwood-standard-options".
filegroup {
    name: "hoststubgen-standard-options",
    defaults: ["ravenwood-internal-only-visibility-filegroup"],
    srcs: [
        "hoststubgen-standard-options.txt",
    ],
}

hoststubgen_common_options = "$(location hoststubgen) " +
    // "--in-jar $(location :framework-all) " +
    // "--policy-override-file $(location framework-policy-override.txt) " +
    "@$(location :hoststubgen-standard-options) " +

    "--out-jar $(location host.jar) " +

    // "--keep-all-classes " + // Used it for an experiment. See KeepAllClassesFilter.
    "--gen-keep-all-file $(location hoststubgen_keep_all.txt) " +
    "--gen-input-dump-file $(location hoststubgen_dump.txt) " +
    ""

// Common defaults for stub generation.
// This one is not specific to Android APIs.
genrule_defaults {
    name: "hoststubgen-command-defaults",
    tools: ["hoststubgen"],
    srcs: [
        ":hoststubgen-standard-options",
    ],
    out: [
        "host.jar",

        // Following files are created just as FYI.
        "hoststubgen_keep_all.txt",
        "hoststubgen_dump.txt",
    ],
}
+40 −0
Original line number Diff line number Diff line
@@ -19,6 +19,46 @@ java_library {
    visibility: ["//frameworks/base/ravenwood/tools/hoststubgen:__subpackages__"],
}

// File that contains the standard command line argumetns to hoststubgen.
// This is only for the prototype. The productionized version is "ravenwood-standard-options".
filegroup {
    name: "hoststubgen-standard-options",
    srcs: [
        "hoststubgen-standard-options.txt",
    ],
    visibility: ["//visibility:private"],
}

hoststubgen_common_options = "$(location hoststubgen) " +
    // "--in-jar $(location :framework-all) " +
    // "--policy-override-file $(location framework-policy-override.txt) " +
    "@$(location :hoststubgen-standard-options) " +

    "--out-jar $(location host.jar) " +

    // "--keep-all-classes " + // Used it for an experiment. See KeepAllClassesFilter.
    "--gen-keep-all-file $(location hoststubgen_keep_all.txt) " +
    "--gen-input-dump-file $(location hoststubgen_dump.txt) " +
    ""

// Common defaults for stub generation.
// This one is not specific to Android APIs.
genrule_defaults {
    name: "hoststubgen-command-defaults",
    tools: ["hoststubgen"],
    srcs: [
        ":hoststubgen-standard-options",
    ],
    out: [
        "host.jar",

        // Following files are created just as FYI.
        "hoststubgen_keep_all.txt",
        "hoststubgen_dump.txt",
    ],
    visibility: ["//visibility:private"],
}

// Create stub/impl jars from "hoststubgen-test-tiny-framework", using the following 3 rules.
java_genrule_host {
    name: "hoststubgen-test-tiny-framework-host-base",