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

Commit be9ab02c authored by Harshit Mahajan's avatar Harshit Mahajan Committed by Gerrit Code Review
Browse files

Merge "Add crashrecovery build flag to move files" into main

parents 3fe953d0 a4c39bb6
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"],