This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title> | |
A webassembly demo | |
</title> | |
</head> | |
<body> | |
<button id="load-lua">Click here to load the lua file</button> | |
<script type="module"> |
This file contains hidden or 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
# Building and uploading binaries to the mini is kinda tedious, so this helps facilitate local development | |
# assumes an ubuntu desktop with the SDL 1.2 dev packages installed | |
# i.e., `apt install libsdl1.2-dev libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0` | |
# then run `TARGET=ubuntu make` or `TARGET=miyoo make` as needed | |
MIYOO_CXX := arm-linux-gnueabihf-g++ | |
MIYOO_PREFIX := /opt/miyoomini-toolchain/arm-linux-gnueabihf/libc | |
MIYOO_CXXFLAGS := -I$(MIYOO_PREFIX)/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT | |
MIYOO_LDFLAGS := -L$(MIYOO_PREFIX)/usr/lib -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lpthread | |
MIYOO_TARGET_EXEC := app.miyoo.bin |