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