diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 15:28:38 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 15:28:38 +0100 |
| commit | 210404a73706993d197c1290d5a411394e176fbe (patch) | |
| tree | 93c3ea9fc4691ca42f26dd92c6e14627af0b47af /run_linux64.sh | |
| parent | a65e876f3277a7d7fca6e5129ac3e200dae2d0dc (diff) | |
remove unused lib files
Diffstat (limited to 'run_linux64.sh')
| -rwxr-xr-x | run_linux64.sh | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/run_linux64.sh b/run_linux64.sh index e712a69..33341b7 100755 --- a/run_linux64.sh +++ b/run_linux64.sh @@ -2,40 +2,34 @@ # Set environment variables OUT_DIR="build" -OUT_EXE="accounting" -LIB_SOURCES="libs/imgui-1.92.1/backends/imgui_impl_glfw.cpp \ -libs/imgui-1.92.1/backends/imgui_impl_opengl2.cpp \ -libs/imgui-1.92.1/imgui*.cpp \ -libs/simclist-1.5/simclist.c \ -libs/ImGuiDatePicker/*.cpp \ -libs/zip/src/*.c \ -libs/xml.c/src/*.c \ -libs/timer_lib/*.c \ -libs/stb/stb_image.c \ -libs/tinyfiledialogs/tinyfiledialogs.c" +OUT_EXE="OpenBooks" + +LIB_SOURCES=$(find libs -type f \( -name "*.cpp" -o -name "*.c" \)) + SOURCES="src/*.cpp src/ui/*.cpp src/locales/*.cpp src/providers/*.cpp" LIBS="-lstdc++ -lglfw -lGL -lm -lssl -lcrypto" FLAGS="-Wall -Wno-changes-meaning -Wno-write-strings -Wno-attributes -Wno-unused-variable -fpermissive -Wno-format-zero-length -ggdb" INCLUDE_DIRS="-Ilibs/imgui-1.92.1 \ --Ilibs/imgui-1.92.1/backends \ --Ilibs/openssl-3.6.0-beta1/x64/include \ --Ilibs/cpp-httplib \ --Ilibs/timer_lib \ --Ilibs/greatest \ --Ilibs/simclist-1.5 \ --Ilibs/tinyfiledialogs \ --Ilibs/zip/src \ --Ilibs/xml.c/src \ --Ilibs/ \ --Iinclude" + -Ilibs/imgui-1.92.1/backends \ + -Ilibs/openssl-3.6.0-beta1/x64/include \ + -Ilibs/cpp-httplib \ + -Ilibs/timer_lib \ + -Ilibs/greatest \ + -Ilibs/simclist-1.5 \ + -Ilibs/tinyfiledialogs \ + -Ilibs/zip/src \ + -Ilibs/xml.c/src \ + -Ilibs/ \ + -Iinclude" + DATE=$(date +"%d/%m/%Y") -DEFINITIONS="-D_PLATFORM_=\"linux64\" -D_DATE_=\"$DATE\"" +DEFINITIONS="-D_DATE_=\"$DATE\"" # Check for test flag if [ "$1" == "-t" ]; then SOURCES="tests/main.cpp src/administration.cpp src/administration_writer.cpp src/administration_reader.cpp src/strops.cpp src/logger.cpp src/locales.cpp src/locales/*.cpp src/providers/*.cpp src/importer.cpp src/memops.cpp src/countries.cpp" OUT_EXE="accounting_tests" - DEFINITIONS="-D_PLATFORM_=\"linux64\" -D_TESTING_MODE_ -D_DATE_=$DATE" + DEFINITIONS="-D_TESTING_MODE_ -D_DATE_=$DATE" fi # Compilation command |
