Description
Gentlemen,
In the project for which I am using json-fortran, I have chosen to use SCons as the build system.
I find that the build.sh
file works just fine, but it's a little too simple for purposes. I have no problem with CMake, but as written the CMake files for json-fortran have a requirement on jsonlint (there are many things called jsonlint, you seem to be using this one, right?), which, in turn, requires that node.js be installed. node.js is supercool, but not something I want to impose upon my users.
Here (https://gist.github.com/bruceravel/c74dd55c5a33a6966437) is the SConstruct
file that I came up with. It very closely emulates the behavior of the build.sh
script, but with logic for dependencies, cleaning, and installing.
If you think that others might appreciate this, then you can drop it in the top directory under the name SConstruct
. With it in place (and with SCons installed), the library is built by typing scons
and installed by scons install
or sudo scons install
. I can also imply leave the gist in place for linking to.
If you would rather not have a proliferation of build tools in the repo, I completely understand.
Regardless, I am grateful for json-fortran. It has really filled a need in my work. 😃