4 # can we import path in one place?
6 sys.path.append(env['base_dir']+'SconsTests')
10 name = "Plugin_VideoSoftware"
15 'CommandProcessor.cpp',
34 'VertexFormatConverter.cpp',
45 'videocommon', 'SOIL', 'common'
50 if sys.platform == 'win32':
51 files += [ 'Win32.cpp' ]
53 tests = {'CheckPKG' : utils.CheckPKG}
54 conf = gfxenv.Configure(custom_tests = tests,
55 config_h=env['base_dir']+"Source/Core/Common/Src/Config.h")
57 if sys.platform == 'darwin':
58 gfxenv['FRAMEWORKS'] = ['CoreFoundation', 'System', 'OpenGL', 'Cocoa', 'Cg']
59 compileFlags += ['-x','objective-c++',]
60 files += [ 'cocoaGL.m', ]
62 conf.CheckPKG('OpenGL')
63 if gfxenv['HAVE_OPENCL']:
64 gfxenv['FRAMEWORKS'] += ['OpenCL']
66 elif sys.platform == 'win32':
67 print name + " is assuming that you have opengl, glu, cg, and cggl"
69 if not (conf.CheckPKG('GL') and conf.CheckPKG('GLU')):
70 print name + " must have opengl and glu to be build"
73 if sys.platform == 'win32':
74 print name + " is assuming that you have glew"
76 if not conf.CheckPKG('GLEW'):
77 print name + " must have glew to be build"
81 if sys.platform == 'win32':
86 env['base_dir'] + '/Externals/Cg/'
88 gfxenv['CPPPATH'] += libs
93 if gfxenv['USE_WX'] and not gfxenv['HAVE_WX']:
94 print "Must have wx to use wxgl"
97 CXXFLAGS = compileFlags,
98 LINKFLAGS = linkFlags,
101 gfxenv.SharedLibrary(
102 env['plugin_dir']+name,
104 LIBS = libs + gfxenv['LIBS']