# Boost.Geometry (aka GGL, Generic Geometry Library)
# Doxygen XML to QuickBook
#
# Copyright (c) 2010-2012 Barend Gehrels, Amsterdam, the Netherlands.
# Copyright (c) 2010-2012 Mateusz Loskot, London, UK.
# Copyright (c) 2015 Rene Rivera

# Use, modification and distribution is subject to the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)


import boostcpp ;
import path ;
import option ;

local RAPIDXML = [ modules.peek : RAPIDXML ] ;
RAPIDXML ?= contrib/rapidxml-1.13 ;

local DIST_DIR = [ option.get distdir ] ;
DIST_DIR ?= [ path.join $(BOOST_ROOT) dist ] ;
DIST_DIR = [ path.root [ path.make $(DIST_DIR) ] [ path.pwd ] ] ;
local DIST_BIN = [ path.join $(DIST_DIR) bin ] ;

project doxygen_xml2qbk
    : requirements
        <include>.
        <include>$(RAPIDXML)
        <library>/boost/program_options//boost_program_options
        <link>static
    ;

exe doxygen_xml2qbk : doxygen_xml2qbk.cpp ;

install dist-bin
    :
    doxygen_xml2qbk
    :
    <install-type>EXE
    <location>$(DIST_BIN)
    :
    release
    ;
