diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 11:39:21 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 11:39:21 +0100 |
| commit | 31079061f125e7d8c152e3f6459fe2e3ec06a77d (patch) | |
| tree | c6e873ce1f8474cd68357c30e50c9c43d481d7ef /build_osx.sh | |
| parent | d671ea83612bcb683e675c041392922e66e57e58 (diff) | |
running on osx
Diffstat (limited to 'build_osx.sh')
| -rw-r--r-- | build_osx.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 |
