fixed scons=parsing

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@591 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-09-20 22:06:22 +00:00
parent d9e4b55f15
commit 3e2419776f
12 changed files with 78 additions and 91 deletions

View File

@ -24,14 +24,15 @@ files = [
]
compileFlags = [
'-fPIC',
env['WXCPPFLAGS'],
]
linkFlags = [
env['WXLIBFLAGS'],
]
libs = [
'videocommon', 'common', 'GLEW',
]
gfxenv = env.Clone()
if sys.platform == 'darwin':
platform = 'mac'
# SDL is currently the only way to get video on Mac OS X.
@ -49,23 +50,20 @@ else:
# By default, GLX is used on Linux to setup OpenGL, but you can select SDL
# instead if you like, by changing the line below.
useSDL = False
# Libraries with pkg-config support.
compileFlags.append('`pkg-config --cflags xxf86vm`')
linkFlags.append('`pkg-config --libs xxf86vm`')
gfxenv.ParseConfig("pkg-config --libs ao")
# Libraries without pkg-config support.
libs += [ 'GL', 'Cg', 'CgGL', 'X11' ]
if useSDL:
compileFlags += [ '`sdl-config --cflags`', '-DUSE_SDL=1' ]
linkFlags += [ '`sdl-config --libs`' ]
if useSDL:
compileFlags += [ '-DUSE_SDL=1' ]
gfxenv = env.Clone()
gfxenv.Append(
CXXFLAGS = ' ' + ' '.join(compileFlags),
LINKFLAGS = ' ' + ' '.join(linkFlags)
CXXFLAGS = compileFlags,
)
gfxenv.SharedLibrary(
'../../../../Binary/%s/Plugins/zeroogl.so' % platform,
files,
LIBS = libs
LIBS = gfxenv['LIBS'] + libs
)