From eeed387a65d9dbdafddffab8e6f8b507262ffaf5 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 14 Mar 2024 21:58:58 +0100 Subject: building on unix --- build_osx.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build_osx.sh') diff --git a/build_osx.sh b/build_osx.sh index bd30b10..382374d 100644 --- a/build_osx.sh +++ b/build_osx.sh @@ -3,18 +3,18 @@ shopt -s extglob OUT_DIR="bin/debug" -FLAGS="-g3 -w" +FLAGS="-g3 -w -DTS_DEBUG" if [[ $* == *-release* ]]; then OUT_DIR="bin/release" - FLAGS="-O3" + FLAGS="-O3 -DTS_RELEASE" fi mkdir -p $OUT_DIR # misc items are converted to header files, not embedded. (xxd -i LICENSE misc/osx/LICENSE.h) -g++ -m64 -std=c++17 $FLAGS -DUNICODE -o $OUT_DIR/text-search imgui/imgui*.cpp imgui/backends/imgui_impl_glfw.cpp src/widgets/*.cpp src/*.cpp imfiledialog/*.cpp src/unix/*.cpp -Iimgui -Iimgui/backends -Isrc -Isrc/unix -pthread -ldl -lglfw -lGL +g++ -m64 -std=c++17 $FLAGS -DUNICODE -o $OUT_DIR/text-search imgui/imgui*.cpp imgui/backends/imgui_impl_glfw.cpp src/widgets/*.cpp src/*.cpp imfiledialog/*.cpp src/unix/*.cpp mem/mem.cpp -Iimgui -Imem -Iimgui/backends -Isrc -Isrc/unix -pthread -ldl -lglfw -lGL if [[ $* == *-release* ]]; then cp $OUT_DIR/text-search misc/text-search.app/Contents/MacOS/text-search -- cgit v1.2.3-70-g09d2