diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 16:15:27 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 16:15:27 +0100 |
| commit | ccacaf0582bcea4a71ec8247ade0fd75e4ca99bf (patch) | |
| tree | ded2c1096149fee09faa9707aef55fc2af4319f9 /run_linux64.sh | |
| parent | 210404a73706993d197c1290d5a411394e176fbe (diff) | |
refactor library includes, build file
Diffstat (limited to 'run_linux64.sh')
| -rwxr-xr-x | run_linux64.sh | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/run_linux64.sh b/run_linux64.sh index 33341b7..7f87d6c 100755 --- a/run_linux64.sh +++ b/run_linux64.sh @@ -1,30 +1,21 @@ #!/bin/bash +DATE=$(date +"%d/%m/%Y") -# Set environment variables +# Output variables. OUT_DIR="build" OUT_EXE="OpenBooks" +# Source and library files. LIB_SOURCES=$(find libs -type f \( -name "*.cpp" -o -name "*.c" \)) +SOURCES=$(find src -type f \( -name "*.cpp" \) ! -path "src/countries/*") -SOURCES="src/*.cpp src/ui/*.cpp src/locales/*.cpp src/providers/*.cpp" +# Compiler flags. 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" - -DATE=$(date +"%d/%m/%Y") DEFINITIONS="-D_DATE_=\"$DATE\"" +INCLUDE_DIRS="-Ilibs/openssl-3.6.0-beta1/x64/include -Ilibs/ -Iinclude" + # 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" |
