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

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

Add crashrecovery build flag to move files

Files need to be moved from platform to the new apex.
Adding a flag to control this movement.

Bug: b/289203818
Test: m
Change-Id: I8fc1a2edbe0ef419261da4d285ce8fff6393b0be
parent 5bb6f919
Loading
Loading
Loading
Loading
+47 −1
Original line number Diff line number Diff line
filegroup {
soong_config_module_type {
    name: "platform_filegroup",
    module_type: "filegroup",
    config_namespace: "ANDROID",
    bool_variables: [
        "move_crashrecovery_files",
    ],
    properties: [
        "srcs",
    ],
}

platform_filegroup {
    name: "framework-crashrecovery-sources",
    srcs: [
        "java/**/*.java",
        "java/**/*.aidl",
    ],
    soong_config_variables: {
        // if the flag is enabled, then files would be moved to module
        move_crashrecovery_files: {
            srcs: [],
        },
    },
    path: "java",
    visibility: ["//frameworks/base:__subpackages__"],
}

soong_config_module_type {
    name: "module_filegroup",
    module_type: "filegroup",
    config_namespace: "ANDROID",
    bool_variables: [
        "move_crashrecovery_files",
    ],
    properties: [
        "srcs",
    ],
}

module_filegroup {
    name: "framework-crashrecovery-module-sources",
    srcs: [],
    soong_config_variables: {
        // if the flag is enabled, then files would be moved to module
        move_crashrecovery_files: {
            srcs: [
                "java/**/*.java",
                "java/**/*.aidl",
            ],
        },
    },
    path: "java",
    visibility: ["//packages/modules/CrashRecovery/framework"],
}
+47 −1
Original line number Diff line number Diff line
filegroup {
soong_config_module_type {
    name: "platform_filegroup",
    module_type: "filegroup",
    config_namespace: "ANDROID",
    bool_variables: [
        "move_crashrecovery_files",
    ],
    properties: [
        "srcs",
    ],
}

platform_filegroup {
    name: "services-crashrecovery-sources",
    srcs: [
        "java/**/*.java",
        "java/**/*.aidl",
        ":statslog-crashrecovery-java-gen",
    ],
    soong_config_variables: {
        // if the flag is enabled, then files would be moved to module
        move_crashrecovery_files: {
            srcs: [],
        },
    },
    visibility: ["//frameworks/base:__subpackages__"],
}

soong_config_module_type {
    name: "module_filegroup",
    module_type: "filegroup",
    config_namespace: "ANDROID",
    bool_variables: [
        "move_crashrecovery_files",
    ],
    properties: [
        "srcs",
    ],
}

module_filegroup {
    name: "services-crashrecovery-module-sources",
    srcs: [],
    soong_config_variables: {
        // if the flag is enabled, then files would be moved to module
        move_crashrecovery_files: {
            srcs: [
                "java/**/*.java",
                "java/**/*.aidl",
                ":statslog-crashrecovery-java-gen",
            ],
        },
    },
    visibility: ["//packages/modules/CrashRecovery/service"],
}

genrule {
    name: "statslog-crashrecovery-java-gen",
    tools: ["stats-log-api-gen"],