diff --git a/README.md b/README.md index 6930b7a..59cafef 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ Set the `ALLEGRO_HOME` environment variable to this folder's absolute path, and Once that's done, run the included `setenv.bat`, and if no errors were reported, then you can then build and install the library as usual. +### Using the last release of Allegro 5 + +You can download the last Allegro 5 binaries from [here](https://github.com/liballeg/allegro5/releases/) and pick the SEH version of the library (it was tested succesfully against it). +Finally run `setenvlastest.bat` instead, and then proceed to build and install the library. + + Unstable APIs ============= diff --git a/setenvlastest.bat b/setenvlastest.bat new file mode 100644 index 0000000..0851d32 --- /dev/null +++ b/setenvlastest.bat @@ -0,0 +1,16 @@ +@echo off + +if "%ALLEGRO_HOME%" == "" GOTO NOALLEGRO +if "%ALLEGRO_VERSION%" == "" GOTO NOALLEGRO +if "%ALLEGRO_LIB%" == "" set ALLEGRO_LIB=debug + +:YESALLEGRO +set CGO_CFLAGS=-I%ALLEGRO_HOME%\include +set CGO_LDFLAGS=-L%ALLEGRO_HOME%\bin^ -lallegro_monolith-%ALLEGRO_LIB%-%ALLEGRO_VERSION% +GOTO END + +:NOALLEGRO +echo Please set the ALLEGRO_HOME and ALLEGRO_VERSION environment variables and try again. +GOTO END + +:END