added mac make
parent
8528c3e38e
commit
de007125f2
27
MAKE.sh
27
MAKE.sh
|
@ -215,12 +215,24 @@ if [ "$(uname)" = "Darwin" ]; then
|
|||
chmod +x tools/ninja.osx
|
||||
chmod +x demos/lua/luajit.osx
|
||||
|
||||
export args="-w -Iengine/ -framework cocoa -framework iokit -framework CoreFoundation -framework CoreAudio -framework AudioToolbox $args"
|
||||
export args="-w -Iengine/ -framework cocoa -framework iokit -framework CoreFoundation -framework CoreAudio -framework AudioToolbox $args $flags"
|
||||
echo build=$build, type=$dll, cc=$cc, args=$args
|
||||
|
||||
# framework (as dynamic library)
|
||||
if [ "$dll" = "dll" ]; then
|
||||
echo libv4k && cc -ObjC -dynamiclib -o libv4k.dylib engine/v4k.c $flags $args
|
||||
cp libv4k.dylib demos/lua
|
||||
export import=libv4k.dylib
|
||||
else
|
||||
# framework
|
||||
echo v4k && cc -c -ObjC engine/v4k.c $flags $args
|
||||
export import=v4k.o
|
||||
fi
|
||||
|
||||
# User-defined apps
|
||||
if [ -n "$app" ]; then
|
||||
echo "$app" && $cc -ObjC "$app" engine/v4k.c $args -o "v4k.osx" || rc=1
|
||||
echo "$app" && $cc -ObjC "$app" libv4k.dylib $args -o "v4k.osx" || rc=1
|
||||
# echo "$app" && $cc -ObjC "$app" engine/v4k.c $args -o "v4k.osx" || rc=1
|
||||
fi
|
||||
|
||||
# if [ "$run" == "yes" ]; then
|
||||
|
@ -233,17 +245,6 @@ if [ "$(uname)" = "Darwin" ]; then
|
|||
# fi
|
||||
|
||||
|
||||
# # framework (as dynamic library)
|
||||
# if [ "$dll" = "dll" ]; then
|
||||
# echo libv4k && cc -ObjC -dynamiclib -o libv4k.dylib engine/v4k.c $flags $args
|
||||
# cp libv4k.dylib demos/lua
|
||||
# export import=libv4k.dylib
|
||||
# else
|
||||
# # framework
|
||||
# echo v4k && cc -c -ObjC engine/v4k.c $flags $args
|
||||
# export import=v4k.o
|
||||
# fi
|
||||
|
||||
# # editor
|
||||
# echo editor && cc -o editor tools/editor/editor.c $import $flags $args &
|
||||
|
||||
|
|
Loading…
Reference in New Issue