diff options
author | Alex Deymo <deymo@google.com> | 2017-01-11 16:54:52 -0800 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2017-01-24 13:23:43 -0800 |
commit | e8ed69493b7ab6237fb7114343789d3c213d2315 (patch) | |
tree | df2692b3cf0ba840019ac3d72da420d4bcaf3b86 /libfec/Android.bp | |
parent | ea69a18cd42bf757d49d733401f4ca6aa3994dc2 (diff) | |
download | extras-e8ed69493b7ab6237fb7114343789d3c213d2315.tar.gz |
Convert several libraries to soong.
This patch coverts libfec and its dependencies to soong. This also
updates the name of the libext2_uuid-host library removing the "-host"
suffix as that is also being converted to soong.
Also create a shared library for libfec given that it has quite a few
dependencies.
Bug: 34284069
Test: mmma system/extras; make checkbuild
Change-Id: Ib3ada6420bae32418a02ca92db664d0d24214e2f
Diffstat (limited to 'libfec/Android.bp')
-rw-r--r-- | libfec/Android.bp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libfec/Android.bp b/libfec/Android.bp new file mode 100644 index 00000000..1145fc41 --- /dev/null +++ b/libfec/Android.bp @@ -0,0 +1,37 @@ +// Copyright 2015 The Android Open Source Project + +cc_library { + name: "libfec", + host_supported: true, + srcs: [ + "fec_open.cpp", + "fec_read.cpp", + "fec_verity.cpp", + "fec_process.cpp", + ], + cflags: ["-Wall", "-Werror", "-O3", "-D_LARGEFILE64_SOURCE"], + export_include_dirs: ["include"], + // Exported header include/fec/io.h includes crypto_utils headers. + export_static_lib_headers: ["libcrypto_utils"], + + static_libs: [ + "libext4_utils", + "libfec_rs", + "libsquashfs_utils", + "libcrypto_utils", + "libcrypto", + "libcutils", + "libbase", + ], + + target: { + host: { + cflags: ["-D_GNU_SOURCE", "-DFEC_NO_KLOG"] + }, + }, + + clang: true, + sanitize: { + misc_undefined: ["integer"], + }, +} |