platform_build_soong/rust
Colin Cross 01fd7ccbc7 Add sdk mutator for native modules
Compiling native modules against the NDK disables platform features
like ASAN.  For anything shipped on the system image there is no
reason to compile against the NDK.  Add a new mutator to Soong that
creates a platform and an SDK variant for modules that set
sdk_version, and ignore sdk_version for the platform variant.  The
SDK variant will be used for embedding in APKs that may be installed
on older platforms.  Apexes use their own variants that enforce
backwards compatibility.

Test: sdk_test.go
Test: TestJNIPackaging
Bug: 149591340
Change-Id: I7d72934aaee2e1326cc0ba5f29f51f14feec4521
Merged-In: I7d72934aaee2e1326cc0ba5f29f51f14feec4521
(cherry picked from commit 82e192c3ae)
2020-04-27 14:45:05 -07:00
..
config Add minijail to whitelist.go 2020-02-20 07:27:15 -08:00
OWNERS Rust owners, fix syntax error and more specific 2019-10-25 10:14:49 -07:00
androidmk.go Pass auto_gen_config setting in Android.bp to makefile 2020-01-06 16:21:10 -08:00
binary.go Install rust tests under nativetest(64) 2019-12-13 14:51:32 -08:00
binary_test.go Add rust_test and rust_test_host. 2019-10-29 17:19:03 -07:00
builder.go Add rust default compilation flags. 2019-11-20 10:14:33 -08:00
compiler.go Install rust tests under nativetest(64) 2019-12-13 14:51:32 -08:00
compiler_test.go Fix proc_macro dependency handling. 2019-09-24 10:35:20 -07:00
library.go rust: Do not pass -C prefer-dynamic for cdylib 2020-01-15 08:37:46 -08:00
library_test.go Enforce correct rust library file names. 2019-11-04 09:20:08 -08:00
prebuilt.go Build Rust Device Sysroots in Soong 2019-11-13 17:46:19 -08:00
proc_macro.go Install rust tests under nativetest(64) 2019-12-13 14:51:32 -08:00
rust.go Add sdk mutator for native modules 2020-04-27 14:45:05 -07:00
rust_test.go Move NDK test modules into cc/testing.go 2020-02-19 18:59:15 -08:00
test.go Install rust tests under nativetest(64) 2019-12-13 14:51:32 -08:00
test_test.go Add TestProperties, gen test config, fix names 2019-11-14 15:16:26 -08:00
testing.go Dedup registration for cc default test config 2019-12-19 19:19:40 +00:00