netatmo-algo/build-gui.sh

15 lines
1.3 KiB
Bash
Raw Normal View History

2022-02-18 12:44:17 +01:00
#! /bin/sh -e
export tup_vardict="/home/fabs/Code/netatmo-algo/tup-generate.vardict"
cd "src"
(clang++ -c a2.cpp -o a2.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb)
(clang++ -c bounding_box.cpp -o bounding_box.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb)
(clang++ -c frame.cpp -o frame.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb)
(clang++ -c mapping.cpp -o mapping.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb)
(clang++ -c mask.cpp -o mask.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb)
(clang++ -c pack.cpp -o pack.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb)
(clang++ -c png.cpp -o png.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb)
(ar rcs libpacking.a a2.o bounding_box.o frame.o mapping.o mask.o pack.o png.o)
(cd 3rd-party/raylib-4.0.0/src && make CC=clang PLATFORM=PLATFORM_DESKTOP RAYLIB_MODULE_AUDIO=FALSE RAYLIB_MODULE_MODELS=FALSE)
(clang++ -c main_gui.cpp -o main_gui.o -Wall -Werror -std=c++17 -fcolor-diagnostics -g -O1 -I./3rd-party/stb -I3rd-party/raylib-4.0.0/src)
2022-02-18 12:49:02 +01:00
(clang++ libpacking.a main_gui.o -o ../packing-gui -L. -lpacking -L3rd-party/raylib-4.0.0 -lraylib -lGL -lc -lm -lpthread -ldl -lrt -lX11)