pre_build.sh fix
This commit is contained in:
parent
e47f497f8c
commit
0ee34bf810
@ -1,7 +1,7 @@
|
|||||||
#include "gui/gui.hpp"
|
#include "gui/gui.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// SDL for some reason redefains main
|
// SDL for some reason redefines main
|
||||||
#ifdef main
|
#ifdef main
|
||||||
#undef main
|
#undef main
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -9,12 +9,14 @@ fi
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
# copy precompiled static libs to objects
|
# copy precompiled static libs to objects
|
||||||
cp libs/*.a "$OBJDIR/libs/"
|
static_libs=$(find "libs/" -name '*.a')
|
||||||
|
[[ -n "$static_libs" ]] && cp $static_libs "$OBJDIR/libs/"
|
||||||
|
|
||||||
# copy precompiled shared libs to outdir
|
# copy precompiled shared libs to outdir
|
||||||
if [ $OS == 'WINDOWS' ]; then
|
if [ "$OS" == 'WINDOWS' ]; then
|
||||||
cp libs/*.dll "$OUTDIR"
|
dynamic_libs=$(find "libs/" -name '*.dll')
|
||||||
else
|
else
|
||||||
cp libs/*.so "$OUTDIR"
|
dynamic_libs=$(find "libs/" -name '*.so')
|
||||||
fi
|
fi
|
||||||
|
[[ -n "$dynamic_libs" ]] && cp $dynamic_libs "$OUTDIR/"
|
||||||
set +x
|
set +x
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user