Jamfile 895 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. project libdatachannel ;
  2. path-constant CWD : . ;
  3. lib libdatachannel
  4. : # sources
  5. [ glob ./src/*.cpp ]
  6. : # requirements
  7. <include>./include/rtc
  8. <define>USE_GNUTLS=0
  9. <cxxflags>"`pkg-config --cflags openssl glib-2.0 gobject-2.0 nice`"
  10. <library>/libdatachannel//usrsctp
  11. : # default build
  12. <link>static
  13. : # usage requirements
  14. <include>./include
  15. <cxxflags>-pthread
  16. <linkflags>"`pkg-config --libs openssl glib-2.0 gobject-2.0 nice`"
  17. ;
  18. alias usrsctp
  19. : # no sources
  20. : # no build requirements
  21. : # no default build
  22. : # usage requirements
  23. <include>./usrsctp/usrsctplib
  24. <library>libusrsctp.a
  25. ;
  26. make libusrsctp.a : : @make_libusrsctp ;
  27. actions make_libusrsctp
  28. {
  29. (cd $(CWD)/usrsctp && \
  30. ./bootstrap && \
  31. ./configure --enable-static --disable-debug CFLAGS="-fPIC -Wno-address-of-packed-member" && \
  32. make)
  33. cp $(CWD)/usrsctp/usrsctplib/.libs/libusrsctp.a $(<)
  34. }