<?xml?>

<gwbuild>

  <target type="InstallLibrary" name="aqhome"
          so_current="$(project_so_current)" 
          so_age="$(project_so_age)"
          so_revision="$(project_so_revision)"
          install="$(libdir)" >

    <includes type="c" >
      $(gwenhywfar_cflags)
      -I$(topsrcdir)
      -I$(topbuilddir)
    </includes>
  
    <includes type="tm2" >
      --include=$(builddir)
      --include=$(srcdir)
    </includes>


    <define name="BUILDING_AQHOME" />
    <define name="AQHOME_SYSCONF_DIR" value="$(aqhome_cfg_searchdir)"    quoted="TRUE" />
    <define name="AQHOME_LOCALEF_DIR" value="$(aqhome_locale_searchdir)" quoted="TRUE" />
    <define name="AQHOME_DATA_DIR"    value="$(aqhome_data_searchdir)"   quoted="TRUE" />
    <define name="AQHOME_RTDATA_DIR"  value="$(aqhome_rtdata_searchdir)" quoted="TRUE" />

    <setVar name="local/cflags">$(visibility_cflags)</setVar>

  
    <setVar name="tm2flags" >
      --api=AQHOME_API
    </setVar>


    <setVar name="local/typefiles" >
    </setVar>
  
    <setVar name="local/built_sources" >
    </setVar>
  
    <setVar name="local/built_headers_pub">
    </setVar>
  
    <setVar name="local/built_headers_priv" >
    </setVar>
  
  
    <headers dist="true" install="$(pkgincludedir)" >
      api.h
      aqhome.h
    </headers>


    <headers dist="true" >
    </headers>
  
  
    <sources>
      $(local/typefiles)
      aqhome.c
    </sources>

    <subdirs>
      msg
      ipc
      nodes
      mqtt
      hexfile
      data
      events
    </subdirs>


    <useTargets>
      aqhmsg
      aqhipc
      aqhnodes
      aqhmqtt
      aqhhexfile
      aqhdata
      aqhevents
    </useTargets>

    <libraries>
      $(gwenhywfar_libs)
      $(aqdatabase_libs)
    </libraries>


    <extradist>
    </extradist>



  </target>



  <target type="Program" name="libtest" >
    <includes type="c" >
      $(gwenhywfar_cflags)
      -I$(topsrcdir)
      -I$(topbuilddir)
    </includes>

    <setVar name="local/cflags">$(visibility_cflags)</setVar>

    <sources>libtest.c</sources>
    <useTargets>aqhome</useTargets>
    <libraries>$(gwenhywfar_libs)</libraries>
  </target>

  
</gwbuild>
