-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdl driver: make it compatible with different AtomVM build options
AVM_DISABLE_SMP and AVM_DISABLE_TASK_DRIVER change GlobalContext struct memory layout, leading to a crash when they are not #defined correctly (before including globalcontext.h). Add 2 option useful to mirror their configuration also here. Signed-off-by: Davide Bettio <[email protected]>
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# SDL Display Driver | ||
|
||
This display driver can be used for displaying graphics on a PC using SDL library. | ||
|
||
## Build | ||
In order to build it, just run `cmake` first and then `make`. | ||
|
||
Beware: | ||
- Make sure to set the path to AtomVM headers (`LIBATOMVM_INCLUDE_PATH`) before running cmake, | ||
such as: `cmake -DLIBATOMVM_INCLUDE_PATH=/path-to/AtomVM/src/libAtomVM/ .`. | ||
- Also make sure to build this plugin using same options as AtomVM, that means that | ||
when `AVM_DISABLE_SMP` or `AVM_DISABLE_TASK_DRIVER` have been disabled in AtomVM build, also here | ||
they must be disabled accordingly (their default is on, and in that case no further action is | ||
required). | ||
|
||
## Requirements | ||
|
||
- zlib | ||
- SDL (v1) | ||
|
||
## Run | ||
|
||
Once compiled, it must placed in the current working directory. |