{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8538","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8538/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8538/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8538/events","html_url":"https://github.com/OpenRA/OpenRA/pull/8538","id":89957469,"number":8538,"title":"Stripped down the platform dependencies","user":{"login":"Mailaender","id":756669,"avatar_url":"https://avatars.githubusercontent.com/u/756669?v=3","gravatar_id":"","url":"https://api.github.com/users/Mailaender","html_url":"https://github.com/Mailaender","followers_url":"https://api.github.com/users/Mailaender/followers","following_url":"https://api.github.com/users/Mailaender/following{/other_user}","gists_url":"https://api.github.com/users/Mailaender/gists{/gist_id}","starred_url":"https://api.github.com/users/Mailaender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mailaender/subscriptions","organizations_url":"https://api.github.com/users/Mailaender/orgs","repos_url":"https://api.github.com/users/Mailaender/repos","events_url":"https://api.github.com/users/Mailaender/events{/privacy}","received_events_url":"https://api.github.com/users/Mailaender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-21T20:33:08Z","updated_at":"2015-06-21T20:52:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8538","html_url":"https://github.com/OpenRA/OpenRA/pull/8538","diff_url":"https://github.com/OpenRA/OpenRA/pull/8538.diff","patch_url":"https://github.com/OpenRA/OpenRA/pull/8538.patch"},"body":"I added https://github.com/OpenRA/SDL2-CS but stripped it to only add what we need, so the unused SDL2_image.cs, SDL2_mixer.cs, SDL2_ttf.cs, AudioCapture.cs, but most importantly GL.cs and GLCore.cs have been reduced (~100x less methods) which I dubbed it MicroTK now. Inpired by https://github.com/flibitijibibo/SDL2-CS/issues/20#issuecomment-67949509.\r\n\r\nThe benefits are:\r\n* 61 OpenGL extensions loaded instead of EVERYTHING\r\n* 2,1 MB size reduction of our binary package\r\n* easier packaging for distros that require to build completely from source\r\n\r\nI also removed the OpenAL (and subsequent OpenTK) dependency from OpenRA.Game and placed it into the renderer DLLs, which in fact do a lot more than just rendering nowadays (input, window creation, etc.) so I renamed things to reflect this. This became a bigger job than I thought. Hope it was worth it."},"comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments/113956134","html_url":"https://github.com/OpenRA/OpenRA/pull/8538#issuecomment-113956134","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8538","id":113956134,"user":{"login":"pchote","id":167819,"avatar_url":"https://avatars.githubusercontent.com/u/167819?v=3","gravatar_id":"","url":"https://api.github.com/users/pchote","html_url":"https://github.com/pchote","followers_url":"https://api.github.com/users/pchote/followers","following_url":"https://api.github.com/users/pchote/following{/other_user}","gists_url":"https://api.github.com/users/pchote/gists{/gist_id}","starred_url":"https://api.github.com/users/pchote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchote/subscriptions","organizations_url":"https://api.github.com/users/pchote/orgs","repos_url":"https://api.github.com/users/pchote/repos","events_url":"https://api.github.com/users/pchote/events{/privacy}","received_events_url":"https://api.github.com/users/pchote/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T20:52:29Z","updated_at":"2015-06-21T20:52:29Z","body":"It would be more maintainable if we could keep the SDL2-CS dependency (using their main branch without the MiniTK cruft - fetched from nuget), and then had our own OpenRA.MicroTK.dll library in a separate repository for the gl bindings."}}