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-09-24 19:47:51 +02:00
|
|
|
# can we import path in one place?
|
2008-08-06 23:07:31 +02:00
|
|
|
import sys
|
2008-11-13 09:12:48 +01:00
|
|
|
sys.path.append(env['base_dir']+'SconsTests')
|
2008-09-24 19:47:51 +02:00
|
|
|
import utils
|
2008-12-09 22:46:32 +01:00
|
|
|
import platform
|
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',
|
|
|
|
'VertexLoaderManager.cpp',
|
2008-08-26 02:18:00 +02:00
|
|
|
'XFB.cpp',
|
2009-06-29 20:40:10 +02:00
|
|
|
'PostProcessing.cpp',
|
|
|
|
'FramebufferManager.cpp',
|
2008-08-26 02:18:00 +02:00
|
|
|
]
|
|
|
|
linkFlags = [
|
|
|
|
]
|
|
|
|
libs = [
|
2010-06-16 02:07:52 +02:00
|
|
|
'videocommon', 'GLEW', 'SDL', 'SOIL', 'common'
|
2008-08-26 02:18:00 +02:00
|
|
|
]
|
2008-09-21 00:06:22 +02:00
|
|
|
|
|
|
|
gfxenv = env.Clone()
|
|
|
|
|
2009-09-09 21:52:45 +02:00
|
|
|
files += [
|
|
|
|
'main.cpp',
|
|
|
|
'GLUtil.cpp',
|
|
|
|
]
|
2009-11-09 00:36:14 +01:00
|
|
|
if sys.platform != 'darwin':
|
|
|
|
if gfxenv['HAVE_OPENCL']:
|
|
|
|
libs += [ 'OpenCL']
|
2008-12-05 14:46:19 +01:00
|
|
|
if gfxenv['HAVE_WX']:
|
2008-10-25 19:47:46 +02:00
|
|
|
files += [
|
2008-12-05 14:46:19 +01:00
|
|
|
'GUI/ConfigDlg.cpp',
|
2009-03-07 23:12:01 +01:00
|
|
|
'Debugger/Debugger.cpp',
|
2008-12-05 14:46:19 +01:00
|
|
|
]
|
2008-10-25 19:47:46 +02:00
|
|
|
|
2010-06-04 06:59:07 +02:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
files += [ 'cocoaGL.m' ]
|
2009-03-07 23:12:01 +01:00
|
|
|
|
2009-03-07 22:05:03 +01:00
|
|
|
if sys.platform == 'win32':
|
2010-06-10 16:18:21 +02:00
|
|
|
files += [ 'OS/Win32.cpp' ]
|
2009-03-07 23:12:01 +01:00
|
|
|
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
files += [
|
|
|
|
'OS/Win32.cpp'
|
|
|
|
]
|
|
|
|
libs += [
|
|
|
|
env['base_dir'] + '/Externals/Cg/'
|
|
|
|
]
|
|
|
|
gfxenv['CPPPATH'] += libs
|
2008-12-06 23:28:32 +01:00
|
|
|
|
2009-03-07 23:12:01 +01:00
|
|
|
gfxenv.SharedLibrary(
|
2008-11-13 09:12:48 +01:00
|
|
|
env['plugin_dir']+name,
|
2008-08-26 02:18:00 +02:00
|
|
|
files,
|
2008-10-28 15:19:28 +01:00
|
|
|
LIBS = libs + gfxenv['LIBS']
|
2008-08-26 02:18:00 +02:00
|
|
|
)
|