diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2020-10-14 23:27:21 +0200 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2020-10-14 23:27:21 +0200 |
commit | 52c109192b96d84e4e648f407c887a38a9f13760 (patch) | |
tree | 94f8547d03ba6ea1e14f56aa392b0741de0bc91f | |
parent | 6e2b0a6ac2f31ac6d6efae0be63a8c8a1568aa5a (diff) | |
download | libz-sys-52c109192b96d84e4e648f407c887a38a9f13760.tar.gz |
Add Android.bp and tests
Test: libz-sys_host_test_src_lib
libz-sys_device_test_src_lib
Change-Id: I95ab7a10eb95411f422d080e1faef9360136650b
-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" + } + ] +} |