Port to *BSD. It runs but isn't terribly useful without Cg.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5934 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-07-22 03:29:35 +00:00
parent cdce0ec322
commit 83883cee45
29 changed files with 5353 additions and 148 deletions

View File

@ -35,7 +35,6 @@ cppDefines = [
]
include_paths = [
'#',
'#Source/Core/Common/Src',
'#Source/Core/DiscIO/Src',
'#Source/PluginSpecs',
@ -68,7 +67,6 @@ dirs = [
'Source/Core/DSPCore/Src',
'Source/DSPTool/Src',
'Source/Core/InputUICommon/Src',
'Source/Plugins/Plugin_VideoOGL/Src',
'Source/Plugins/Plugin_VideoSoftware/Src',
'Source/Plugins/Plugin_DSP_HLE/Src',
'Source/Plugins/Plugin_DSP_LLE/Src',
@ -79,6 +77,9 @@ dirs = [
'Source/UnitTests',
]
if sys.platform == 'darwin' or sys.platform == 'linux2':
dirs += ['Source/Plugins/Plugin_VideoOGL/Src']
builders = {}
if sys.platform == 'darwin':
from plistlib import writePlist
@ -288,13 +289,13 @@ elif sys.platform == 'win32':
env['tools'] = ['mingw']
else:
env['CPPPATH'].insert(0, '#')
env['LINKFLAGS'] += ['-pthread']
conf = env.Configure(custom_tests = tests, config_h="#config.h")
if not conf.CheckPKGConfig('0.15.0'):
print "Can't find pkg-config, some tests will fail"
env['LINKFLAGS'] += ['-pthread']
if env['shared_glew']:
shared['glew'] = conf.CheckPKG('GLEW')
if env['shared_sdl']:
@ -324,6 +325,8 @@ else:
print "WX libraries not found - see config.log"
Exit(1)
conf.CheckPKG('usbhid')
env['HAVE_BLUEZ'] = conf.CheckPKG('bluez')
conf.Define('HAVE_BLUEZ', env['HAVE_BLUEZ'])
@ -359,12 +362,14 @@ else:
if not conf.CheckPKG('GLU'):
print "Must have GLU to build"
Exit(1)
if not conf.CheckPKG('Cg'):
print "Must have Cg toolkit from NVidia to build"
Exit(1)
if not conf.CheckPKG('CgGL'):
print "Must have CgGl to build"
Exit(1)
if sys.platform == 'linux2':
if not conf.CheckPKG('Cg'):
print "Must have Cg toolkit from NVidia to build"
Exit(1)
if not conf.CheckPKG('CgGL'):
print "Must have CgGl to build"
Exit(1)
if env['opencl']:
env['HAVE_OPENCL'] = conf.CheckPKG('OpenCL')