-
Notifications
You must be signed in to change notification settings - Fork 472
[DNM] CMake build files and directory structure #292
Conversation
include/sass/sass.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this end here and not at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will if all the #ifndef SASS's are replaced in the other files
|
Thanks for the feedback @QuLogic! It's been a long time since I did C building, so I appreciate the pointers. |
|
PS: @QuLogic I've started to clean and rebase here https://github.com/nschonni/libsass/tree/src-files-cleanup and will push back to this PR once finished. Feel free to PR to that branch for any improvements |
|
@QuLogic I've rebased down if you want to have another look. I still need to add back the emscripten target though |
|
BTW, you seem to have left autotools in, this time around. |
|
Also, can CMake be configured to disable testing (because maybe someone doesn't want to install Ruby)? |
Yup, that's what i did here https://github.com/hcatlin/libsass/pull/292/files#diff-15547c54d3d4898a882b4ab7b3cee381R21 |
Ah right, for some reason, I thought I saw a REQUIRED there. |
|
@QuLogic is is better to repack the test exes with the libsass.a or just copy the file to the bin folder for dynamic loading? |
|
|
|
I see a few warnings with Doxygen 1.8.6: |
|
You should try testing an out-of-source build. (Lots of CMake-using projects prefer/mandate it.) Documentation, for example, ends up in the source directory instead of the build directory. I'm not sure if the full test suite works (I don't have Ruby on this computer). |
👍 ran the upgrade and moved it to the build directory |
- Based on https://code.google.com/p/cpp-library-project-template/ - add Doxygen config file - Update build scripts - add sass-spec testing through CTest - Run CTest in verbose mode for CI
|
Hey guys! Do you think this would still be a valuable addition to libsass, since we've added MSVC 2013 project files? Since MSVC 2013 is the only compiler that can compile libsass, I'm not sure if CMake would add much benefit. Currently I don't see much pain to handle all the different makefiles, since we are only adding a file to the build here and then. But we are laking a target to build a dll on MSVC currently though! So it still seems to be interesting ... Are you guys up to rebase this to latest master? IMO it should be a bit easier and I agree that an out of source build would be better. I actually would volunteer to adjust the other build files accordingly. Shouldn't be too hard, since they are quite modular already. |
|
Yeah, I think there is still value and this should be simpler now that the Emscripten stuff has been removed. This likely needs to start from scratch as I also moved the source files in this making it painful to rebase. PS: another good example of a cross platform lib leveraging it https://github.com/libgit2/libgit2/blob/master/CMakeLists.txt?ts=4 |
|
👍 |
|
I have picked up on this work and successfully built the dll with cmake and msbuild (#1352). Bot sure if it will make it to master anytime soon, but getting the first results was rather easy! But there are still some open things, like versions and header location. Maybe somebody wants to continue from there ... Going to close this once I can create a clean PR with my changes! |
|
That's great @mgreter ! |
|
I'm going to close this since it is superseded by #1359. |
DO NOT MERGE
The commits really need to be cleaned up before this can be merged.
srcTODO