import sys
Import('plugin_env')
Import('cxxflags')
backgs_env = plugin_env.Copy(CXXFLAGS = cxxflags);

Import('plugin_path')
#backgs_env.Append (CXXFLAGS = cxxflags )
if sys.platform == 'win32' :
	backgs_env.Append (CPPDEFINES= ['BUILDING_YAFRAYPLUGIN'])


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

hdri=backgs_env.SharedLibrary (target='hdri', source=['hdri.cc',
                                                 			'HDRimage.cc'])
backgs_env.Depends(hdri,'../yafraycore')
backgs_env.Install(plugin_path,hdri)

sunsky=backgs_env.SharedLibrary (target='sunsky', source=['sunsky.cc'])
backgs_env.Depends(sunsky,'../yafraycore')
backgs_env.Install(plugin_path,sunsky)

shaderback=backgs_env.SharedLibrary (target='shaderback', source=['shaderback.cc'])
backgs_env.Depends(shaderback,'../yafraycore')
backgs_env.Install(plugin_path,shaderback)

backgs_env.Alias('install_backgs',plugin_path)
