Review projects details for raylib 4.2
This commit is contained in:
parent
ec8fabceeb
commit
86ac792d9a
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
# Define required raylib variables
|
# Define required raylib variables
|
||||||
PROJECT_NAME ?= game
|
PROJECT_NAME ?= game
|
||||||
RAYLIB_VERSION ?= 4.0.0
|
RAYLIB_VERSION ?= 4.2.0
|
||||||
RAYLIB_PATH ?= ..\..
|
RAYLIB_PATH ?= ..\..
|
||||||
|
|
||||||
# Define default options
|
# Define default options
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# Raylib template for Code::Blocks
|
# raylib template for Code::Blocks
|
||||||
|
|
||||||
1. Install Raylib.
|
1. Install raylib.
|
||||||
|
|
||||||
On Windows you should install the **Windows Installer (with MinGW compiler)** package.
|
On Windows you should install the **Windows Installer (with MinGW compiler)** package.
|
||||||
On other platforms you can install however you like following the instructions in the wiki.
|
On other platforms you can install however you like following the instructions in the wiki.
|
||||||
|
|
||||||
* https://github.com/raysan5/raylib/releases/download/4.0.0/raylib_installer_v400.mingw.exe
|
* https://github.com/raysan5/raylib/releases/download/4.2.0/raylib_installer_v420.mingw.exe
|
||||||
* https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
|
* https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
|
||||||
* https://github.com/raysan5/raylib/wiki/Working-on-macOS
|
* https://github.com/raysan5/raylib/wiki/Working-on-macOS
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
# Define required raylib variables
|
# Define required raylib variables
|
||||||
PROJECT_NAME ?= game
|
PROJECT_NAME ?= game
|
||||||
RAYLIB_VERSION ?= 4.0.0
|
RAYLIB_VERSION ?= 4.2.0
|
||||||
RAYLIB_PATH ?= ..\..
|
RAYLIB_PATH ?= ..\..
|
||||||
|
|
||||||
# Define compiler path on Windows
|
# Define compiler path on Windows
|
||||||
|
@ -128,7 +128,7 @@ if [ ! -d "$TEMP_DIR" ]; then
|
|||||||
else
|
else
|
||||||
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS $RAYLIB_C_FILES
|
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS $RAYLIB_C_FILES
|
||||||
fi
|
fi
|
||||||
[ -z "$QUIET" ] && echo "COMPILE-INFO: Raylib compiled into object files in: $TEMP_DIR/"
|
[ -z "$QUIET" ] && echo "COMPILE-INFO: raylib compiled into object files in: $TEMP_DIR/"
|
||||||
cd $ROOT_DIR
|
cd $ROOT_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ if [ ! -d "$TEMP_DIR" ]; then
|
|||||||
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS -x objective-c $RAYLIB_SRC/rglfw.c
|
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS -x objective-c $RAYLIB_SRC/rglfw.c
|
||||||
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS $RAYLIB_C_FILES
|
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS $RAYLIB_C_FILES
|
||||||
fi
|
fi
|
||||||
[ -z "$QUIET" ] && echo "COMPILE-INFO: Raylib compiled into object files in: $TEMP_DIR/"
|
[ -z "$QUIET" ] && echo "COMPILE-INFO: raylib compiled into object files in: $TEMP_DIR/"
|
||||||
cd $ROOT_DIR
|
cd $ROOT_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ if [ ! -d "$TEMP_DIR" ]; then
|
|||||||
else
|
else
|
||||||
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS $RAYLIB_C_FILES
|
$CC -c $RAYLIB_DEFINES $RAYLIB_INCLUDE_FLAGS $COMPILATION_FLAGS $RAYLIB_C_FILES
|
||||||
fi
|
fi
|
||||||
[ -z "$QUIET" ] && echo "COMPILE-INFO: Raylib compiled into object files in: $TEMP_DIR/"
|
[ -z "$QUIET" ] && echo "COMPILE-INFO: raylib compiled into object files in: $TEMP_DIR/"
|
||||||
cd $ROOT_DIR
|
cd $ROOT_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ REM Build raylib if it hasn't been cached in TEMP_DIR
|
|||||||
IF NOT EXIST !TEMP_DIR!\ (
|
IF NOT EXIST !TEMP_DIR!\ (
|
||||||
mkdir !TEMP_DIR!
|
mkdir !TEMP_DIR!
|
||||||
cd !TEMP_DIR!
|
cd !TEMP_DIR!
|
||||||
REM Raylib's src folder
|
REM raylib source folder
|
||||||
set "RAYLIB_DEFINES=/D_DEFAULT_SOURCE /DPLATFORM_DESKTOP /DGRAPHICS_API_OPENGL_33"
|
set "RAYLIB_DEFINES=/D_DEFAULT_SOURCE /DPLATFORM_DESKTOP /DGRAPHICS_API_OPENGL_33"
|
||||||
set RAYLIB_C_FILES="!RAYLIB_SRC!\rcore.c" "!RAYLIB_SRC!\rshapes.c" "!RAYLIB_SRC!\rtextures.c" "!RAYLIB_SRC!\rtext.c" "!RAYLIB_SRC!\rmodels.c" "!RAYLIB_SRC!\utils.c" "!RAYLIB_SRC!\raudio.c" "!RAYLIB_SRC!\rglfw.c"
|
set RAYLIB_C_FILES="!RAYLIB_SRC!\rcore.c" "!RAYLIB_SRC!\rshapes.c" "!RAYLIB_SRC!\rtextures.c" "!RAYLIB_SRC!\rtext.c" "!RAYLIB_SRC!\rmodels.c" "!RAYLIB_SRC!\utils.c" "!RAYLIB_SRC!\raudio.c" "!RAYLIB_SRC!\rglfw.c"
|
||||||
set RAYLIB_INCLUDE_FLAGS=/I"!RAYLIB_SRC!" /I"!RAYLIB_SRC!\external\glfw\include"
|
set RAYLIB_INCLUDE_FLAGS=/I"!RAYLIB_SRC!" /I"!RAYLIB_SRC!\external\glfw\include"
|
||||||
@ -175,7 +175,7 @@ IF NOT EXIST !TEMP_DIR!\ (
|
|||||||
) ELSE (
|
) ELSE (
|
||||||
cl.exe /w /c !VERBOSITY_FLAG! !RAYLIB_DEFINES! !RAYLIB_INCLUDE_FLAGS! !COMPILATION_FLAGS! !RAYLIB_C_FILES! || exit /B
|
cl.exe /w /c !VERBOSITY_FLAG! !RAYLIB_DEFINES! !RAYLIB_INCLUDE_FLAGS! !COMPILATION_FLAGS! !RAYLIB_C_FILES! || exit /B
|
||||||
)
|
)
|
||||||
IF NOT DEFINED QUIET echo COMPILE-INFO: Raylib compiled into object files in: !TEMP_DIR!\
|
IF NOT DEFINED QUIET echo COMPILE-INFO: raylib compiled into object files in: !TEMP_DIR!\
|
||||||
|
|
||||||
REM Out of the temp directory
|
REM Out of the temp directory
|
||||||
cd !ROOT_DIR!
|
cd !ROOT_DIR!
|
||||||
|
Loading…
Reference in New Issue
Block a user