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

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


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)

backgs_env.Alias('install_backgs',plugin_path)
