Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Improve Debian/Ubuntu code porting #1

Open
RICCIARDI-Adrien opened this issue Jul 18, 2017 · 0 comments
Open

Improve Debian/Ubuntu code porting #1

RICCIARDI-Adrien opened this issue Jul 18, 2017 · 0 comments

Comments

@RICCIARDI-Adrien
Copy link

Hi,

Debian-based distributions install SDL_ttf.h header in /usr/include/SDL2 directory, which would be ~/.emscripten_cache/asmjs/ports-builds/sdl2/include/SDL2/ on emscripten port. However, emscripten port SDL_ttf.h is currently located in ~/.emscripten_cache/asmjs/ports-builds/sdl2/include.
It would be great to automatically copy SDL_ttf.h (or to create a symlink on UNIX) to ~/.emscripten_cache/asmjs/ports-builds/sdl2/include/SDL2/ to avoid an emscripten-specific #ifdef in the program source code when including the file.
On Debian the SDL_ttf.h file is included this way : #include <SDL2/SDL_ttf.h>
With emscripten the include must be modified in : #include <SDL_ttf.h>

Keep it up !
Adrien

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant