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',
|
|
|
|
'Config.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-01-04 19:54:56 +00:00
|
|
|
'common', '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-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',
|
2009-01-09 12:46:04 +00:00
|
|
|
# 'PluginManager.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',
|
2008-12-17 04:14:24 +00:00
|
|
|
'FrameWiimote.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
|
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
|
|
|
|
)
|
|
|
|
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' ])
|
|
|
|
wxenv.Program(exeNoGUI, files + [ 'MainNoGUI.cpp' ])
|