mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
edd57d380d
- Fixes the IPC bug - Fixes the terminfo bug - Moves the OSX SDK out of our nixcrpkgs fork. - Vendor nixcrpkgs instead of having it be a submodule.
55 lines
1.6 KiB
Bash
55 lines
1.6 KiB
Bash
source $setup
|
|
|
|
cp -r $src/samples .
|
|
cp -r $src/util .
|
|
|
|
mkdir include
|
|
cp -r $src/samples/sample_util/* include/
|
|
|
|
mkdir build
|
|
cd build
|
|
mkdir bin
|
|
|
|
CFLAGS="-mwindows -g -O2 -I../include -I$angle_util/include -I$angle/include"
|
|
CFLAGS="$CFLAGS -DGL_APICALL= -DANGLE_EXPORT= -DGL_GLEXT_PROTOTYPES"
|
|
LDFLAGS="-L$angle_util/lib -L$angle/lib"
|
|
LIBS="-langle_util -lEGL_static -lGLESv2_static -lANGLE -ltranslator
|
|
-lpreprocessor -langle_image_util -langle_common -ld3d9 -lgdi32"
|
|
|
|
echo "compiling texture_wrap"
|
|
$host-g++ $CFLAGS $LDFLAGS \
|
|
../samples/texture_wrap/TextureWrap.cpp \
|
|
../samples/sample_util/texture_utils.cpp \
|
|
../samples/sample_util/SampleApplication.cpp \
|
|
$LIBS -o bin/texture_wrap${exe_suffix}
|
|
|
|
echo "compiling simple_texture_2d"
|
|
$host-g++ $CFLAGS $LDFLAGS \
|
|
../samples/simple_texture_2d/SimpleTexture2D.cpp \
|
|
../samples/sample_util/texture_utils.cpp \
|
|
../samples/sample_util/SampleApplication.cpp \
|
|
$LIBS -o bin/simple_texture_2d${exe_suffix}
|
|
|
|
echo "compiling particle_system"
|
|
$host-g++ $CFLAGS $LDFLAGS \
|
|
../samples/particle_system/ParticleSystem.cpp \
|
|
../samples/sample_util/tga_utils.cpp \
|
|
../samples/sample_util/SampleApplication.cpp \
|
|
$LIBS -o bin/particle_system${exe_suffix}
|
|
cp ../samples/particle_system/smoke.tga bin/
|
|
|
|
echo "compiling hello_triangle"
|
|
$host-g++ $CFLAGS $LDFLAGS \
|
|
../samples/hello_triangle/HelloTriangle.cpp \
|
|
../samples/sample_util/SampleApplication.cpp \
|
|
$LIBS -o bin/hello_triangle${exe_suffix}
|
|
|
|
echo "compiling window_test"
|
|
$host-g++ $CFLAGS $LDFLAGS \
|
|
../samples/WindowTest/WindowTest.cpp \
|
|
-langle_util -lgdi32 -o bin/window_test${exe_suffix}
|
|
|
|
mkdir -p $out/license
|
|
cp $src/LICENSE $out/license/
|
|
cp -r bin $out/
|