We could provide precompiled versions in the sdk, but it would increase the
sdk size quite a bit, especially as we add more ports. So not sure what is
best here.

Not sure what you mean by "build just libSDL2"? It gets built and stored in
the cache (~/.emscripten_cache), then used from there. So it is built on
its own (once), then linked in.

- Alon


On Tue, Oct 21, 2014 at 7:32 PM, Mark Callow <[email protected]>
wrote:

>  On 22/10/2014 05:45, Alon Zakai wrote:
>
>    ...
>  To make SDL2 easier to use (until now it was in a separate repo you had
> to grab and build), we've created Emscripten Ports, now on the incoming
> branch, documented here:
>
> This is great news. Will emsdk provide pre-compiled versions of the ports?
>
>   All Ports are is a set of repos on github that emcc knows about and can
> fetch and build. If you do something like
>
> ./emcc tests/sdl2glshader.c -s USE_SDL=2 -s LEGACY_GL_EMULATION=1 -o
> sdl2.html
>
>  on the incoming branch, then USE_SDL=2 makes it download and build SDL2
> for you.
>
> Is there a way to build just libSDL2?
>
> Regards
>
>     -Mark
> --
>  注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、
> 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます.
>
> NOTE: This electronic mail message may contain confidential and privileged
> information from HI Corporation. If you are not the intended recipient, any
> disclosure, photocopying, distribution or use of the contents of the
> received information is prohibited. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete this
> message and all related copies.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to