2009-01-15 07:48:15 +01:00
|
|
|
# -*- python -*-
|
2008-09-21 21:54:29 +02:00
|
|
|
|
2008-09-07 22:26:38 +02:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
2008-12-05 14:46:19 +01:00
|
|
|
wxenv = env.Clone()
|
|
|
|
|
2008-09-07 22:26:38 +02:00
|
|
|
files = [
|
|
|
|
'BootManager.cpp',
|
2008-09-23 09:00:18 +02:00
|
|
|
'cmdline.c',
|
2008-09-07 22:26:38 +02:00
|
|
|
]
|
2008-10-20 19:32:15 +02:00
|
|
|
|
2009-11-08 09:54:09 +01:00
|
|
|
libs = [
|
2010-02-22 17:10:08 +01:00
|
|
|
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon',
|
|
|
|
'inputcommon', 'common', 'lua', 'z', 'sfml'
|
2009-11-08 09:54:09 +01:00
|
|
|
]
|
2008-12-05 14:46:19 +01:00
|
|
|
|
|
|
|
if wxenv['HAVE_WX']:
|
2008-11-01 18:07:35 +01:00
|
|
|
files += [
|
2008-10-31 06:40:52 +01:00
|
|
|
'AboutDolphin.cpp',
|
2008-12-17 05:14:24 +01:00
|
|
|
'ARCodeAddEdit.cpp',
|
2008-11-01 18:07:35 +01:00
|
|
|
'ConfigMain.cpp',
|
|
|
|
'Frame.cpp',
|
2009-09-01 17:16:44 +02:00
|
|
|
'FrameAui.cpp',
|
2009-01-04 22:53:41 +01:00
|
|
|
'FrameTools.cpp',
|
2009-09-01 17:16:44 +02:00
|
|
|
'FrameWiimote.cpp',
|
2009-11-08 09:54:09 +01:00
|
|
|
'LuaWindow.cpp',
|
2009-09-01 17:16:44 +02:00
|
|
|
'LogWindow.cpp',
|
2008-11-01 18:07:35 +01:00
|
|
|
'GameListCtrl.cpp',
|
|
|
|
'Globals.cpp',
|
|
|
|
'ISOFile.cpp',
|
2008-11-11 20:09:52 +01:00
|
|
|
'ISOProperties.cpp',
|
2008-11-01 18:07:35 +01:00
|
|
|
'MemcardManager.cpp',
|
|
|
|
'MemoryCards/GCMemcard.cpp',
|
2008-12-17 05:14:24 +01:00
|
|
|
'PatchAddEdit.cpp',
|
2008-11-30 12:13:14 +01:00
|
|
|
'CheatsWindow.cpp',
|
2008-11-01 18:07:35 +01:00
|
|
|
'stdafx.cpp',
|
2009-02-24 20:31:32 +01:00
|
|
|
'WxUtils.cpp',
|
2010-01-05 09:07:06 +01:00
|
|
|
'MemoryCards/WiiSaveCrypted.cpp',
|
2010-02-21 21:09:49 +01:00
|
|
|
'NetEvent.cpp',
|
|
|
|
'NetFunctions.cpp',
|
|
|
|
'NetSockets.cpp',
|
|
|
|
'NetWindow.cpp',
|
2008-10-20 19:32:15 +02:00
|
|
|
]
|
|
|
|
|
2008-12-05 14:46:19 +01:00
|
|
|
CPPDEFINES = [
|
|
|
|
'USE_XPM_BITMAPS',
|
|
|
|
'wxNEEDS_CHARPP',
|
|
|
|
],
|
2008-09-07 22:26:38 +02:00
|
|
|
|
2009-11-08 09:54:09 +01:00
|
|
|
libs = [ 'debwx', 'debugger_ui_util'] + libs
|
|
|
|
|
2009-01-12 21:52:45 +01:00
|
|
|
if wxenv['HAVE_COCOA']:
|
|
|
|
files += [ 'cocoaApp.m', ]
|
|
|
|
compileFlags = [
|
|
|
|
'-x',
|
|
|
|
'objective-c++',
|
|
|
|
]
|
|
|
|
wxenv.Append(
|
|
|
|
CXXFLAGS = compileFlags,
|
|
|
|
LINKFLAGS = [
|
2009-10-07 12:13:20 +02:00
|
|
|
'-pthread', '-framework', 'IOKit'
|
2009-01-12 21:52:45 +01:00
|
|
|
],
|
|
|
|
LIBS = libs
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
wxenv.Append(
|
|
|
|
LINKFLAGS = [
|
|
|
|
'-pthread',
|
|
|
|
],
|
|
|
|
LIBS = libs
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2008-12-05 14:46:19 +01:00
|
|
|
|
2008-09-07 22:26:38 +02:00
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2008-11-13 09:12:48 +01:00
|
|
|
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
|
|
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
2008-09-07 22:26:38 +02:00
|
|
|
|
|
|
|
icon = 'Dolphin'
|
|
|
|
version = 'svn'
|
2009-09-18 21:56:49 +02:00
|
|
|
wxenv['FRAMEWORKS'] = ['Cocoa', 'CoreFoundation', 'System']
|
2008-09-07 22:26:38 +02:00
|
|
|
wxenv.Plist(
|
2008-11-13 09:12:48 +01:00
|
|
|
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
2008-09-07 22:26:38 +02: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:
|
2010-02-02 22:56:29 +01:00
|
|
|
exeGUI = env['binary_dir'] + 'dolphin-emu'
|
|
|
|
exeNoGUI = env['binary_dir'] + 'dolphin-emu-nogui'
|
2008-09-07 22:26:38 +02:00
|
|
|
|
2008-12-05 14:46:19 +01:00
|
|
|
#objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
|
|
|
|
2008-12-07 01:28:00 +01:00
|
|
|
if wxenv['HAVE_WX']:
|
2008-12-05 14:46:19 +01:00
|
|
|
wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
|
2009-03-21 20:55:10 +01:00
|
|
|
else:
|
|
|
|
wxenv.Program(exeNoGUI, files + [ 'MainNoGUI.cpp' ])
|