forked from paullouisageneau/libdatachannel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Jamfile for easier integration
- Loading branch information
1 parent
b145182
commit bc0666b
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
project libdatachannel ; | ||
path-constant CWD : . ; | ||
|
||
lib libdatachannel | ||
: # sources | ||
[ glob ./src/*.cpp ] | ||
: # requirements | ||
<include>./include/rtc | ||
<cxxflags>"`pkg-config --cflags gnutls glib-2.0 gobject-2.0 nice`" | ||
<library>/libdatachannel//usrsctp | ||
: # default build | ||
<link>static | ||
: # usage requirements | ||
<include>./include | ||
<linkflags>"`pkg-config --libs gnutls 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 $(<) | ||
} | ||
|