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