2009-01-15 06:48:15 +00:00
|
|
|
# -*- python -*-
|
2008-09-21 19:54:29 +00:00
|
|
|
|
2008-07-12 17:40:22 +00:00
|
|
|
Import('env')
|
2008-08-06 21:07:31 +00:00
|
|
|
import sys
|
2008-07-12 17:40:22 +00:00
|
|
|
|
2008-11-13 08:12:48 +00:00
|
|
|
name = "Plugin_VideoOGL"
|
2008-11-11 20:59:48 +00:00
|
|
|
|
2008-08-26 00:18:00 +00:00
|
|
|
files = [
|
2009-06-22 09:31:30 +00:00
|
|
|
'BPFunctions.cpp',
|
2009-08-10 06:18:10 +00:00
|
|
|
'DLCache.cpp',
|
2009-10-13 06:12:58 +00:00
|
|
|
'RasterFont.cpp',
|
2008-08-26 00:18:00 +00:00
|
|
|
'Render.cpp',
|
|
|
|
'TextureMngr.cpp',
|
2008-10-24 23:08:46 +00:00
|
|
|
'NativeVertexFormat.cpp',
|
2008-12-26 11:23:59 +00:00
|
|
|
'PixelShaderCache.cpp',
|
|
|
|
'VertexShaderCache.cpp',
|
2008-11-11 07:31:40 +00:00
|
|
|
'TextureConverter.cpp',
|
2008-12-26 13:19:27 +00:00
|
|
|
'VertexManager.cpp',
|
|
|
|
'VertexLoaderManager.cpp',
|
2008-08-26 00:18:00 +00:00
|
|
|
'XFB.cpp',
|
2009-06-29 18:40:10 +00:00
|
|
|
'PostProcessing.cpp',
|
|
|
|
'FramebufferManager.cpp',
|
2010-07-16 21:56:40 +00:00
|
|
|
'main.cpp',
|
|
|
|
'GLUtil.cpp'
|
2008-08-26 00:18:00 +00:00
|
|
|
]
|
2010-07-16 21:56:40 +00:00
|
|
|
|
2008-08-26 00:18:00 +00:00
|
|
|
libs = [
|
2010-07-16 19:17:35 +00:00
|
|
|
'videocommon', 'GLEW', 'SOIL', 'common'
|
2008-08-26 00:18:00 +00:00
|
|
|
]
|
2008-09-20 22:06:22 +00:00
|
|
|
|
|
|
|
gfxenv = env.Clone()
|
|
|
|
|
2009-11-08 23:36:14 +00:00
|
|
|
if sys.platform != 'darwin':
|
|
|
|
if gfxenv['HAVE_OPENCL']:
|
|
|
|
libs += [ 'OpenCL']
|
2010-07-16 21:56:40 +00:00
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
if gfxenv['HAVE_WX']:
|
2008-10-25 17:47:46 +00:00
|
|
|
files += [
|
2010-07-16 21:56:40 +00:00
|
|
|
'GUI/ConfigDlg.cpp',
|
2009-03-07 22:12:01 +00:00
|
|
|
'Debugger/Debugger.cpp',
|
2010-07-16 21:56:40 +00:00
|
|
|
]
|
2008-10-25 17:47:46 +00:00
|
|
|
|
2010-06-04 04:59:07 +00:00
|
|
|
if sys.platform == 'darwin':
|
2010-07-16 21:56:40 +00:00
|
|
|
files += [ 'cocoaGL.m' ]
|
2009-03-07 22:12:01 +00:00
|
|
|
|
|
|
|
if sys.platform == 'win32':
|
2010-07-16 21:56:40 +00:00
|
|
|
files += [ 'OS/Win32.cpp' ]
|
|
|
|
libs += [ env['base_dir'] + '/Externals/Cg/' ]
|
2009-03-07 22:12:01 +00:00
|
|
|
gfxenv['CPPPATH'] += libs
|
2008-12-06 22:28:32 +00:00
|
|
|
|
2009-03-07 22:12:01 +00:00
|
|
|
gfxenv.SharedLibrary(
|
2008-11-13 08:12:48 +00:00
|
|
|
env['plugin_dir']+name,
|
2008-08-26 00:18:00 +00:00
|
|
|
files,
|
2008-10-28 14:19:28 +00:00
|
|
|
LIBS = libs + gfxenv['LIBS']
|
2008-08-26 00:18:00 +00:00
|
|
|
)
|