On Sat, Aug 18, 2018 at 3:38 AM Damjan Marion via Lists.Fd.Io <[email protected]> wrote: > > > 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.
I think this is backwards. CMake is worse than the autotools when it comes to build systems maintaince and debugging. Can someone explain to me the benifit to cmake over autotools? Because I see none. Thanks, Andrew Pinski > > 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/912176 > Group Owner: [email protected] > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10210): https://lists.fd.io/g/vpp-dev/message/10210 Mute This Topic: https://lists.fd.io/mt/24665874/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
