Hi Dev's, Over the weekend I found inkscape's cmake files were not working and took the time to update them,
* What Works * - building on linux - auto-detecting libs - basic installation - generating config.h, inkscape-version.c - all source & headers listed in CMakeLists.txt
* Whats needed * - Inkview target - Options from configure's --with/--without - a CMake module FindDBus.cmake, probably other libraries which are optional too. - CMake currently doesn't install translations, hicolor/icons, or man pages.
Probably you already discussed this when first adding CMake but I checked on build times and IDE integration.
Including all source files in the CMakeLists.txt files is important for IDE's mainly so they are aware of the headers. I double checked inkscape's source loads in QtCreator/Netbeans & Eclipse.
To ensure cmake doesn't get out of sync with the source there is a script which parses the CMakeLists.txt files and makes sure file lists are value and don't miss any newly added files. ./CMakeScripts/cmake_consistency_check.py
While a time test at this point is not quite fair, since cmake misses translations & linking inkview I ran one all the same :). Not including configure times and built with "time make -j6" on a 6 core system. cmake: 3min, 38sec. automake: 5min, 56sec.
So writing to say the cmake files are (basically) working and if you're a developer who likes fast builds and IDE integration, this part works now.
If there is some especially important thing I miss out, let me know and Ill try add it. If other devs want to add support for OSX/Windows, link inkview... etc, that'd be great too.
2011/6/14 Campbell Barton <ideasman42@...400...>:
While a time test at this point is not quite fair, since cmake misses translations & linking inkview I ran one all the same :). Not including configure times and built with "time make -j6" on a 6 core system. cmake: 3min, 38sec. automake: 5min, 56sec.
Please double-check whether CMake compiles with -O2 by default.
With my Waf build system on a 4-core (8 threads) Core i7 machine I had build times around the 3 minutes mark as well, but the difference was because I forgot to add -O2 to the flags.
Regards, Krzysztof
2011/6/14 Krzysztof Kosiński <tweenk.pl@...400...>:
2011/6/14 Campbell Barton <ideasman42@...400...>:
While a time test at this point is not quite fair, since cmake misses translations & linking inkview I ran one all the same :). Not including configure times and built with "time make -j6" on a 6 core system. cmake: 3min, 38sec. automake: 5min, 56sec.
Please double-check whether CMake compiles with -O2 by default.
With my Waf build system on a 4-core (8 threads) Core i7 machine I had build times around the 3 minutes mark as well, but the difference was because I forgot to add -O2 to the flags.
Regards, Krzysztof
You're right, with -O2 I get 4min, 15sec.
participants (2)
-
Campbell Barton
-
Krzysztof Kosiński