2008-09-21 13:54:29 -06:00
|
|
|
# -*- python -*-
|
|
|
|
|
2008-09-07 14:26:38 -06:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
2008-12-05 06:46:19 -07:00
|
|
|
wxenv = env.Clone()
|
|
|
|
|
2008-09-07 14:26:38 -06:00
|
|
|
files = [
|
|
|
|
'BootManager.cpp',
|
|
|
|
'Config.cpp',
|
2008-09-23 01:00:18 -06:00
|
|
|
'cmdline.c',
|
2008-09-07 14:26:38 -06:00
|
|
|
]
|
2008-10-20 11:32:15 -06:00
|
|
|
|
2008-12-05 06:46:19 -07:00
|
|
|
libs = [
|
|
|
|
'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
|
|
|
|
]
|
|
|
|
|
|
|
|
if wxenv['HAVE_WX']:
|
2008-11-01 11:07:35 -06:00
|
|
|
files += [
|
2008-10-30 23:40:52 -06:00
|
|
|
'AboutDolphin.cpp',
|
2008-12-16 21:14:24 -07:00
|
|
|
'ARCodeAddEdit.cpp',
|
2008-11-01 11:07:35 -06:00
|
|
|
'ConfigMain.cpp',
|
|
|
|
'Frame.cpp',
|
|
|
|
'GameListCtrl.cpp',
|
|
|
|
'Globals.cpp',
|
|
|
|
'ISOFile.cpp',
|
2008-11-11 12:09:52 -07:00
|
|
|
'ISOProperties.cpp',
|
2008-11-01 11:07:35 -06:00
|
|
|
'MemcardManager.cpp',
|
|
|
|
'MemoryCards/GCMemcard.cpp',
|
|
|
|
'PluginManager.cpp',
|
2008-12-16 21:14:24 -07:00
|
|
|
'PatchAddEdit.cpp',
|
2008-11-30 04:13:14 -07:00
|
|
|
'CheatsWindow.cpp',
|
2008-11-01 11:07:35 -06:00
|
|
|
'stdafx.cpp',
|
2008-12-16 21:14:24 -07:00
|
|
|
'FrameWiimote.cpp',
|
2008-10-20 11:32:15 -06:00
|
|
|
]
|
|
|
|
|
2008-12-05 06:46:19 -07:00
|
|
|
CPPDEFINES = [
|
|
|
|
'USE_XPM_BITMAPS',
|
|
|
|
'wxNEEDS_CHARPP',
|
|
|
|
],
|
2008-09-07 14:26:38 -06:00
|
|
|
|
2008-11-01 11:07:35 -06:00
|
|
|
libs = [ 'debwx' ] + libs
|
2008-12-05 06:46:19 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wxenv.Append(
|
|
|
|
LINKFLAGS = [
|
|
|
|
'-pthread',
|
|
|
|
],
|
|
|
|
LIBS = libs
|
|
|
|
)
|
2008-09-07 14:26:38 -06:00
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2008-11-13 01:12:48 -07:00
|
|
|
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
|
|
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
2008-09-07 14:26:38 -06:00
|
|
|
|
|
|
|
icon = 'Dolphin'
|
|
|
|
version = 'svn'
|
|
|
|
wxenv.Plist(
|
2008-11-13 01:12:48 -07:00
|
|
|
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
2008-09-07 14:26:38 -06: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 01:12:48 -07:00
|
|
|
exeGUI = env['binary_dir'] + 'Dolphin'
|
|
|
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
2008-09-07 14:26:38 -06:00
|
|
|
|
2008-12-05 06:46:19 -07:00
|
|
|
#objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
|
|
|
|
2008-12-06 17:28:00 -07:00
|
|
|
if wxenv['HAVE_WX']:
|
2008-12-05 06:46:19 -07:00
|
|
|
wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
|
|
|
|
wxenv.Program(exeNoGUI, files + [ 'MainNoGUI.cpp' ])
|