Howdy, Yegor,
On Tue, Aug 29, 2017 at 12:41 AM, Yegor Yefremov <yegorsli...@googlemail.com > wrote: > Hi Gregg, > > > ... > I'm still trying to understand, what is so wrong with CMake that both > IoTivity and AllJoyn are using Scons? > No idea. All I know is that at some point a switch was made to Scons. I'm not even sure what was used before that, probably autotools/make, but I don't know. > > I'm coming from Buildroot Embedded Linux distro and the wast majority > of packages is either autoconf or CMake. Buildroot provides a > convenient "abstraction" layer for CMake, so that usually you don't > need to tweak anything but selecting/disabling package specific > options (-DOPTION=ON etc.) in order to get your package built. > > There are only about 4 packages using Scons. So no infrastructure is > provided and the recipes have to supply all cross-compiling options > etc. And I found no Bazel based package. > > I suppose the same situation you have in other embedded Linux distros > like Yocto, OpenWrt/LEDE. > > So offence, just wondering. > Bazel is fairly new, AFIAIK. The problem with Cmake is that it amounts to a kind of meta-make. It generates makefiles. Makefiles are problematic. E.g. they are not entirely reliable - make cannot reliably decide what needs to be rebuilt. I understand that bazel fixes that problem. My personal experience is that Bazel is getting closer to what a build system (note: not a feature-test/autools system) ought to be. In any case, I take it as a given that the Scons files for Iotivity are a complete unholy mess. They don't even use Scons properly. What I've done is just an experiment using Bazel, for anybody else who wants to do a little exploring. It turns out that building Iotivity is actually relatively simple. The Scons files make the build look vastly more complicated than need be: $ find src/ -type f | wc -l 549 That's just for the C files in csdk. In the grand scheme of things, that's trivial. And Bazel makes it look as trivial as it is. Now just try looking at the Scons files without going insane. -G > > Regards, > Yegor >
_______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev