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

Commit 097ca888 authored by Cole Faust's avatar Cole Faust
Browse files

Replace soong config module types with selects

select statements are a new syntax for conditionals in bp files
that require less boilerplate and expose the opportunity for
configuring the modules two different ways in a single build.
See go/soong-selects for more information.

Flag: EXEMPT refactor
Bug: 342006386
Test: Presubmits
Change-Id: I2a7d356eba8116041bf20b41aff6fbd38d37be4e
parent cb56fa97
Loading
Loading
Loading
Loading
+5 −24
Original line number Diff line number Diff line
@@ -107,31 +107,12 @@ cc_library {
    afdo: true,
}

soong_config_module_type {
    name: "aconfig_lib_cc_shared_link_defaults",
    module_type: "cc_defaults",
    config_namespace: "Aconfig",
    bool_variables: [
        "read_from_new_storage",
    ],
    properties: [
        "shared_libs",
    ],
}

soong_config_bool_variable {
    name: "read_from_new_storage",
}

aconfig_lib_cc_shared_link_defaults {
cc_defaults {
    name: "aconfig_lib_cc_shared_link.defaults",
    soong_config_variables: {
        read_from_new_storage: {
            shared_libs: [
                "libaconfig_storage_read_api_cc",
            ],
        },
    },
    shared_libs: select(release_flag("RELEASE_READ_FROM_NEW_STORAGE"), {
        true: ["libaconfig_storage_read_api_cc"],
        default: [],
    }),
}

cc_defaults {