<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
  All rights reserved.
-->
<project basedir="..\.."
         default="all"
         name="cxxapiref">
  <import file="${basedir}${file.separator}build.xml" />
  <dirname file="${ant.file.cxxapiref}"
           property="cxxapiref.dir" />
  <target depends="cxxapirefSample2xhtml"
          description="build all C++ API Reference output"
          name="all" />
  <!-- sample content targets -->
  <target depends="use-init"
          description="build HTML for the C++ API Reference samples"
          name="cxxapirefSample2xhtml">
    <mkdir dir="${cxxapiref.dir}${file.separator}out" />
    <mkdir dir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
    <antcall target="dita2xhtml.nokia">
      <param name="dita.extname"
             value=".xml" />
      <param name="transtype"
             value="xhtml" />
      <param name="args.input"
             value="${cxxapiref.dir}${file.separator}sample${file.separator}cxxApiExamples.ditamap" />
      <param name="output.dir"
             value="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
    </antcall>
    <copy file="${cxxapiref.dir}${file.separator}sample${file.separator}frameset.html"
          todir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
  </target>
  <target description="Delete the sample output files from the build"
          name="cxxapirefSampleClean">
    <delete dir="${cxxapiref.dir}${file.separator}out${file.separator}sample" />
  </target>
  <!-- documentation targets -->
  <target depends="use-init"
          description="build the HTML documentation for the specialization"
          name="cxxapirefDoc2xhtml">
    <mkdir dir="${cxxapiref.dir}${file.separator}out" />
    <antcall target="dita2xhtml">
      <param name="args.input"
             value="${cxxapiref.dir}${file.separator}doc${file.separator}root.ditamap" />
      <param name="output.dir"
             value="${cxxapiref.dir}${file.separator}out${file.separator}doc" />
      <param name="dita.extname"
             value=".xml" />
    </antcall>
  </target>
  <target description="Delete the documentation output files from the build"
          name="cxxapirefDocClean">
    <delete dir="${cxxapiref.dir}${file.separator}out${file.separator}doc" />
  </target>
</project>
