On Aug 28, 2017 1:17 PM, "Gregg Reynolds" <d...@mobileink.com> wrote:

And now for something completely different: a (mostly) working Bazel build
for iotivity 1.3.0.  If you want to play along, see

<http://goog_201371240>
https://github.com/OpenOCF/iochibity/tree/bazel


P.S.  If you want to try it on windows, pass --define=platform=windows.
 see //src/portability/BUILD for a fairly straightforward example (replaces
c_common).


Warning: this is very much a proof-of-concept hacking project.  I've
learned bazel as I went along, so the current design is undoubtedly not the
best.  But it seems to build, at least on OS X (and somewhat on windows,
I've yet to pull the OS X fixes into the windows build)

I've also reorganized the source tree at will.  This is for the C kernel
only, no C++.  I've begun experimenting with some refactoring so you may
see some weirdness.  But once you learn a bit of bazel, the BUILD files
should be very readable.

Also, I'm using autotools for configuration.  Works great, I don't know of
anything better anyway.

First impression:  Bazel is far, far better than scons.  Of course, there
is a learning curve - took me about a week to get the hang of it.  But in
the end I like it a lot more than Scons.

Cheers,

Gregg
_______________________________________________
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to