From 31079061f125e7d8c152e3f6459fe2e3ec06a77d Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 10 Mar 2024 11:39:21 +0100 Subject: running on osx --- build_osx.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build_osx.sh (limited to 'build_osx.sh') diff --git a/build_osx.sh b/build_osx.sh new file mode 100644 index 0000000..82b41db --- /dev/null +++ b/build_osx.sh @@ -0,0 +1,19 @@ +shopt -s extglob + +OUT_DIR="bin/debug" +FLAGS="-g3 -w" + +if [[ $* == *-release* ]]; then + OUT_DIR="bin/release" + FLAGS="-O3" +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/osx/*.cpp -Iimgui -Iimgui/backends -Isrc -Isrc/osx -pthread -ldl -lglfw -lGL + +if [[ $* == *-r* ]]; then + ./$OUT_DIR/text-search +fi \ No newline at end of file -- cgit v1.2.3-70-g09d2