<!--

    Ant script to generate the GData API samples.
    To build, run 'ant -f <path-to-this-file>'.

-->

<project name="gdata-samples" default="build" basedir=".">

  <!-- Include core build script -->
  <import file="build-samples/core.xml"/>

  <!-- Include property specific build scripts -->
  <import file="build-samples/appsforyourdomain.xml"/>
  <import file="build-samples/analytics.xml"/>
  <import file="build-samples/authsub.xml"/>
  <import file="build-samples/blogger.xml"/>
  <import file="build-samples/books.xml"/>
  <import file="build-samples/calendar.xml"/>
  <import file="build-samples/codesearch.xml"/>
  <import file="build-samples/contacts.xml"/>
  <import file="build-samples/docs.xml"/>
  <import file="build-samples/finance.xml"/>
  <import file="build-samples/gbase.xml"/>
  <import file="build-samples/gtt.xml"/>
  <import file="build-samples/health.xml"/>
  <import file="build-samples/maps.xml"/>
  <import file="build-samples/oauth.xml"/>
  <import file="build-samples/photos.xml"/>
  <import file="build-samples/projecthosting.xml"/>
  <import file="build-samples/sidewiki.xml"/>
  <import file="build-samples/sites.xml"/>
  <import file="build-samples/spreadsheet.xml"/>
  <import file="build-samples/youtube.xml"/>
  <import file="build-samples/webmastertools.xml"/>


<!--  ===================================================================== -->
<!--                      Build samples                                     -->
<!--  ===================================================================== -->

  <target name="build" depends="sample.appsforyourdomain.build,
              sample.analytics.build,
              sample.authsub.build,
              sample.blogger.build,
              sample.books.build,
              sample.calendar.build,
              sample.codesearch.build,
              sample.contacts.build,
              sample.core.build,
              sample.docs.build,
              sample.finance.build,
              sample.gbase.build,
              sample.gtt.build,
              sample.health.build,
              sample.maps.build,
              sample.oauth.build,
              sample.photos.build,
              sample.projecthosting.build,
              sample.sidewiki.build,
              sample.sites.build,
              sample.spreadsheet.build,
              sample.youtube.build,
              sample.webmastertools.build"/>

  <target name="clean"
      depends="sample.appsforyourdomain.clean,
              sample.analytics.clean,
              sample.authsub.clean,
              sample.blogger.clean,
              sample.books.clean,
              sample.calendar.clean,
              sample.codesearch.clean,
              sample.contacts.clean,
              sample.core.clean,
              sample.docs.clean,
              sample.finance.clean,
              sample.gbase.clean,
              sample.gtt.clean,
              sample.health.clean,
              sample.maps.clean,
              sample.oauth.clean,
              sample.photos.clean,
              sample.projecthosting.clean,
              sample.sidewiki.clean,
              sample.sites.clean,
              sample.spreadsheet.clean,
              sample.youtube.clean,
              sample.webmastertools.clean"/>


<!--  ===================================================================== -->
<!--                      Global target                                     -->
<!--  ===================================================================== -->
  <target name="all" depends="clean,build"
   description="Rebuild samples"/>

</project>
