| 1234567891011121314151617181920212223242526272829303132333435363738 |
- project libdatachannel ;
- path-constant CWD : . ;
- lib libdatachannel
- : # sources
- [ glob ./src/*.cpp ]
- : # requirements
- <include>./include/rtc
- <define>USE_GNUTLS=0
- <cxxflags>"`pkg-config --cflags openssl glib-2.0 gobject-2.0 nice`"
- <library>/libdatachannel//usrsctp
- : # default build
- <link>static
- : # usage requirements
- <include>./include
- <cxxflags>-pthread
- <linkflags>"`pkg-config --libs openssl glib-2.0 gobject-2.0 nice`"
- ;
- alias usrsctp
- : # no sources
- : # no build requirements
- : # no default build
- : # usage requirements
- <include>./usrsctp/usrsctplib
- <library>libusrsctp.a
- ;
- make libusrsctp.a : : @make_libusrsctp ;
- actions make_libusrsctp
- {
- (cd $(CWD)/usrsctp && \
- ./bootstrap && \
- ./configure --enable-static --disable-debug CFLAGS="-fPIC -Wno-address-of-packed-member" && \
- make)
- cp $(CWD)/usrsctp/usrsctplib/.libs/libusrsctp.a $(<)
- }
|