Draft
Conversation
f38f209 to
9b57d50
Compare
9b57d50 to
a454ceb
Compare
Collaborator
Author
|
PR libsdl-org/SDL#5365 got merged 🎉 TAG = 'ea7d5307acfb1daf9af6104b60b75114b15bcd27'
HASH = 'b7d58124f0d1145f23338abfdb6aa07855ac74ed80b3a5b613d23b4930c84d04d1794a62aab2ca2680ba369128ee2028ea51236fab4aaf70556036172fa59e6a'
SUBDIR = 'SDL-' + TAG
def needed(settings):
return settings.USE_SDL == 2
def get_lib_name(settings):
return 'libSDL2' + ('-mt' if settings.USE_PTHREADS else '') + '.a'
def get(ports, settings, shared):
# get the port
ports.fetch_project('sdl2', 'https://github.com/libsdl-org/SDL/archive/' + TAG + '.zip', SUBDIR, sha512hash=HASH)To do that execute the following sed -i -e "s/^TAG =.*/TAG = 'ea7d5307acfb1daf9af6104b60b75114b15bcd27'/" -e "s/HASH =.*/HASH = 'b7d58124f0d1145f23338abfdb6aa07855ac74ed80b3a5b613d23b4930c84d04d1794a62aab2ca2680ba369128ee2028ea51236fab4aaf70556036172fa59e6a'/" upstream/emscripten/tools/ports/sdl2.py |
Need to see if I can disable the status window completely when using emscripten.
a454ceb to
ee040ea
Compare
ee040ea to
feb7b17
Compare
Closed
Collaborator
Author
|
since we're using a raw-file to simulate the SPI-data of the PineTime the Simulator doesn't run in the browser anymore |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
InfiniTime PRs fixing Emscripten compile errors:
Need a patched SDL2 with fixes for use with
-s USE_PTHREADI did modify the downloaded
emsdk/upstream/emscripten/tools/ports/sdl2.pyfile to get the SDL2 patched versionTo build I used the following script named
build_emscripten.sh:The created
infinisim.html(and wasm) file can be provided to the browser usingemrun _build/infinisim.htmlor use minimal python server with the required headers set
start_python_cors_server.pyAnd with all that
InfiniSimin your browser! 🎉edit: update hash to branch changes