valijson/thirdparty/urdl-2013-08-15/Jamroot
Tristan Penman 4c9864de73 Initial commit.
This commit contains the third major design of a C++ library for JSON Schema validation.

It is definitely not what I would consider production-ready, but I do think that the overall design of the library is robust.
2013-10-30 07:51:11 +11:00

56 lines
923 B
Plaintext

import modules ;
import package ;
path-constant URDL_ROOT : . ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
if $(BOOST_ROOT)
{
use-project /boost : $(BOOST_ROOT) ;
}
rule handle-static-runtime ( properties * )
{
if <link>shared in $(properties) && <runtime-link>static in $(properties)
{
return <build>no ;
}
}
project
:
build-dir build/bin
:
requirements
<threading>multi
<conditional>@handle-static-runtime
:
default-build
debug release
<threading>multi
<link>shared <link>static
<runtime-link>shared <runtime-link>static
;
install lib
:
build
:
<location>lib
<install-type>LIB
;
local patterns = *.hpp *.ipp ;
local dirs = include/urdl include/urdl/* ;
package.install install
:
<install-source-root>include
:
:
build
:
[ glob $(dirs)/$(patterns) ]
;