| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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 $(<)
- }
|