more osx64 work

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@963 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
tmator
2008-10-25 17:47:46 +00:00
parent d3da9a67d7
commit 8f3aa9e67b
11 changed files with 300 additions and 29 deletions

View File

@ -26,11 +26,8 @@ files = [
'VertexLoaderManager.cpp',
'VertexShaderManager.cpp',
'XFB.cpp',
'GUI/ConfigDlg.cpp',
'Logging/Console.cpp',
'Logging/Logging.cpp',
'Debugger/Debugger.cpp',
'Debugger/PBView.cpp',
]
compileFlags = [
'-fPIC',
@ -43,6 +40,26 @@ libs = [
gfxenv = env.Clone()
if not gfxenv['osx64']:
files += [
'GUI/ConfigDlg.cpp',
'Debugger/Debugger.cpp',
'Debugger/PBView.cpp',
]
if gfxenv['osx64']:
files += [ 'cocoaGL.m' ]
compileFlags += [
'-x',
'objective-c++',
]
linkFlags += [
'-framework',
'cocoa',
'-arch',
'x86_64'
]
if sys.platform == 'darwin':
platform = 'mac'
# SDL is currently the only way to get video on Mac OS X.
@ -87,9 +104,8 @@ gfxenv.Append(
LINKFLAGS = linkFlags,
)
if not env['osx64']:
gfxenv.SharedLibrary(
gfxenv.SharedLibrary(
'../../../../Binary/%s/Plugins/zeroogl.so' % platform,
files,
LIBS = gfxenv['LIBS'] + libs
LIBS = libs
)