SubDir TOP apps tools lighter2 ;

Description lighter2 : "New Renderer Lightmap Calculator, take 2" ;
ApplicationIcon win32 : lighter2 : lighter.ico ;
Application lighter2 : [ Wildcard *.cpp *.h ] : console ;
MsvcUsePCH lighter2 : common.h ;
#CFlags lighter2 : $(COMPILER.C++FLAGS.OPENMP) ;
#LFlags lighter2 : $(COMPILER.LFLAGS.OPENMP) ;
LinkWith lighter2 : crystalspace ;
FileListEntryApplications lighter2 : app-tool ;

if [ Property build : projgen_version ] != 6
{

Description lighter2_static : "New Renderer Lightmap Calculator, take 2 (static build)" ;

SubVariant static ;

ApplicationIcon win32 : lighter2_static : lighter.ico ;
Application lighter2_static : [ Wildcard *.cpp *.h ] :
  console independent noinstall nohelp ;
CFlags lighter2_static : [ FDefines CS_STATIC_LINKED ] ;
LinkWith lighter2_static : crystalspace ;
FileListEntryApplications lighter2_static : app-tool-static ;

LIGHTER2.PLUGINLIST =
  bindoc
  csbmpimg
  csddsimg
  csgifimg
  csopcode
  csparser
  cssynldr
  dsplex
  particles
  particlesldr
  ptpdlight
  emit
  emitldr
  engine
  engseq
  genmesh
  gmeshanim
  gmeshldr
  gmeshanimpdl
  gmeshskelanim2
  skeleton
  skelldr
  vproc_std
  haze
  hazeldr
  imgplex
  null2d
  null3d
  nullmesh
  protomesh
  protomeshldr
  rendloop_loader
  rendstep_std
  rendstep_stencil
  reporter
  rm_null
  sequence
  shadermgr
  shaderweaver
  simpleformer
  simpleformerldr
  sndmanager
  sndsysnull
  spr2d
  spr2dldr
  spr3d
  spr3dldr
  stdpt
  stdrep
  terrain2
  terrain2ldr
  bruteblock
  terrainldr
  xmlread
  xmlshader
  xmltiny
  ;

if $(ZLIB.AVAILABLE) = "yes"
{
  LIGHTER2.PLUGINLIST += vfs ;
}
if $(JPEG.AVAILABLE) = "yes"
{
  LIGHTER2.PLUGINLIST += csjpgimg ;
}
if $(PNG.AVAILABLE) = "yes"
{
  LIGHTER2.PLUGINLIST += cspngimg ;
}
if $(CAL3D.AVAILABLE) = "yes"
{
  ;LIGHTER2.PLUGINLIST += sprcal3d sprcal3dldr ;
}
if $(GL.AVAILABLE) = "yes"
{
  LIGHTER2.PLUGINLIST += glshader_arb glshader_fixed ;
  if $(CG.AVAILABLE) = "yes" { LIGHTER2.PLUGINLIST += glshader_cg ; }
}

LinkStaticPlugins lighter2_static : $(LIGHTER2.PLUGINLIST) ;
SubVariant ;
}
