Adding raylib debug build
This commit is contained in:
parent
e6bb0cb1f7
commit
7e3ca0c95a
7 changed files with 20 additions and 16 deletions
|
|
@ -8,6 +8,14 @@ windows_library_dest="../../windows"
|
|||
darwin_library_dest="../../darwin"
|
||||
wasm_library_dest="../../wasm"
|
||||
|
||||
if [ "$1" = "DEBUG" ]; then
|
||||
MFLAGS="RAYLIB_BUILD_MODE=DEBUG"
|
||||
CFLAGS="-g"
|
||||
else
|
||||
MFLAGS="RAYLIB_BUILD_MODE=RELEASE"
|
||||
CFLAGS=""
|
||||
fi
|
||||
|
||||
config_cflags="\
|
||||
-DSUPPORT_MODULE_RSHAPES=1 \
|
||||
-DSUPPORT_MODULE_RTEXTURES=1 \
|
||||
|
|
@ -70,9 +78,14 @@ config_cflags="\
|
|||
|
||||
source $emsdk_env
|
||||
|
||||
echo "MFLAGS MFLAGS MFLAGS MFLAGS MFLAGS"
|
||||
echo $MFLAGS
|
||||
echo "MFLAGS MFLAGS MFLAGS MFLAGS MFLAGS"
|
||||
echo $CFLAGS
|
||||
|
||||
pushd raylib/src
|
||||
echo "Compiling raylib static library for linux"
|
||||
make --silent $modules RAYLIB_CONFIG_FLAGS="$config_cflags" CUSTOM_CFLAGS="-Os -ffunction-sections -fdata-sections" PLATFORM_OS=LINUX
|
||||
make --silent $modules $MFLAGS RAYLIB_CONFIG_FLAGS="$config_cflags" CUSTOM_CFLAGS="-Os -ffunction-sections -fdata-sections" PLATFORM_OS=LINUX
|
||||
mv libraylib.a $linux_library_dest
|
||||
make --silent clean
|
||||
|
||||
|
|
@ -90,7 +103,7 @@ popd
|
|||
|
||||
pushd raygui
|
||||
echo "Compiling raygui static library for linux"
|
||||
gcc -c -Os -ffunction-sections -fdata-sections -fPIC -x c -DRAYGUI_IMPLEMENTATION -I../raylib/src raygui.h -o raygui.o
|
||||
gcc $CFLAGS -c -Os -ffunction-sections -fdata-sections -fPIC -x c -DRAYGUI_IMPLEMENTATION -I../raylib/src raygui.h -o raygui.o
|
||||
ar rcs ../linux/libraygui.a raygui.o
|
||||
rm raygui.o
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue