Skip to content

Commit

Permalink
osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rgb committed Jan 24, 2016
1 parent cac8f4a commit b5cdc51
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions build_osx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export MILTON_OSX_FLAGS="-I../third_party/SDL2-2.0.3/include -I../third_party/imgui -I../third_party -framework OpenGL -framework AudioUnit -framework CoreAudio -framework Carbon -framework ForceFeedback -framework IOKit -framework Cocoa -liconv -lm"
export MILTON_OSX_FLAGS="-I../src -I../third_party/SDL2-2.0.3/include -I../third_party/imgui -I../third_party -framework OpenGL -framework AudioUnit -framework CoreAudio -framework Carbon -framework ForceFeedback -framework IOKit -framework Cocoa -liconv -lm"
export MILTON_SRC_DIR=`pwd`/src # To get absolute paths in error msgs.


Expand All @@ -9,19 +9,16 @@ fi
cd build

# Omit -Wno-unused-(variable|function) to clean up code
clang++ -O2 -g -I../third_party $MILTON_SRC_DIR/headerlibs_impl.cc -c -o headerlibs_impl.o

clang++ -O3 -g -I../third_party $MILTON_SRC_DIR/headerlibs_impl.cc -c -o headerlibs_impl.o
ar rcs headerlibs_impl.a headerlibs_impl.o
clang++ \
-std=c++11 \
-Wall -Werror \
-Wno-missing-braces \
-Wno-unused-function \
-Wno-unused-variable \
-Wno-unused-result \
-Wno-writable-strings \
-Wno-c++11-compat-deprecated-writable-strings \
-fno-strict-aliasing \
-O2 -g \

clang++ -O3 -g \
-Isrc -Ithird_party -Ithird_party/imgui \
-std=c++11 -Wall -Werror -Wno-missing-braces -Wno-unused-function \
-Wno-unused-variable -Wno-unused-result -Wno-write-strings \
-Wno-c++11-compat-deprecated-writable-strings -fno-strict-aliasing \
-fno-omit-frame-pointer \
$MILTON_SRC_DIR/milton_unity_build.cc \
headerlibs_impl.a \
../third_party/build/libSDL2.a \
Expand Down

0 comments on commit b5cdc51

Please sign in to comment.