Skip to content

Add support for conditionally excluding all handwritten JS code for SDL. #2730

Closed

Description

@juj

Currently we have SDL code in at least src/library_sdl.js and some also in src/library_browser.js. Alon added link flags -s NO_FILESYSTEM=1 and -s NO_BROWSER=1 in relation to #2545 , and in the same style, we should add a link flag -s NO_SDL=1 or similar, which would strip out all the handwritten JS code that implements Emscripten's SDL 1.3.

The motivation for this is with our SDL 2 implementation, which seems to have some bits still using these handwritten JS paths, so this flag would help explicitly confirm that the SDL 2 port would properly use only the SDL2 code. Also, this would secondarily benefit other codebases to allow them explicitly opt out of linking to SDL at all.

Activity

  1. kripken commented on Aug 27, 2014

    @kripken
    Member

    Also we should make -lSDL when linking turn it on, and default it to off.

  2. kripken commented on May 20, 2015

    @kripken
    Member

    Note that using SDL_mixer from our JS code is possible with SDL2. So this flag would only need to limit core SDL stuff, I suppose.

  3. stale commented on Aug 31, 2019

    @stale

    This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions