{"payload":{"allShortcutsEnabled":false,"fileTree":{"docs":{"items":[{"name":"README-android.md","path":"docs/README-android.md","contentType":"file"},{"name":"README-cmake.md","path":"docs/README-cmake.md","contentType":"file"},{"name":"README-directfb.md","path":"docs/README-directfb.md","contentType":"file"},{"name":"README-dynapi.md","path":"docs/README-dynapi.md","contentType":"file"},{"name":"README-emscripten.md","path":"docs/README-emscripten.md","contentType":"file"},{"name":"README-gesture.md","path":"docs/README-gesture.md","contentType":"file"},{"name":"README-hg.md","path":"docs/README-hg.md","contentType":"file"},{"name":"README-ios.md","path":"docs/README-ios.md","contentType":"file"},{"name":"README-linux.md","path":"docs/README-linux.md","contentType":"file"},{"name":"README-macosx.md","path":"docs/README-macosx.md","contentType":"file"},{"name":"README-nacl.md","path":"docs/README-nacl.md","contentType":"file"},{"name":"README-pandora.md","path":"docs/README-pandora.md","contentType":"file"},{"name":"README-platforms.md","path":"docs/README-platforms.md","contentType":"file"},{"name":"README-porting.md","path":"docs/README-porting.md","contentType":"file"},{"name":"README-psp.md","path":"docs/README-psp.md","contentType":"file"},{"name":"README-raspberrypi.md","path":"docs/README-raspberrypi.md","contentType":"file"},{"name":"README-touch.md","path":"docs/README-touch.md","contentType":"file"},{"name":"README-wince.md","path":"docs/README-wince.md","contentType":"file"},{"name":"README-windows.md","path":"docs/README-windows.md","contentType":"file"},{"name":"README-winrt.md","path":"docs/README-winrt.md","contentType":"file"},{"name":"README.md","path":"docs/README.md","contentType":"file"},{"name":"doxyfile","path":"docs/doxyfile","contentType":"file"}],"totalCount":22},"":{"items":[{"name":"VisualC-WinRT","path":"VisualC-WinRT","contentType":"directory"},{"name":"VisualC","path":"VisualC","contentType":"directory"},{"name":"Xcode-iOS","path":"Xcode-iOS","contentType":"directory"},{"name":"Xcode","path":"Xcode","contentType":"directory"},{"name":"acinclude","path":"acinclude","contentType":"directory"},{"name":"android-project","path":"android-project","contentType":"directory"},{"name":"build-scripts","path":"build-scripts","contentType":"directory"},{"name":"cmake","path":"cmake","contentType":"directory"},{"name":"debian","path":"debian","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"include","path":"include","contentType":"directory"},{"name":"premake","path":"premake","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"visualtest","path":"visualtest","contentType":"directory"},{"name":".hgignore","path":".hgignore","contentType":"file"},{"name":"Android.mk","path":"Android.mk","contentType":"file"},{"name":"BUGS.txt","path":"BUGS.txt","contentType":"file"},{"name":"CMakeLists.txt","path":"CMakeLists.txt","contentType":"file"},{"name":"COPYING.txt","path":"COPYING.txt","contentType":"file"},{"name":"CREDITS.txt","path":"CREDITS.txt","contentType":"file"},{"name":"INSTALL.txt","path":"INSTALL.txt","contentType":"file"},{"name":"Makefile.in","path":"Makefile.in","contentType":"file"},{"name":"Makefile.minimal","path":"Makefile.minimal","contentType":"file"},{"name":"Makefile.pandora","path":"Makefile.pandora","contentType":"file"},{"name":"Makefile.psp","path":"Makefile.psp","contentType":"file"},{"name":"Makefile.wiz","path":"Makefile.wiz","contentType":"file"},{"name":"README-SDL.txt","path":"README-SDL.txt","contentType":"file"},{"name":"README.txt","path":"README.txt","contentType":"file"},{"name":"SDL2.spec.in","path":"SDL2.spec.in","contentType":"file"},{"name":"TODO.txt","path":"TODO.txt","contentType":"file"},{"name":"VisualC.html","path":"VisualC.html","contentType":"file"},{"name":"WhatsNew.txt","path":"WhatsNew.txt","contentType":"file"},{"name":"autogen.sh","path":"autogen.sh","contentType":"file"},{"name":"cmake_uninstall.cmake.in","path":"cmake_uninstall.cmake.in","contentType":"file"},{"name":"configure","path":"configure","contentType":"file"},{"name":"configure.in","path":"configure.in","contentType":"file"},{"name":"sdl2-config.in","path":"sdl2-config.in","contentType":"file"},{"name":"sdl2.m4","path":"sdl2.m4","contentType":"file"},{"name":"sdl2.pc.in","path":"sdl2.pc.in","contentType":"file"}],"totalCount":40}},"fileTreeProcessingTime":11.950707,"foldersToFetch":[],"repo":{"id":330008801,"defaultBranch":"main","name":"SDL","ownerLogin":"libsdl-org","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-01-15T19:55:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/77683370?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"a823982e02bd6012522de6414f73ef6681a2b9c7","listCacheKey":"v0:1709678518.0","canEdit":false,"refType":"tree","currentOid":"a823982e02bd6012522de6414f73ef6681a2b9c7"},"path":"docs/README-emscripten.md","currentUser":null,"blob":{"rawLines":["Emscripten","================================================================================","","Build:",""," $ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS=\"-O2\""," $ emmake make","","Or with cmake:",""," $ emconfigure cmake .."," $ make","","To build one of the tests:",""," $ cd test/"," $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html","","Uses GLES2 renderer or software","","tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html","","Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):","","SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)",""," $ EMCONFIGURE_JS=1 emconfigure ../configure"," build as usual...","","SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):",""," $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx"," build as usual..."],"stylingDirectives":[[],[{"start":0,"end":80,"cssClass":"pl-mh"}],[],[],[],[{"start":4,"end":134,"cssClass":"pl-c1"}],[{"start":4,"end":17,"cssClass":"pl-c1"}],[],[],[],[{"start":4,"end":26,"cssClass":"pl-c1"}],[{"start":4,"end":10,"cssClass":"pl-c1"}],[],[],[],[{"start":4,"end":14,"cssClass":"pl-c1"}],[{"start":4,"end":114,"cssClass":"pl-c1"}],[],[],[],[{"start":7,"end":70,"cssClass":"pl-corl"}],[],[],[],[{"start":11,"end":52,"cssClass":"pl-corl"}],[],[{"start":4,"end":47,"cssClass":"pl-c1"}],[{"start":4,"end":21,"cssClass":"pl-c1"}],[],[{"start":9,"end":62,"cssClass":"pl-corl"}],[],[{"start":4,"end":61,"cssClass":"pl-c1"}],[{"start":4,"end":21,"cssClass":"pl-c1"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/libsdl-org/SDL/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"README-emscripten.md","displayUrl":"https://github.com/libsdl-org/SDL/blame/a823982e02bd6012522de6414f73ef6681a2b9c7/docs/README-emscripten.md?raw=true","headerInfo":{"blobSize":"937 Bytes","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"ca9b35b","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flibsdl-org%2FSDL%2Fblame%2Fa823982e02bd6012522de6414f73ef6681a2b9c7%2Fdocs%2FREADME-emscripten.md","isCSV":false,"isRichtext":true,"toc":null,"lineInfo":{"truncatedLoc":"33","truncatedSloc":"20"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Markdown","languageID":222,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/libsdl-org/SDL/blame/a823982e02bd6012522de6414f73ef6681a2b9c7/docs/README-emscripten.md","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/libsdl-org/SDL/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/libsdl-org/SDL/raw/a823982e02bd6012522de6414f73ef6681a2b9c7/docs/README-emscripten.md","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"Emscripten","kind":"section_1","ident_start":0,"ident_end":10,"extent_start":0,"extent_end":92,"fully_qualified_name":"Emscripten","ident_utf16":{"start":{"line_number":0,"utf16_col":0},"end":{"line_number":0,"utf16_col":10}},"extent_utf16":{"start":{"line_number":0,"utf16_col":0},"end":{"line_number":2,"utf16_col":0}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"blame":{"ranges":{"1":{"start":1,"oldStart":1,"end":3,"oldEnd":3,"commitOid":"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a","reblamePath":"docs/README-emscripten.md"},"4":{"start":4,"oldStart":1,"end":4,"oldEnd":1,"commitOid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","reblamePath":null},"5":{"start":5,"oldStart":5,"end":7,"oldEnd":7,"commitOid":"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a","reblamePath":"docs/README-emscripten.md"},"8":{"start":8,"oldStart":4,"end":9,"oldEnd":5,"commitOid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","reblamePath":null},"10":{"start":10,"oldStart":10,"end":12,"oldEnd":12,"commitOid":"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a","reblamePath":"docs/README-emscripten.md"},"13":{"start":13,"oldStart":8,"end":13,"oldEnd":8,"commitOid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","reblamePath":null},"14":{"start":14,"oldStart":9,"end":14,"oldEnd":9,"commitOid":"2cde19c6359d008641ee37a8c5c59d49be463b49","reblamePath":"docs/README-emscripten.txt"},"15":{"start":15,"oldStart":15,"end":17,"oldEnd":17,"commitOid":"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a","reblamePath":"docs/README-emscripten.md"},"18":{"start":18,"oldStart":12,"end":22,"oldEnd":16,"commitOid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","reblamePath":null},"23":{"start":23,"oldStart":17,"end":23,"oldEnd":17,"commitOid":"2cde19c6359d008641ee37a8c5c59d49be463b49","reblamePath":"docs/README-emscripten.txt"},"24":{"start":24,"oldStart":18,"end":25,"oldEnd":19,"commitOid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","reblamePath":null},"26":{"start":26,"oldStart":26,"end":26,"oldEnd":26,"commitOid":"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a","reblamePath":"docs/README-emscripten.md"},"27":{"start":27,"oldStart":20,"end":30,"oldEnd":23,"commitOid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","reblamePath":null},"31":{"start":31,"oldStart":31,"end":31,"oldEnd":31,"commitOid":"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a","reblamePath":"docs/README-emscripten.md"},"32":{"start":32,"oldStart":24,"end":33,"oldEnd":25,"commitOid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","reblamePath":null}},"commits":{"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a":{"oid":"69f18b6268ad31a1d3dcdb923df22f1027eb2b4a","message":"Linked README-emscripten.md in README.md and added markdown formatting.","shortMessageHtmlLink":"Linked README-emscripten.md in README.md and added markdown formatting.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/5358527?s=80&v=4","committerName":"Philipp Wiesemann","committerEmail":"philipp.wiesemann@arcor.de","committedDate":"2014-12-28T22:02:17.000+01:00","firstParentOid":"3e8040f3009ce692cff6b06d6ce28a5edae17ad0"},"fe40a1722481c2f04c742445e7a8fb2eee7a481d":{"oid":"fe40a1722481c2f04c742445e7a8fb2eee7a481d","message":"Initial merge of Emscripten port!\n\nWith this commit, you can compile SDL2 with Emscripten\n( http://emscripten.org/ ), and make your SDL-based C/C++ program\ninto a web app.\n\nThis port was due to the efforts of several people, including: Charlie Birks,\nSathyanarayanan Gunasekaran, Jukka Jyl?nki, Alon Zakai, Edward Rudd,\nBruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)","shortMessageHtmlLink":"Initial merge of Emscripten port!","authorAvatarUrl":"https://avatars.githubusercontent.com/u/673562?s=80&v=4","committerName":"Ryan C. Gordon","committerEmail":"icculus@icculus.org","committedDate":"2014-12-18T00:19:52.000-05:00","firstParentOid":"a228b67d88bc0360c6c9cff6a9dda9a62a7ff1bb"},"2cde19c6359d008641ee37a8c5c59d49be463b49":{"oid":"2cde19c6359d008641ee37a8c5c59d49be463b49","message":"Fixed typos in a README.","shortMessageHtmlLink":"Fixed typos in a README.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/5358527?s=80&v=4","committerName":"Philipp Wiesemann","committerEmail":"philipp.wiesemann@arcor.de","committedDate":"2014-12-25T22:07:15.000+01:00","firstParentOid":"80d19b7ee3222058faa8bad1238c31bb9629bfbe"}},"ignoreRevs":{"path":".git-blame-ignore-revs","present":false,"timedOut":null}},"csrf_tokens":{"/libsdl-org/SDL/branches":{"post":"Wlg17LRbIp93gUlWbvQ-cd8p8hyC374iytUdpDGqM8x2HJk_Jc_vA2MU5yayJuPURYJZ3zflERD9kdoP2sFU9g"},"/repos/preferences":{"post":"HH9X02MC4QeF0yGHlXLAm_VCEsRRY8xHG6FazVJVL8QgHt4MPXgdKsoWjFjQ5kHxls4XeTZPpfY2_qHkpIV9GA"}}},"title":"Blaming SDL/docs/README-emscripten.md at a823982e02bd6012522de6414f73ef6681a2b9c7 ยท libsdl-org/SDL"}