project libdatachannel ; path-constant CWD : . ; lib libdatachannel : # sources [ glob ./src/*.cpp ] : # requirements ./include/rtc USE_GNUTLS=0 USE_JUICE=1 "`pkg-config --cflags openssl`" /libdatachannel//usrsctp /libdatachannel//juice : # default build static : # usage requirements ./include /libdatachannel//plog -pthread "`pkg-config --libs openssl`" ; alias plog : # no sources : # no build requirements : # no default build : # usage requirements ./deps/plog/include ; alias usrsctp : # no sources : # no build requirements : # no default build : # usage requirements ./deps/usrsctp/usrsctplib libusrsctp.a ; alias juice : # no sources : # no build requirements : # no default build : # usage requirements ./deps/libjuice/include 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 $(<) }