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