dropbox / json11

A tiny JSON library for C++11.
MIT License
2.55k stars 615 forks source link

Biicode support #28

Closed lasote closed 8 years ago

lasote commented 9 years ago

Hi!

My name is Luis Martinez and I write you from biicode a small start-up that’s developing a C and C++ dependency manager; just like Maven and Maven Central for Java. Our tool aims to allow our users to set-up a project with just #includes.

Biicode is based on CMake to build the projects, so its very flexible and "no-invasive" solution.

We took a look to json11 library and realized it is pretty amazing. I have forked your repository to support biicode and uploaded a biicode block to http://www.biicode.com/lasote/json11

I think people that like your library can easy include it, C++11 activation is automatic. Its tested on Windows with MinGW, Visual Studio, Linux with GCC and OSx with Clang.

Here is an example

Check the getting started guide.

Create new biicode project and create an empty block:

> bii init myproject
> bii new myuser/myblock

Include the header you need from this block in your source code:

#include "lasote/json11/json11.hpp"

You can also keep your #includes as "json11.hpp" using include mapping:

[includes]
json11.hpp: lasote/json11

Open biicode.conf file and put a requirement to this block:

[requirements]
lasote/json11: 4 # Check last version in website (http://www.biicode.com/lasote/lasote/json11/master)

Program your code and build it:

> bii cpp:build # This command will build your project and json11 dependency

You can check an the example with some examples using Json11 with biicode.

The uploaded block is on lasote/json11, but we will glad if you want to try biicode and/or upload the library to your biicode's user. So your users could maybe type #include "dropbox/json11/json11.hpp.h" and reuse your code!

If you would to do that, just rename block folder from "lasote" to your user, ex "dropbox", and edit biicode.conf file and change the [parent] block (track from biicode remote) to dropbox/json11: -1

This way biicode will publish a new block in your user workspace:

$ bii publish --tag STABLE

If you want to know more about biicode or need help just write me! luis.martinez@biicode.com

Thanks!