diff options
author | Jorge E. Moreira <jemoreira@google.com> | 2020-07-09 14:52:44 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-09 14:52:44 +0000 |
commit | 95c68ac7e011a9368872b7524595196e26301e2b (patch) | |
tree | abc22239b208306931c1ebbc281575b49647960e | |
parent | a05acfb3f2cba4ed224b4f51a9b096dd716bd103 (diff) | |
parent | 15cf79114232658cbaba8a14914ef3ab36955441 (diff) | |
download | usrsctp-95c68ac7e011a9368872b7524595196e26301e2b.tar.gz |
Add Android.bp and metadata files am: a7fe57ba4b am: 15cf791142
Original change: https://android-review.googlesource.com/c/platform/external/usrsctp/+/1353829
Change-Id: I26a210c1c5ccd2ee7de760c68cff747e418b22d4
-rw-r--r-- | Android.bp | 58 | ||||
-rw-r--r-- | METADATA | 17 | ||||
-rw-r--r-- | MODULE_LICENSE_BSD | 0 |
3 files changed, 75 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 00000000..46a58738 --- /dev/null +++ b/Android.bp @@ -0,0 +1,58 @@ +cc_library_static { + name: "usrsctplib", + srcs: [ + "usrsctplib/netinet/sctp_asconf.c", + "usrsctplib/netinet/sctp_auth.c", + "usrsctplib/netinet/sctp_bsd_addr.c", + "usrsctplib/netinet/sctp_callout.c", + "usrsctplib/netinet/sctp_cc_functions.c", + "usrsctplib/netinet/sctp_crc32.c", + "usrsctplib/netinet/sctp_indata.c", + "usrsctplib/netinet/sctp_input.c", + "usrsctplib/netinet/sctp_output.c", + "usrsctplib/netinet/sctp_pcb.c", + "usrsctplib/netinet/sctp_peeloff.c", + "usrsctplib/netinet/sctp_sha1.c", + "usrsctplib/netinet/sctp_ss_functions.c", + "usrsctplib/netinet/sctp_sysctl.c", + "usrsctplib/netinet/sctp_timer.c", + "usrsctplib/netinet/sctp_userspace.c", + "usrsctplib/netinet/sctp_usrreq.c", + "usrsctplib/netinet/sctputil.c", + "usrsctplib/netinet6/sctp6_usrreq.c", + "usrsctplib/user_environment.c", + "usrsctplib/user_mbuf.c", + "usrsctplib/user_recv_thread.c", + "usrsctplib/user_socket.c", + ], + local_include_dirs: [ + "usrsctplib", + "usrsctplib/netinet", + ], + export_include_dirs: [ + ".", + "usrsctplib", + "usrsctplib/netinet", + ], + cflags: [ + "-Wno-unused-function", + "-Wno-deprecated-declarations", + "-Wno-unused-parameter", + "-Wno-address-of-packed-member", + "-DSCTP_PROCESS_LEVEL_LOCKS", + "-DSCTP_SIMPLE_ALLOCATOR", + "-DSCTP_USE_OPENSSL_SHA1", + "-D__Userspace__", + "-UINET", + "-UINET6", + "-D__Userspace_os_Linux", + "-D_GNU_SOURCE", + // TODO has different build flags for mac + ], + static_libs: [ + "libcrypto", + ], + host_supported: true, + device_supported: false, + visibility: ["//external/webrtc:__subpackages__"], +} diff --git a/METADATA b/METADATA new file mode 100644 index 00000000..94e402fe --- /dev/null +++ b/METADATA @@ -0,0 +1,17 @@ +name: "usrsctp" +description: + "A portable SCTP userland stack" + +third_party { + url { + type: HOMEPAGE + value: "https://github.com/sctplab/usrsctp" + } + url { + type: GIT + value: "https://github.com/sctplab/usrsctp.git" + } + version: "fbadabe48671c3273d2cf3e478e38cdd4d471c15" + last_upgrade_date { year: 2020 month: 6 day: 3 } + license_type: NOTICE +} diff --git a/MODULE_LICENSE_BSD b/MODULE_LICENSE_BSD new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/MODULE_LICENSE_BSD |