mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
66 lines
1.4 KiB
Plaintext
66 lines
1.4 KiB
Plaintext
project libdatachannel ;
|
|
path-constant CWD : . ;
|
|
|
|
lib libdatachannel
|
|
: # sources
|
|
[ glob ./src/*.cpp ]
|
|
: # requirements
|
|
<include>./include/rtc
|
|
<define>USE_GNUTLS=0
|
|
<define>USE_JUICE=1
|
|
<cxxflags>"`pkg-config --cflags openssl`"
|
|
<library>/libdatachannel//usrsctp
|
|
<library>/libdatachannel//juice
|
|
: # default build
|
|
<link>static
|
|
: # usage requirements
|
|
<include>./include
|
|
<library>/libdatachannel//plog
|
|
<cxxflags>-pthread
|
|
<linkflags>"`pkg-config --libs openssl`"
|
|
;
|
|
|
|
alias plog
|
|
: # no sources
|
|
: # no build requirements
|
|
: # no default build
|
|
: # usage requirements
|
|
<include>./deps/plog/include
|
|
;
|
|
|
|
alias usrsctp
|
|
: # no sources
|
|
: # no build requirements
|
|
: # no default build
|
|
: # usage requirements
|
|
<include>./deps/usrsctp/usrsctplib
|
|
<library>libusrsctp.a
|
|
;
|
|
|
|
alias juice
|
|
: # no sources
|
|
: # no build requirements
|
|
: # no default build
|
|
: # usage requirements
|
|
<include>./deps/libjuice/include
|
|
<library>libjuice.a
|
|
;
|
|
|
|
make libusrsctp.a : : @make_libusrsctp ;
|
|
actions make_libusrsctp
|
|
{
|
|
(cd $(CWD)/deps/usrsctp && \
|
|
./bootstrap && \
|
|
./configure --enable-static --disable-debug CFLAGS="-fPIC -Wno-address-of-packed-member" && \
|
|
make)
|
|
cp $(CWD)/deps/usrsctp/usrsctplib/.libs/libusrsctp.a $(<)
|
|
}
|
|
|
|
make libjuice.a : : @make_libjuice ;
|
|
actions make_libjuice
|
|
{
|
|
(cd $(CWD)/deps/libjuice && make USE_NETTLE=0)
|
|
cp $(CWD)/deps/libjuice/libjuice.a $(<)
|
|
}
|
|
|