Build system: symlink dependency libs to bin/lib

BodgeMaster-unfinished
BodgeMaster 2022-07-15 13:43:01 +02:00
parent b18a97713d
commit 362ec5f4f9
2 changed files with 7 additions and 1 deletions

View File

@ -73,7 +73,7 @@ mkdir -pv bin/tools
# add compile commands to this array # add compile commands to this array
COMPILE_COMMANDS=( COMPILE_COMMANDS=(
"$CXX_WITH_FLAGS src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt" "$CXX_WITH_FLAGS src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt"
"$CXX_WITH_FLAGS src/tools/hexnet.cpp -Ldependencies/sockpp-0.7.1/build -l:libsockpp.so -Idependencies/sockpp-0.7.1/include -o bin/tools/hexnet" "$CXX_WITH_FLAGS src/tools/hexnet.cpp -Lbin/lib -l:cli.so -l:libsockpp.so -Idependencies/sockpp-0.7.1/include -o bin/tools/hexnet"
) )
for command in ${!COMPILE_COMMANDS[@]}; do for command in ${!COMPILE_COMMANDS[@]}; do
echo "${COMPILE_COMMANDS[command]}" echo "${COMPILE_COMMANDS[command]}"

View File

@ -19,5 +19,11 @@ rm -rv ./bin
rm -vf .endianness rm -vf .endianness
rm -vf resources/check_endianness rm -vf resources/check_endianness
mkdir -v ./bin mkdir -v ./bin
mkdir -v ./bin/lib
ln -vs ../../dependencies/sockpp-0.7.1/build/libsockpp.so bin/lib/
ln -vs ../../dependencies/sockpp-0.7.1/build/libsockpp.so.0 bin/lib/
ln -vs ../../dependencies/sockpp-0.7.1/build/libsockpp.so.0.7.1 bin/lib/
set -v set -v
echo -n "" > ./bin/.placeholder echo -n "" > ./bin/.placeholder