feat: add package ngtcp2, nghttp3
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
0751b65860
commit
2a30215d75
2 files changed
+78
No files matched your search
@@ -0,0 +1,38 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.18.0")
|
||||
description("HTTP/3 library written in C")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/ngtcp2/nghttp3/releases/download/v1.18.0/nghttp3-1.18.0.tar.xz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("libngtcp2-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DENABLE_LIB_ONLY=ON",
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
"-DBUILD_TESTING=OFF",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libnghttp3')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libnghttp3-dev')}/include",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libnghttp3")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libngtcp2 @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libnghttp3-dev")
|
||||
dep("libnghttp3 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libngtcp2-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,40 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.25.0")
|
||||
description("ngtcp2 project is an effort to implement IETF QUIC protocol")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://ngtcp2/ngtcp2#v1.25.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("aws-lc-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DBUILD_TESTING=OFF",
|
||||
"-DENABLE_OPENSSL=OFF",
|
||||
"-DENABLE_BORINGSSL=ON",
|
||||
"-DENABLE_LIB_ONLY=ON",
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libngtcp2')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libngtcp2-dev')}/include",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libngtcp2")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libssl @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libngtcp2-dev")
|
||||
dep("libngtcp2 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libssl-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in new issue
Block a user