Jamfile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <define>USE_JUICE=1
  10. <cxxflags>"`pkg-config --cflags openssl`"
  11. <library>/libdatachannel//usrsctp
  12. <library>/libdatachannel//juice
  13. : # default build
  14. <link>static
  15. : # usage requirements
  16. <include>./include
  17. <library>/libdatachannel//plog
  18. <cxxflags>-pthread
  19. <linkflags>"`pkg-config --libs openssl`"
  20. ;
  21. alias plog
  22. : # no sources
  23. : # no build requirements
  24. : # no default build
  25. : # usage requirements
  26. <include>./deps/plog/include
  27. ;
  28. alias usrsctp
  29. : # no sources
  30. : # no build requirements
  31. : # no default build
  32. : # usage requirements
  33. <include>./deps/usrsctp/usrsctplib
  34. <library>libusrsctp.a
  35. ;
  36. alias juice
  37. : # no sources
  38. : # no build requirements
  39. : # no default build
  40. : # usage requirements
  41. <include>./deps/libjuice/include
  42. <library>libjuice.a
  43. ;
  44. make libusrsctp.a : : @make_libusrsctp ;
  45. actions make_libusrsctp
  46. {
  47. (cd $(CWD)/deps/usrsctp && \
  48. ./bootstrap && \
  49. ./configure --enable-static --disable-debug CFLAGS="-fPIC -Wno-address-of-packed-member" && \
  50. make)
  51. cp $(CWD)/deps/usrsctp/usrsctplib/.libs/libusrsctp.a $(<)
  52. }
  53. make libjuice.a : : @make_libjuice ;
  54. actions make_libjuice
  55. {
  56. (cd $(CWD)/deps/libjuice && make USE_NETTLE=0)
  57. cp $(CWD)/deps/libjuice/libjuice.a $(<)
  58. }