2009-10-12 16:29:32 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
# can we import path in one place?
|
|
|
|
import sys
|
|
|
|
sys.path.append(env['base_dir']+'SconsTests')
|
|
|
|
import utils
|
|
|
|
import platform
|
|
|
|
|
|
|
|
name = "Plugin_VideoSoftware"
|
|
|
|
|
|
|
|
files = [
|
|
|
|
'BPMemLoader.cpp',
|
|
|
|
'Clipper.cpp',
|
|
|
|
'CommandProcessor.cpp',
|
|
|
|
'CPMemLoader.cpp',
|
|
|
|
'DebugUtil.cpp',
|
|
|
|
'EfbCopy.cpp',
|
|
|
|
'EfbInterface.cpp',
|
|
|
|
'GLUtil.cpp',
|
|
|
|
'HwRasterizer.cpp',
|
|
|
|
'main.cpp',
|
|
|
|
'OpcodeDecoder.cpp',
|
|
|
|
'PixelEngine.cpp',
|
|
|
|
'Rasterizer.cpp',
|
2009-10-13 06:12:58 +00:00
|
|
|
'RasterFont.cpp',
|
2009-10-12 16:29:32 +00:00
|
|
|
'Renderer.cpp',
|
|
|
|
'SetupUnit.cpp',
|
|
|
|
'Statistics.cpp',
|
|
|
|
'Tev.cpp',
|
|
|
|
'TextureEncoder.cpp',
|
|
|
|
'TextureSampler.cpp',
|
|
|
|
'TransformUnit.cpp',
|
|
|
|
'VertexFormatConverter.cpp',
|
|
|
|
'VertexLoader.cpp',
|
|
|
|
'VideoConfig.cpp',
|
|
|
|
'XFMemLoader.cpp',
|
|
|
|
]
|
|
|
|
linkFlags = [
|
|
|
|
]
|
|
|
|
libs = [
|
2010-07-16 19:17:35 +00:00
|
|
|
'videocommon', 'GLEW', 'SOIL', 'common'
|
2009-10-12 16:29:32 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
gfxenv = env.Clone()
|
|
|
|
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
files += [ 'Win32.cpp' ]
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2010-06-04 04:59:07 +00:00
|
|
|
files += [ 'cocoaGL.m', ]
|
|
|
|
|
2009-10-12 16:29:32 +00:00
|
|
|
if sys.platform == 'win32':
|
|
|
|
files += [
|
|
|
|
'Win32.cpp'
|
|
|
|
]
|
|
|
|
libs += [
|
|
|
|
env['base_dir'] + '/Externals/Cg/'
|
|
|
|
]
|
|
|
|
gfxenv['CPPPATH'] += libs
|
|
|
|
|
|
|
|
gfxenv.SharedLibrary(
|
|
|
|
env['plugin_dir']+name,
|
|
|
|
files,
|
|
|
|
LIBS = libs + gfxenv['LIBS']
|
|
|
|
)
|