Getting emscripten's header files

22 views
Skip to first unread message

שחר לנגבהיים

unread,
Jul 9, 2019, 5:58:43 AM7/9/19
to emscripten-discuss
Hi, I didn't find the best practices regarding including emscripten.h and html5.h in a project. Most of the examples I see just copy the files into the project, but that means that the only way to receive updates is to copy them manually. 
What's the best way to use emscripten's headers? Add it as a git submodule to my project, and add the submodule's include folder into the search path?

Mehdi Sabwat

unread,
Jul 9, 2019, 8:48:15 AM7/9/19
to emscripten-discuss
Hi,

I use emsdk to manage the versions of the toolchain I use:
when you execute emcc, it will look for what's in emscripten/system/include so you can easily #include <emscripten.h> or <emscripten/html5.h> (look into emscripten/system/include for the full list of headers)
Reply all
Reply to author
Forward
0 new messages