全部博文(1159)
分类: Web开发
2015-11-30 21:33:31
JsonCpp is provided with a script to generate a single header and a single source file to ease inclusion into an existing project. The amalgamated source can be generated at any time by running the following command from the top-directory (this requires Python 2.6):
python amalgamate.py
It is possible to specify header name. See the -h option for detail.
By default, the following files are generated:
The amalgamated sources are generated by concatenating JsonCpp source in the correct order and defining the macro JSON_IS_AMALGAMATION to prevent inclusion of other headers.