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
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
libs = [
|
2009-01-15 06:48:15 +00:00
|
|
|
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'inputcommon',
|
2009-06-21 09:35:31 +00:00
|
|
|
'common', 'z', 'debugger_ui_util'
|
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-03-18 17:17:58 +00:00
|
|
|
'LogWindow.cpp',
|
2009-01-04 21:53:41 +00:00
|
|
|
'FrameTools.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',
|
2009-04-24 18:04:50 +00:00
|
|
|
'InfoWindow.cpp',
|
2008-11-01 17:07:35 +00:00
|
|
|
'stdafx.cpp',
|
2008-12-17 04:14:24 +00:00
|
|
|
'FrameWiimote.cpp',
|
2009-02-24 19:31:32 +00:00
|
|
|
'WxUtils.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
|
|
|
|
2008-11-01 17:07:35 +00:00
|
|
|
libs = [ 'debwx' ] + 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 = [
|
|
|
|
'-pthread',
|
|
|
|
],
|
|
|
|
LIBS = libs
|
|
|
|
)
|
2009-04-30 08:24:48 +00:00
|
|
|
if not wxenv['HAVE_WX']:
|
|
|
|
wxenv.Append(
|
|
|
|
LINKFLAGS = ['-framework', 'IOKit'])
|
2009-01-12 20:52:45 +00:00
|
|
|
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'
|
|
|
|
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' ])
|