forked from rllola/zeronet-torrent-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (22 loc) · 968 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
libtorrent-repo:
git clone https://github.com/arvidn/libtorrent.git libtorrent-repo
cd libtorrent-repo && git submodule update --init
cd libtorrent-repo && git checkout v2.0.4
boost:
wget -q https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.gz
tar -zxf boost_1_74_0.tar.gz
rm boost_1_74_0.tar.gz
cd boost_1_74_0 && ./bootstrap.sh
build-libtorrent: boost
cd libtorrent-repo/bindings/python && ../../../boost_1_74_0/b2 release --debug-configuration crypto=openssl cxxstd=17 python=3.8 libtorrent-link=static boost-link=static
cp libtorrent-repo/bindings/python/bin/gcc-9/release/crypto-openssl/cxxstd-17-iso/libtorrent-python-pic-on/python-3.8/libtorrent.so lib/
config-linux:
echo "using gcc ;" >> ~/user-config.jam
echo "using python : 3.8 ;" >> ~/user-config.jam
config-os:
echo "using darwin ;" >> ~/user-config.jam
echo "using python : 3.9 ;" >> ~/user-config.jam
test:
python3 test.py
clean:
rm libtorrent/*.so