import sys
Import('sharedlib_env')
Import('cxxflags')
core_env = sharedlib_env.Copy(CXXFLAGS = cxxflags);

Import('lib_path')
Import('threads_lib')
Import('z_lib')

#core_env.Append (CXXFLAGS = cxxflags)
if sys.platform == 'win32' :
	core_env.Append (CPPDEFINES= ['BUILDING_YAFRAYCORE'])

source_files = ['bound.cc',
								'buffer.cc',
								'yafsystem.cc',
								'tools.cc',
								'camera.cc',
								'color.cc',
								'filter.cc',
								'matrix4.cc',
								'object3d.cc',
								'triangletools.cc',
								'mesh.cc',
								'reference.cc',
								'renderblock.cc',
								'scene.cc',
								'forkedscene.cc',
								'threadedscene.cc',
								'ipc.cc',
								'ccthreads.cc',
								'noise.cc',
								'background.cc',
								'sphere.cc',
								'texture.cc',
								'metashader.cc',
								'targaIO.cc',
								'triangle.cc',
								'vector3d.cc',
								'photon.cc',
								'params.cc' ]

core_env.Append (CPPPATH = ['.','../..'])

core_env.Install(lib_path,
core_env.SharedLibrary (target='yafraycore', source=source_files, LIBS=threads_lib+z_lib))

core_env.Alias('install_core',lib_path)
