2009-01-15 06:48:15 +00:00
|
|
|
# -*- python -*-
|
2008-09-21 19:54:29 +00:00
|
|
|
|
2008-09-07 20:26:38 +00:00
|
|
|
Import('env')
|
2010-05-31 16:18:40 +00:00
|
|
|
import os
|
2008-09-07 20:26:38 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
files = [
|
|
|
|
'BootManager.cpp',
|
|
|
|
]
|
2008-10-20 17:32:15 +00:00
|
|
|
|
2009-11-08 08:54:09 +00:00
|
|
|
libs = [
|
2010-07-18 05:31:51 +00:00
|
|
|
'core', 'lzo2', 'discio', 'bdisasm',
|
2010-07-08 00:52:46 +00:00
|
|
|
'inputcommon', 'common', 'lua', 'z', 'sfml-network',
|
2009-11-08 08:54:09 +00:00
|
|
|
]
|
2008-12-05 13:46:19 +00:00
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
if env['HAVE_WX']:
|
2010-06-14 18:07:29 +00:00
|
|
|
memcardfiles = [
|
|
|
|
'MemcardManager.cpp',
|
|
|
|
'MemoryCards/GCMemcard.cpp',
|
2010-06-26 13:29:44 +00:00
|
|
|
'WxUtils.cpp',
|
2010-07-19 03:42:37 +00:00
|
|
|
]
|
2010-06-14 18:07:29 +00:00
|
|
|
|
2008-11-01 17:07:35 +00:00
|
|
|
files += [
|
2008-10-31 05:40:52 +00:00
|
|
|
'AboutDolphin.cpp',
|
2008-12-17 04:14:24 +00:00
|
|
|
'ARCodeAddEdit.cpp',
|
2008-11-01 17:07:35 +00:00
|
|
|
'ConfigMain.cpp',
|
|
|
|
'Frame.cpp',
|
2009-09-01 15:16:44 +00:00
|
|
|
'FrameAui.cpp',
|
2009-01-04 21:53:41 +00:00
|
|
|
'FrameTools.cpp',
|
2009-11-08 08:54:09 +00:00
|
|
|
'LuaWindow.cpp',
|
2009-09-01 15:16:44 +00:00
|
|
|
'LogWindow.cpp',
|
2008-11-01 17:07:35 +00:00
|
|
|
'GameListCtrl.cpp',
|
2010-04-12 01:33:10 +00:00
|
|
|
'HotkeyDlg.cpp',
|
2008-11-01 17:07:35 +00:00
|
|
|
'ISOFile.cpp',
|
2008-11-11 19:09:52 +00:00
|
|
|
'ISOProperties.cpp',
|
2008-12-17 04:14:24 +00:00
|
|
|
'PatchAddEdit.cpp',
|
2008-11-30 11:13:14 +00:00
|
|
|
'CheatsWindow.cpp',
|
2010-07-19 03:42:37 +00:00
|
|
|
'Main.cpp',
|
2010-01-05 08:07:06 +00:00
|
|
|
'MemoryCards/WiiSaveCrypted.cpp',
|
2010-05-01 19:10:35 +00:00
|
|
|
'NetPlay.cpp',
|
2010-05-05 04:31:21 +00:00
|
|
|
'NetPlayClient.cpp',
|
|
|
|
'NetPlayServer.cpp',
|
2010-02-21 20:09:49 +00:00
|
|
|
'NetWindow.cpp',
|
2008-10-20 17:32:15 +00:00
|
|
|
]
|
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
wxlibs = [ 'debwx', 'debugger_ui_util', 'inputuicommon', 'memcard' ]
|
2010-06-09 20:03:37 +00:00
|
|
|
else:
|
|
|
|
files+= [
|
2010-07-19 03:42:37 +00:00
|
|
|
'MainNoGUI.cpp',
|
2010-06-09 20:03:37 +00:00
|
|
|
'cmdline.c',
|
|
|
|
]
|
2009-11-08 08:54:09 +00:00
|
|
|
|
2010-06-14 18:07:29 +00:00
|
|
|
if sys.platform == 'win32':
|
|
|
|
files += [ "stdafx.cpp" ]
|
2010-07-19 03:42:37 +00:00
|
|
|
elif sys.platform == 'darwin' and not env['HAVE_WX']:
|
2010-06-16 00:07:52 +00:00
|
|
|
files += [ 'cocoaApp.m' ]
|
2008-11-13 08:12:48 +00:00
|
|
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
2010-07-19 03:42:37 +00:00
|
|
|
elif sys.platform == 'darwin' and env['HAVE_WX']:
|
Maintaining Leopard binary compatibility turns out be a a bit cumbersome.
For a typical OS X app, one only needs to specify the SDK version and the
target OS version range.
Because we use OpenCL which is new in 10.6, however, we must be somewhat
more verbose in order to make use of the forward compatibility facilities.
Unfortunately, the critical bit that is required to have binaries built
on 10.6 work on 10.5, namely disabling the new compact __LINKEDIT format,
causes stack alignment crashes at emulation time on 10.6, so for now
Leopard users still have to build Dolphin themselves.
Hopefully, this stack alignment problem will turn out to be coincident
with lingering alignment issues.
Include the OS X version of the Cg framework in Externals as with the
Windows one. The header files appear to be the same in the Windows and the
OS X builds of the February 2.2 Cg toolkit, although they are differently
munged by what appears to be some automatic process, so no new duplicates.
Any upgrades to the Cg libraries will of course need to be done in sync.
I do hope that Sonicadvance1's GLSL work will enable us to get rid of Cg.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5893 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-17 19:43:26 +00:00
|
|
|
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
2008-09-07 20:26:38 +00:00
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/' +
|
2010-06-26 13:29:44 +00:00
|
|
|
'Library/Frameworks/Cg.framework',
|
Maintaining Leopard binary compatibility turns out be a a bit cumbersome.
For a typical OS X app, one only needs to specify the SDK version and the
target OS version range.
Because we use OpenCL which is new in 10.6, however, we must be somewhat
more verbose in order to make use of the forward compatibility facilities.
Unfortunately, the critical bit that is required to have binaries built
on 10.6 work on 10.5, namely disabling the new compact __LINKEDIT format,
causes stack alignment crashes at emulation time on 10.6, so for now
Leopard users still have to build Dolphin themselves.
Hopefully, this stack alignment problem will turn out to be coincident
with lingering alignment issues.
Include the OS X version of the Cg framework in Externals as with the
Windows one. The header files appear to be the same in the Windows and the
OS X builds of the February 2.2 Cg toolkit, although they are differently
munged by what appears to be some automatic process, so no new duplicates.
Any upgrades to the Cg libraries will of course need to be done in sync.
I do hope that Sonicadvance1's GLSL work will enable us to get rid of Cg.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5893 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-17 19:43:26 +00:00
|
|
|
'#Externals/Cg/Cg.framework/Cg')
|
2010-06-26 13:29:44 +00:00
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
Maintaining Leopard binary compatibility turns out be a a bit cumbersome.
For a typical OS X app, one only needs to specify the SDK version and the
target OS version range.
Because we use OpenCL which is new in 10.6, however, we must be somewhat
more verbose in order to make use of the forward compatibility facilities.
Unfortunately, the critical bit that is required to have binaries built
on 10.6 work on 10.5, namely disabling the new compact __LINKEDIT format,
causes stack alignment crashes at emulation time on 10.6, so for now
Leopard users still have to build Dolphin themselves.
Hopefully, this stack alignment problem will turn out to be coincident
with lingering alignment issues.
Include the OS X version of the Cg framework in Externals as with the
Windows one. The header files appear to be the same in the Windows and the
OS X builds of the February 2.2 Cg toolkit, although they are differently
munged by what appears to be some automatic process, so no new duplicates.
Any upgrades to the Cg libraries will of course need to be done in sync.
I do hope that Sonicadvance1's GLSL work will enable us to get rid of Cg.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5893 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-17 19:43:26 +00:00
|
|
|
'#Source/Core/DolphinWX/resources/Dolphin.icns')
|
2010-07-09 01:26:53 +00:00
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
env.Plist(
|
2008-11-13 08:12:48 +00:00
|
|
|
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
2008-09-07 20:26:38 +00:00
|
|
|
Value(dict(
|
|
|
|
CFBundleExecutable = 'Dolphin',
|
2010-05-31 16:18:40 +00:00
|
|
|
CFBundleIconFile = 'Dolphin.icns',
|
2008-09-07 20:26:38 +00:00
|
|
|
CFBundleIdentifier = 'com.dolphin-emu.dolphin',
|
|
|
|
CFBundlePackageType = 'APPL',
|
2010-05-31 16:18:40 +00:00
|
|
|
CFBundleShortVersionString =
|
2010-06-16 00:07:52 +00:00
|
|
|
os.popen('svnversion -n ' + Dir('#').abspath).read(),
|
2010-05-31 16:18:40 +00:00
|
|
|
CFBundleVersion = '2.0',
|
2010-06-16 00:07:52 +00:00
|
|
|
LSMinimumSystemVersion = '10.5.0',
|
2008-09-07 20:26:38 +00:00
|
|
|
LSRequiresCarbon = True,
|
|
|
|
))
|
|
|
|
)
|
|
|
|
else:
|
2010-06-26 19:17:43 +00:00
|
|
|
files += [ 'X11Utils.cpp' ]
|
2010-02-02 21:56:29 +00:00
|
|
|
exeGUI = env['binary_dir'] + 'dolphin-emu'
|
|
|
|
exeNoGUI = env['binary_dir'] + 'dolphin-emu-nogui'
|
2008-09-07 20:26:38 +00:00
|
|
|
|
2010-07-19 03:42:37 +00:00
|
|
|
if env['HAVE_WX']:
|
|
|
|
env.StaticLibrary(env['local_libs'] + 'memcard', memcardfiles)
|
|
|
|
env.Program(exeGUI, files, LIBS = env['LIBS'] + wxlibs + libs)
|
2009-03-21 19:55:10 +00:00
|
|
|
else:
|
2010-07-19 03:42:37 +00:00
|
|
|
env.Program(exeNoGUI, files, LIBS = env['LIBS'] + libs)
|