A PeerTube client in C++
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
1.3 KiB

# https://github.com/arvidn/libtorrent/pull/4123
# using submodule b/c it has to be the master branch
CFLAGS=-I"./include/" -I"./deps/libtorrent/include/" -I"./deps/"
# -I"./deps/libtorrent/include/libtorrent/"
LDFLAGS= -Dwebtorrent=ON -DTORRENT_USE_OPENSSL -lpthread -lcurl -lcurlpp -lcurses
# -lboost_system -ltorrent-rasterbar
# building libtorrent with webtorrent support
# git submodule init --recursive
# cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -Dwebtorrent=ON -G Ninja ..
LIBTORRENT= ./deps/libtorrent/build/libtorrent-rasterbar.so.2.0.5
# -Wl,-soname
LD_LIBRARY_PATH=./deps/libtorrent/build/
all: | main
# something to avoid prepending LD_LIBRARY_PATH=./deps/... every time.
# better if compilted to just search in relative path to begin with
patchelf --remove-needed libtorrent-rasterbar.so.2.0 cppia
patchelf --add-needed ./deps/libtorrent/build/libtorrent-rasterbar.so.2.0 cppia
main:
g++ main.cpp $(CFLAGS) $(LDFLAGS) $(LIBTORRENT) -std=c++17 -o cppia
video:
g++ ./deps/peertube/model/video.c -std=c++17
ncurses:
g++ demo_window.cpp -lcurses -o window
OPENAPI_GENERATOR=/home/user/Programs/openapi-generator-cli.jar
PEERTUBE_API=./deps/peertube/
openapi:
java -jar $(OPENAPI_GENERATOR) generate -i peertube.yaml -g c -o $(PEERTUBE_API)