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

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

Moving CrashRecoveryFiles to a separate Folder

We will create two copies of the files.
1. Platform: Used till we enable the crashrecovery apex
2. Module: This would be part of the module after cleaning up the flags
   and creating required SystemApis

Bug: 289203818
Test: TH
Flag: EXEMPT refactor
Change-Id: Ib201260fc85ed35a8e89abaac31968d0226ab7ee
parent 1bf1952d
Loading
Loading
Loading
Loading
+10 −47
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: "services-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",
                ":statslog-crashrecovery-java-gen",
        ":crashrecovery-platform-adaptor-srcs",
            ],
        },
    },
        ":statslog-crashrecovery-java-gen",
    ] + select(soong_config_variable("ANDROID", "release_crashrecovery_module"), {
        "true": [],
        default: ["platform/java/**/*.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",
    ],
}

module_filegroup {
filegroup {
    name: "services-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",
                ":statslog-crashrecovery-java-gen",
            ],
        },
    },
    srcs: ["module/java/**/*.java"],
    visibility: ["//packages/modules/CrashRecovery/service"],
}

+0 −0

File moved.

+0 −0

File moved.

Loading