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')
|
|
|
|
import sys
|
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
wxenv = env.Clone()
|
|
|
|
|
2008-09-07 20:26:38 +00:00
|
|
|
files = [
|
|
|
|
'BootManager.cpp',
|
2008-09-23 07:00:18 +00:00
|
|
|
'cmdline.c',
|
2008-09-07 20:26:38 +00:00
|
|
|
]
|
2008-10-20 17:32:15 +00:00
|
|
|
|
2009-11-08 08:54:09 +00:00
|
|
|
libs = [
|
|
|
|
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon',
|
|
|
|
'inputcommon', 'common', 'lua', 'z'
|
|
|
|
]
|
2008-12-05 13:46:19 +00:00
|
|
|
|
|
|
|
if wxenv['HAVE_WX']:
|
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-09-01 15:16:44 +00:00
|
|
|
'FrameWiimote.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',
|
|
|
|
'Globals.cpp',
|
|
|
|
'ISOFile.cpp',
|
2008-11-11 19:09:52 +00:00
|
|
|
'ISOProperties.cpp',
|
2008-11-01 17:07:35 +00:00
|
|
|
'MemcardManager.cpp',
|
|
|
|
'MemoryCards/GCMemcard.cpp',
|
2008-12-17 04:14:24 +00:00
|
|
|
'PatchAddEdit.cpp',
|
2008-11-30 11:13:14 +00:00
|
|
|
'CheatsWindow.cpp',
|
2008-11-01 17:07:35 +00:00
|
|
|
'stdafx.cpp',
|
2009-02-24 19:31:32 +00:00
|
|
|
'WxUtils.cpp',
|
2010-01-05 08:07:06 +00:00
|
|
|
'MemoryCards/WiiSaveCrypted.cpp',
|
2010-01-14 07:19:10 +00:00
|
|
|
'MemoryCards/Crypto/bn.cpp'
|
|
|
|
'MemoryCards/Crypto/ec.cpp'
|
|
|
|
'MemoryCards/Crypto/md5.cpp'
|
|
|
|
'MemoryCards/Crypto/sha1.cpp'
|
2008-10-20 17:32:15 +00:00
|
|
|
]
|
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
CPPDEFINES = [
|
|
|
|
'USE_XPM_BITMAPS',
|
|
|
|
'wxNEEDS_CHARPP',
|
|
|
|
],
|
2008-09-07 20:26:38 +00:00
|
|
|
|
2009-11-08 08:54:09 +00:00
|
|
|
libs = [ 'debwx', 'debugger_ui_util'] + libs
|
|
|
|
|
2009-05-13 22:23:54 +00:00
|
|
|
if wxenv['HAVE_SFML']:
|
|
|
|
files += [
|
|
|
|
'NetEvent.cpp',
|
|
|
|
'NetFunctions.cpp',
|
|
|
|
'NetSockets.cpp',
|
|
|
|
'NetWindow.cpp',
|
|
|
|
]
|
2008-12-05 13:46:19 +00:00
|
|
|
|
2009-01-12 20:52:45 +00:00
|
|
|
if wxenv['HAVE_COCOA']:
|
|
|
|
files += [ 'cocoaApp.m', ]
|
|
|
|
compileFlags = [
|
|
|
|
'-x',
|
|
|
|
'objective-c++',
|
|
|
|
]
|
|
|
|
wxenv.Append(
|
|
|
|
CXXFLAGS = compileFlags,
|
|
|
|
LINKFLAGS = [
|
2009-10-07 10:13:20 +00:00
|
|
|
'-pthread', '-framework', 'IOKit'
|
2009-01-12 20:52:45 +00:00
|
|
|
],
|
|
|
|
LIBS = libs
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
wxenv.Append(
|
|
|
|
LINKFLAGS = [
|
|
|
|
'-pthread',
|
|
|
|
],
|
|
|
|
LIBS = libs
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
|
2008-09-07 20:26:38 +00:00
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2008-11-13 08:12:48 +00:00
|
|
|
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
|
|
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
2008-09-07 20:26:38 +00:00
|
|
|
|
|
|
|
icon = 'Dolphin'
|
|
|
|
version = 'svn'
|
2009-09-18 19:56:49 +00:00
|
|
|
wxenv['FRAMEWORKS'] = ['Cocoa', 'CoreFoundation', 'System']
|
2008-09-07 20:26:38 +00:00
|
|
|
wxenv.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(
|
|
|
|
CFAppleHelpAnchor = 'index',
|
|
|
|
CFBundleExecutable = 'Dolphin',
|
|
|
|
CFBundleGetInfoHTML = 'Dolphin ' + version,
|
|
|
|
CFBundleIconFile = icon,
|
|
|
|
CFBundleIdentifier = 'com.dolphin-emu.dolphin',
|
|
|
|
CFBundleName = 'Dolphin',
|
|
|
|
CFBundlePackageType = 'APPL',
|
|
|
|
CFBundleShortVersionString = version,
|
|
|
|
CFBundleSignature = 'dlfn',
|
|
|
|
CFBundleVersion = version,
|
|
|
|
LSRequiresCarbon = True,
|
|
|
|
NSPrefPaneIconFile = icon,
|
|
|
|
NSPrefPaneIconLabel = 'Dolphin',
|
|
|
|
))
|
|
|
|
)
|
|
|
|
else:
|
2008-11-13 08:12:48 +00:00
|
|
|
exeGUI = env['binary_dir'] + 'Dolphin'
|
|
|
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
2008-09-07 20:26:38 +00:00
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
#objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
|
|
|
|
2008-12-07 00:28:00 +00:00
|
|
|
if wxenv['HAVE_WX']:
|
2008-12-05 13:46:19 +00:00
|
|
|
wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
|
2009-03-21 19:55:10 +00:00
|
|
|
else:
|
|
|
|
wxenv.Program(exeNoGUI, files + [ 'MainNoGUI.cpp' ])
|