Import('plugin_env')
lights_env = plugin_env.Copy();

Import('cxxflags')
Import('plugin_path')
lights_env.Append (CXXFLAGS = cxxflags )


lights_env.Append (CPPPATH = ['.','../..','../yafraycore'])
lights_env.Append (LIBS = ['yafraycore'])
lights_env.Append (LIBPATH = ['../yafraycore'])

pathlight=lights_env.SharedLibrary (target='pathlight', source=['pathlight.cc','pathtools.cc'])
lights_env.Depends(pathlight,'../yafraycore');
lights_env.Install(plugin_path,pathlight)

sunlight=lights_env.SharedLibrary (target='sunlight', source=['sunlight.cc'])
lights_env.Depends(sunlight,'../yafraycore');
lights_env.Install(plugin_path,sunlight)

pointlight=lights_env.SharedLibrary (target='pointlight', source=['pointlight.cc'])
lights_env.Depends(pointlight,'../yafraycore');
lights_env.Install(plugin_path,pointlight)

photonlight=lights_env.SharedLibrary (target='photonlight', source=['photonlight.cc'])
lights_env.Depends(photonlight,'../yafraycore');
lights_env.Install(plugin_path,photonlight)

globalphotonlight=lights_env.SharedLibrary (target='globalphotonlight', source=['globalphotonlight.cc'])
lights_env.Depends(globalphotonlight,'../yafraycore');
lights_env.Install(plugin_path,globalphotonlight)

hemilight=lights_env.SharedLibrary (target='hemilight', source=['hemilight.cc'])
lights_env.Depends(hemilight,'../yafraycore');
lights_env.Install(plugin_path,hemilight)

spotlight=lights_env.SharedLibrary (target='spotlight', source=['spotlight.cc'])
lights_env.Depends(spotlight,'../yafraycore');
lights_env.Install(plugin_path,spotlight)

softlight=lights_env.SharedLibrary (target='softlight', source=['softlight.cc'])
lights_env.Depends(softlight,'../yafraycore');
lights_env.Install(plugin_path,softlight)

arealight=lights_env.SharedLibrary (target='arealight', source=['arealight.cc'])
lights_env.Depends(arealight,'../yafraycore');
lights_env.Install(plugin_path,arealight)

spherelight=lights_env.SharedLibrary (target='spherelight', source=['spherelight.cc'])
lights_env.Depends(spherelight,'../yafraycore');
lights_env.Install(plugin_path,spherelight)

lights_env.Alias('install_lights',plugin_path)
