SubDir TOP apps tools docconv ;

Description docconv : "Document Converter" ;

Application docconv
	: [ Wildcard *.cpp *.h ]
	: console
;
LinkWith docconv : crystalspace ;
FileListEntryApplications docconv : app-tool ;

if [ Property build : projgen_version ] != 6
{

Description docconv_static : "Terrain basemap generator (static build)" ;

SubVariant static ;

Application docconv_static : [ Wildcard *.cpp *.h ] :
  console independent noinstall nohelp ;
CFlags docconv_static : [ FDefines CS_STATIC_LINKED ] ;

LinkWith docconv_static : crystalspace ;

DOCCONV.PLUGINLIST =
  bindoc
  dsplex
  xmlread
  xmltiny
  ;

if $(ZLIB.AVAILABLE) = "yes"
{
  DOCCONV.PLUGINLIST += vfs ;
}

LinkStaticPlugins docconv_static : $(DOCCONV.PLUGINLIST) ;
FileListEntryApplications docconv_static : app-tool-static ;
SubVariant ;
}

