orca/sketches/multi_surface/build.sh

19 lines
491 B
Bash
Raw Permalink Normal View History

2023-06-20 09:47:02 +00:00
#!/bin/bash
BINDIR=bin
LIBDIR=../../build/bin
RESDIR=../resources
2023-06-20 09:47:02 +00:00
SRCDIR=../../src
INCLUDES="-I$SRCDIR -I$SRCDIR/util -I$SRCDIR/platform -I$SRCDIR/app"
LIBS="-L$LIBDIR -lorca"
FLAGS="-mmacos-version-min=10.15.4 -DOC_DEBUG -DLOG_COMPILE_DEBUG"
2023-06-20 09:47:02 +00:00
mkdir -p $BINDIR
2023-06-20 09:47:02 +00:00
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_multi_surface main.c
cp $LIBDIR/liborca.dylib $BINDIR/
cp $LIBDIR/mtl_renderer.metallib $BINDIR/
2023-06-20 09:47:02 +00:00
install_name_tool -add_rpath "@executable_path" $BINDIR/example_multi_surface