| Summary: | Refactor Cmake scripts | ||
|---|---|---|---|
| Product: | SDL | Reporter: | DarioOO <oliveridario89> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | REOPENED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | narutoxela, oliveridario89 |
| Version: | HG 2.1 | ||
| Hardware: | x86 | ||
| OS: | Windows Vista | ||
| Attachments: | Patch enabling switching of debug Symbols (GCC only) | ||
|
Description
DarioOO
2015-06-15 13:38:19 UTC
Sure, can you coordinate with Ryan to see how the CMake scripts can be improved? I don't use CMake myself for various reasons, so I leave it in y'all's capable hands. :) Ok I partially QUICK fixed the problem. I submitted the patch with HG (it don't asked credentials, so I hope I was already granted write access and that is not a security breach XD). - Now debug symbols can be disabled for GCC reducing binary size from 5 MB to 1.3 MB (default is now without debug symbols) - There's much more margin for improvement I think that's enough for RC1, but I'm willing to do more work for improving Cmake scripts :). Can someone confirm the patch is in the "trunk" (sorry I used mostly SVN and GIT so I don't know if I did the commit correctly with HG) (In reply to DarioOO from comment #2) > Ok I partially QUICK fixed the problem. I submitted the patch with HG (it > don't asked credentials, so I hope I was already granted write access and > that is not a security breach XD). If you "committed" the change, that means it's committed to your local copy of the repository; it doesn't work like Subversion in this case. You would have to "push" the change to our repository, but you don't have access to do that. You can do "hg export tip" and attach the output of that to this bug report, though, and we'll review and push it! Thanks, --ryan. Created attachment 2187 [details]
Patch enabling switching of debug Symbols (GCC only)
Here the patch. It does not any major change. It just add the chance to change compile settings
We're going to wait on this until 2.0.5; the thing we _should_ be doing is not forcing debug symbols at all (that's what the built in CMAKE_BUILD_TYPE=Debug is for). There's a couple things like that we need to fix. --ryan. I would like to volunteer for the refactoring if you don't mind. Perhaps I could actually work on it right now and show it to you, test it, change it if you want and so on once I'm done. |