Dear all, Yesterday we merged a patch which introduces CMake build system in VPP.
https://git.fd.io/vpp/commit/?id=612dd6a9 It is initial patch, and additional work is needed, but in general it manages to compile VPP binaries significantly faster than what we have today with autotools. In addition it brings following benefits which we can leverage in the future: - use of CPack to generate deb/rpms vs. hardcoded scripts we have today - much simpler and smaller build definitions specially for plugins - support for different build types (Debug, Release, Release with symbols, Coverage, ...) - support for external components (i.e. we can likely build dpdk and his dependencies) Autotools is still default way to run verify jobs and build images, but people can give CMake a try in few ways: Step 0: "apt-get install cmake ninja-build" - "make {build,rebuild,build-release,rebuild-release}" are already using cmake as default, old behaviour can be restored by saying "make vpp_uses_cmake=no ..." - make -C build-root vpp_uses_cmake=yes PLATFORM=vpp TAG={vpp|vpp_debug} - uncommenting "vpp_uses_cmake=yes" in build-data/platforms/vpp.mk - without ebuild: mkdir _build cd _build cmake [-G Ninja] /path/to/vpp/src -DCMAKE_BUILD_TYPE={Release|Debug} (optionally "ccmake ." to change parameters) {ninja|make} ./bin/vpp unix interactive Building packages (incomplete / work in progress): $ ninja package [0/1] Run CPack packaging tool... CPack: Create package using DEB CPack: Install projects CPack: - Install project: vpp CPack: - Install component: dev CPack: - Install component: plugins CPack: - Install component: vpp CPack: Create package CPack: - package: /home/damarion/tmp/_build/vpp-dev.deb generated. CPack: - package: /home/damarion/tmp/_build/vpp-plugins.deb generated. CPack: - package: /home/damarion/tmp/_build/vpp.deb generated. Feedback, issue reports and contributions to get CMake be a full replacement for autotools are welcome. Thanks, -- Damjan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10209): https://lists.fd.io/g/vpp-dev/message/10209 Mute This Topic: https://lists.fd.io/mt/24665874/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-