diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2020-10-15 13:15:10 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-10-15 13:15:10 +0000 |
commit | 8910dc3bf856c038cac7a31e634cc95e6d938d16 (patch) | |
tree | 94f8547d03ba6ea1e14f56aa392b0741de0bc91f | |
parent | fc209bba1544a9932220063420ff9363e1966ba1 (diff) | |
parent | 52c109192b96d84e4e648f407c887a38a9f13760 (diff) | |
download | libz-sys-8910dc3bf856c038cac7a31e634cc95e6d938d16.tar.gz |
Add Android.bp and tests am: 52c109192b
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/libz-sys/+/1460745
Change-Id: I813c3672cc822f4dd43b05b3f4bfa15ad92c3152
-rw-r--r-- | Android.bp | 55 | ||||
-rw-r--r-- | TEST_MAPPING | 12 |
2 files changed, 67 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..f388c0b --- /dev/null +++ b/Android.bp @@ -0,0 +1,55 @@ +// This file is generated by cargo2android.py --run --device --dependencies --tests. + +rust_library { + name: "liblibz_sys", + host_supported: true, + crate_name: "libz_sys", + srcs: ["src/lib.rs"], + edition: "2015", + features: [ + "default", + "libc", + "stock-zlib", + ], + rustlibs: [ + "liblibc", + ], + shared_libs: [ + "libz", + ], +} + +rust_defaults { + name: "libz-sys_defaults", + crate_name: "libz_sys", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + "libc", + "stock-zlib", + ], + rustlibs: [ + "liblibc", + ], + shared_libs: [ + "libz", + ], +} + +rust_test_host { + name: "libz-sys_host_test_src_lib", + defaults: ["libz-sys_defaults"], +} + +rust_test { + name: "libz-sys_device_test_src_lib", + defaults: ["libz-sys_defaults"], +} + +// dependent_library ["feature_list"] +// cc-1.0.61 +// libc-0.2.79 "default,std" +// pkg-config-0.3.19 diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..19545f6 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,12 @@ +// Generated by cargo2android.py for tests in Android.bp +{ + "presubmit": [ + { + "name": "libz-sys_host_test_src_lib", + "host": true + }, + { + "name": "libz-sys_device_test_src_lib" + } + ] +} |