2022-12-24 14:33:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
BINDIR=../../bin
|
|
|
|
RESDIR=../../resources
|
|
|
|
SRCDIR=../../src
|
2022-12-26 17:33:31 +00:00
|
|
|
EXTDIR=../../ext
|
2022-12-24 14:33:32 +00:00
|
|
|
|
|
|
|
INCLUDES="-I$SRCDIR -I$SRCDIR/util -I$SRCDIR/platform -I$SRCDIR/app"
|
|
|
|
LIBS="-L$BINDIR -lmilepost -framework Carbon -framework Cocoa -framework Metal -framework QuartzCore"
|
|
|
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
|
|
|
|
2023-07-26 13:54:01 +00:00
|
|
|
clang -g $FLAGS -Wl,-dead_strip $LIBS $INCLUDES -o $BINDIR/example_simple_window main.c
|
|
|
|
|
|
|
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_simple_window
|