{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"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":"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-android.txt","path":"README-android.txt","contentType":"file"},{"name":"README-cmake.txt","path":"README-cmake.txt","contentType":"file"},{"name":"README-directfb.txt","path":"README-directfb.txt","contentType":"file"},{"name":"README-dynapi.txt","path":"README-dynapi.txt","contentType":"file"},{"name":"README-gesture.txt","path":"README-gesture.txt","contentType":"file"},{"name":"README-hg.txt","path":"README-hg.txt","contentType":"file"},{"name":"README-ios.txt","path":"README-ios.txt","contentType":"file"},{"name":"README-linux.txt","path":"README-linux.txt","contentType":"file"},{"name":"README-macosx.txt","path":"README-macosx.txt","contentType":"file"},{"name":"README-nacl.txt","path":"README-nacl.txt","contentType":"file"},{"name":"README-pandora.txt","path":"README-pandora.txt","contentType":"file"},{"name":"README-platforms.txt","path":"README-platforms.txt","contentType":"file"},{"name":"README-porting.txt","path":"README-porting.txt","contentType":"file"},{"name":"README-psp.txt","path":"README-psp.txt","contentType":"file"},{"name":"README-raspberrypi.txt","path":"README-raspberrypi.txt","contentType":"file"},{"name":"README-touch.txt","path":"README-touch.txt","contentType":"file"},{"name":"README-wince.txt","path":"README-wince.txt","contentType":"file"},{"name":"README-windows.txt","path":"README-windows.txt","contentType":"file"},{"name":"README-winrt.txt","path":"README-winrt.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":58}},"fileTreeProcessingTime":3.3612830000000002,"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":"a838a56d45b237888810ca4c76d9345fe98f27f6","listCacheKey":"v0:1709678518.0","canEdit":false,"refType":"tree","currentOid":"a838a56d45b237888810ca4c76d9345fe98f27f6"},"path":"README-porting.txt","currentUser":null,"blob":{"rawLines":["\r","* Porting To A New Platform\r","\r"," The first thing you have to do when porting to a new platform, is look at\r","include/SDL_platform.h and create an entry there for your operating system.\r","The standard format is __PLATFORM__, where PLATFORM is the name of the OS.\r","Ideally SDL_platform.h will be able to auto-detect the system it's building\r","on based on C preprocessor symbols.\r","\r","There are two basic ways of building SDL at the moment:\r","\r","1. The \"UNIX\" way: ./configure; make; make install\r","\r"," If you have a GNUish system, then you might try this. Edit configure.in,\r"," take a look at the large section labelled:\r","\t\"Set up the configuration based on the target platform!\"\r"," Add a section for your platform, and then re-run autogen.sh and build!\r","\r","2. Using an IDE:\r","\r"," If you're using an IDE or other non-configure build system, you'll probably\r"," want to create a custom SDL_config.h for your platform. Edit SDL_config.h,\r"," add a section for your platform, and create a custom SDL_config_{platform}.h,\r"," based on SDL_config.h.minimal and SDL_config.h.in\r","\r"," Add the top level include directory to the header search path, and then add\r"," the following sources to the project:\r","\tsrc/*.c\r","\tsrc/atomic/*.c\r","\tsrc/audio/*.c\r","\tsrc/cpuinfo/*.c\r","\tsrc/events/*.c\r","\tsrc/file/*.c\r","\tsrc/haptic/*.c\r","\tsrc/joystick/*.c\r","\tsrc/power/*.c\r","\tsrc/render/*.c\r","\tsrc/stdlib/*.c\r","\tsrc/thread/*.c\r","\tsrc/timer/*.c\r","\tsrc/video/*.c\r","\tsrc/audio/disk/*.c\r","\tsrc/audio/dummy/*.c\r","\tsrc/video/dummy/*.c\r","\tsrc/haptic/dummy/*.c\r","\tsrc/joystick/dummy/*.c\r","\tsrc/main/dummy/*.c\r","\tsrc/thread/generic/*.c\r","\tsrc/timer/dummy/*.c\r","\tsrc/loadso/dummy/*.c\r","\r","\r","Once you have a working library without any drivers, you can go back to each\r","of the major subsystems and start implementing drivers for your platform.\r","\r","If you have any questions, don't hesitate to ask on the SDL mailing list:\r","\thttp://www.libsdl.org/mailing-list.php\r","\r","Enjoy!\r","\tSam Lantinga\t\t\t\t(slouken@libsdl.org)\r","\r"],"stylingDirectives":[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]],"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-porting.txt","displayUrl":"https://github.com/libsdl-org/SDL/blame/a838a56d45b237888810ca4c76d9345fe98f27f6/README-porting.txt?raw=true","headerInfo":{"blobSize":"1.91 KB","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":"bea194a","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flibsdl-org%2FSDL%2Fblame%2Fa838a56d45b237888810ca4c76d9345fe98f27f6%2FREADME-porting.txt","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"61","truncatedSloc":"48"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Text","languageID":372,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/libsdl-org/SDL/blame/a838a56d45b237888810ca4c76d9345fe98f27f6/README-porting.txt","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/a838a56d45b237888810ca4c76d9345fe98f27f6/README-porting.txt","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":true,"symbols":[]}},"copilotInfo":null,"copilotAccessAllowed":false,"blame":{"ranges":{"1":{"start":1,"oldStart":1,"end":61,"oldEnd":61,"commitOid":"3dcb451f85773e07bef3c5d1668c58ea6755c7f1","reblamePath":null}},"commits":{"3dcb451f85773e07bef3c5d1668c58ea6755c7f1":{"oid":"3dcb451f85773e07bef3c5d1668c58ea6755c7f1","message":"Added a README file regarding WinRT support\n\nTo note, this file is currently formatted with CRLF line endings, rather than\nLF, to allow the file to be viewed with Notepad.","shortMessageHtmlLink":"Added a README file regarding WinRT support","authorAvatarUrl":"https://avatars.githubusercontent.com/u/475856?s=80&v=4","committerName":"David Ludwig","committerEmail":"dludwig@pobox.com","committedDate":"2014-04-09T21:29:19.000-04:00","firstParentOid":null}},"ignoreRevs":{"path":".git-blame-ignore-revs","present":false,"timedOut":null}},"csrf_tokens":{"/libsdl-org/SDL/branches":{"post":"TeSsjOqY72ZuWsdMuRLYfAUhWwBQu7AODO4gSVJ8aHv4-IJ-naT6TQRBkSpktpMOqDYudZ3JLq1pwiVZMo_dEw"},"/repos/preferences":{"post":"wn1sxvc-riwzWrMWuY6nEDxJw4PJNlAD5t1UeL-bF2w98iVoKkm55sbzdXVybB7Bgxm_yqFzDpQv3XInxYJL8g"}}},"title":"Blaming SDL/README-porting.txt at a838a56d45b237888810ca4c76d9345fe98f27f6 ยท libsdl-org/SDL"}