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

Commit 5b7787ec authored by Luke Huang's avatar Luke Huang
Browse files

Add a soong var that will be used to enable/disabe rust relevant targets

Add a soong variable which will be used to enable/disable rust
relevant targets. This makes it easy to enable or disable
the targets all together. It also makes it much easier to
automerge Android.bp changes from AOSP to mainline-prod without
merge conflict, because the build target definitions are always
the same, only the variable at the top of the file changes.

Bug: 155855709
Test: m

Change-Id: I21945b25e3e4e04e6110030d45b82fa1acf6c409
Merged-In: I21945b25e3e4e04e6110030d45b82fa1acf6c409
parent 47d1ca16
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -30,6 +30,10 @@ license {
    ],
}

// Whether to enable the targets in this file that require rust toolchain.
// Set to false in branches like mainline-prod where rust toolchain isn't supported.
support_rust_toolchain = true

cc_library_headers {
    name: "libnetd_resolv_headers",
    export_include_dirs: ["include"],