diff options
Diffstat (limited to 'build_osx.sh')
| -rw-r--r-- | build_osx.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
