<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!--
// // See license.txt for license information. // // tool_test.xml // // 29-Aug-2005 phamilton Created //
-->

<tangle_tool name="tangle">
    <pathvar name="filedef_path" value="$(xlroot)/xml/filedef/cpp/tests"/>
    <pathvar name="safiledef_path" value="$(xlroot)/xml/filedef/cpp/standalone"/>
<!--
on the mac, we get link errors sometimes depending on the order of these libraries. IT would be nice to correctly order libraries depending on each platform, but for now we just fiddle them to get it to work.
-->

    <var name="otherlibs" value="[$(projectlibs),cppreflectlib,cppxmlobjlib,cppreflectjscriptlib,cpppersistxmllib,cpppersistlib,expat,boostdatetimelib,boostfilesystemlib,genericlib]"/>
    <var name="otherobjs" value="[tool_test_]"/>
    <var name="unit_test" value="unit_test_"/>
    <var name="ignoreobjects" value="[]"/>
    <var name="ignoreincludes" value="[]"/>
    <schema>parent(2).globals('schema')</schema>
    <objectfiledefs>
        <import url="$(safiledef_path)/header.xml">
            <param name="root" value="derived('@standalone')"/>
            <param name="filepath" value="$(src_path)"/>
            <param name="text_path" value="$(text_path)"/>
            <param name="ignoreobjects" value="$(ignoreobjects)"/>
            <param name="ignoreincludes" value="$(ignoreincludes)"/>
        </import>
        <import url="$(safiledef_path)/impl.xml">
            <param name="root" value="derived('@standalone')"/>
            <param name="filepath" value="$(src_path)"/>
            <param name="text_path" value="$(text_path)"/>
            <param name="ignoreobjects" value="$(ignoreobjects)"/>
            <param name="boostv" value="$(boostv)"/>
        </import>
    </objectfiledefs>
    <globalfiledefs>
        <import url="$(filedef_path)/../common/license.xml">
            <param name="root" value="derived('@xmlobj')"/>
            <pathparam name="filepath" value="$(license_path)"/>
            <pathparam name="text_path" value="$(text_path)"/>
        </import>
        <import url="$(filedef_path)/unit_test.xml">
            <param name="root" value="derived('@standalone')"/>
            <param name="filepath" value="$(src_path)/$(unit_test).cpp"/>
            <param name="text_path" value="$(text_path)"/>
            <param name="ignoreobjects" value="$(ignoreobjects)"/>
            <param name="ignoreincludes" value="$(ignoreincludes)"/>
            <param name="description" value="$(description)"/>
            <param name="boostv" value="$(boostv)"/>
        </import>
        <import url="$(filedef_path)/jam.xml">
            <param name="root" value="derived('@standalone')"/>
            <pathparam name="src_path" value="$(src_path)"/>
            <pathparam name="text_path" value="$(text_path)"/>
            <param name="lib_path" value="$(lib_path)"/>
            <param name="unit_test" value="$(unit_test)"/>
            <param name="subproject" value="$(subproject)"/>
            <param name="ignoreobjects" value="$(ignoreobjects)"/>
            <param name="otherlibs" value="$(otherlibs)"/>
            <param name="otherobjs" value="$(otherobjs)"/>
            <param name="extradefs" value="$(extradefs)"/>
        </import>
    </globalfiledefs>
    <objname>$(objname)</objname>
</tangle_tool>