Build json¶
NOTE: If you only need to inline versions, you don’t need to build json, you don’t need to link it to your program. Just import cglm to your project as dependency / external lib by copy-paste then use it as usual
Unix (Autotools):¶
1 2 3 4 5 | $ sh autogen.sh
$ ./configure
$ make
$ make check # run tests (optional)
$ [sudo] make install # install to system (optional)
|
make will build json to .libs sub folder in project folder. If you don’t want to install json to your system’s folder you can get static and dynamic libs in this folder.
Windows (MSBuild):¶
Windows related build files, project files are located in win folder, make sure you are inside in json/win folder.
Code Analysis are enabled, it may take awhile to build.
1 2 | $ cd win
$ .\build.bat
|
if msbuild is not worked (because of multi versions of Visual Studio) then try to build with devenv:
1 | $ devenv json.sln /Build Release
|
Currently tests are not available on Windows.
Documentation (Sphinx):¶
json uses sphinx framework for documentation, it allows lot of formats for documentation. To see all options see sphinx build page:
https://www.sphinx-doc.org/en/master/man/sphinx-build.html
Example build:
1 2 3 4 5 6 7 | $ cd json/docs
$ sphinx-build source build
or
$ cd json/docs
$ sh ./build-docs.sh
|