Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added suport for the last release of Allegro 5 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=============

Expand Down
16 changes: 16 additions & 0 deletions setenvlastest.bat
Original file line number Diff line number Diff line change
@@ -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