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

Commit b0ec6da6 authored by Harshit Mahajan's avatar Harshit Mahajan
Browse files

Remove separate framework crashrecovery filegroups

We will have a single filegroup that would be used in both:
1. framework platform crashrecovery jar
2. framework crashrecovery jar in apex.
We will control the jar being used behind the build flag.

Bug: 289203818
Test: TH
Flag: build.release_crashrecovery_module
Change-Id: I104ca9b6f1150feee9f5952b596c2b6fd0eb8774
parent bb1810c4
Loading
Loading
Loading
Loading
+8 −49
Original line number Diff line number Diff line
soong_config_module_type {
    name: "platform_filegroup",
    module_type: "filegroup",
    config_namespace: "ANDROID",
    bool_variables: [
        "crashrecovery_files_in_platform",
    ],
    properties: [
        "srcs",
    ],
}

platform_filegroup {
filegroup {
    name: "framework-crashrecovery-sources",
    soong_config_variables: {
        // if this flag is enabled, then files are part of platform
        crashrecovery_files_in_platform: {
    srcs: [
        "java/**/*.java",
        "java/**/*.aidl",
    ],
        },
    },
    path: "java",
    visibility: ["//frameworks/base:__subpackages__"],
}

soong_config_module_type {
    name: "module_filegroup",
    module_type: "filegroup",
    config_namespace: "ANDROID",
    bool_variables: [
        "crashrecovery_files_in_module",
    ],
    properties: [
        "srcs",
    visibility: [
        "//frameworks/base:__subpackages__",
        "//packages/modules/CrashRecovery/framework",
    ],
}

module_filegroup {
    name: "framework-crashrecovery-module-sources",
    soong_config_variables: {
        // if this flag is enabled, then files are part of module
        crashrecovery_files_in_module: {
            srcs: [
                "java/**/*.java",
                "java/**/*.aidl",
            ],
        },
    },
    path: "java",
    visibility: ["//packages/modules/CrashRecovery/framework"],
}