2008-09-21 19:54:29 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
2008-09-07 20:26:38 +00:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
files = [
|
|
|
|
'BootManager.cpp',
|
|
|
|
'Config.cpp',
|
2008-10-04 17:26:12 +00:00
|
|
|
'ConfigMain.cpp',
|
2008-09-07 20:26:38 +00:00
|
|
|
'FileSearch.cpp',
|
2008-10-04 17:26:12 +00:00
|
|
|
'FilesystemViewer.cpp',
|
|
|
|
'Frame.cpp',
|
|
|
|
'GameListCtrl.cpp',
|
2008-09-07 20:26:38 +00:00
|
|
|
'Globals.cpp',
|
|
|
|
'ISOFile.cpp',
|
2008-10-04 17:26:12 +00:00
|
|
|
'MemcardManager.cpp',
|
2008-09-07 20:26:38 +00:00
|
|
|
'MemoryCards/GCMemcard.cpp',
|
2008-10-04 17:26:12 +00:00
|
|
|
'PluginManager.cpp',
|
2008-09-07 20:26:38 +00:00
|
|
|
'stdafx.cpp',
|
2008-09-23 07:00:18 +00:00
|
|
|
'cmdline.c',
|
2008-09-07 20:26:38 +00:00
|
|
|
]
|
|
|
|
libs = [
|
2008-10-04 17:26:12 +00:00
|
|
|
'debwx', 'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
|
2008-09-07 20:26:38 +00:00
|
|
|
]
|
|
|
|
|
2008-09-16 16:50:09 +00:00
|
|
|
wxenv = env.Clone()
|
2008-09-07 20:26:38 +00:00
|
|
|
wxenv.Append(
|
2008-09-22 23:53:15 +00:00
|
|
|
CPPDEFINES = [
|
2008-09-21 19:54:29 +00:00
|
|
|
'USE_XPM_BITMAPS',
|
|
|
|
'wxNEEDS_CHARPP',
|
2008-09-20 22:06:22 +00:00
|
|
|
],
|
|
|
|
LINKFLAGS = [
|
2008-10-04 17:26:12 +00:00
|
|
|
'-pthread',
|
2008-09-22 23:53:15 +00:00
|
|
|
],
|
|
|
|
LIBS = libs
|
2008-09-07 20:26:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
exeGUI = '../../../../Binary/mac/Dolphin.app/Contents/MacOS/Dolphin'
|
|
|
|
exeNoGUI = '../../../../Binary/mac/DolphinNoGUI'
|
|
|
|
|
|
|
|
icon = 'Dolphin'
|
|
|
|
version = 'svn'
|
|
|
|
wxenv.Plist(
|
|
|
|
'../../../../Binary/mac/Dolphin.app/Contents/Info.plist',
|
|
|
|
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:
|
|
|
|
exeGUI = '../../../../Binary/linux/Dolphin'
|
|
|
|
exeNoGUI = '../../../../Binary/linux/DolphinNoGUI'
|
|
|
|
|
|
|
|
objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
2008-10-04 17:26:12 +00:00
|
|
|
wxenv.Program(exeGUI, objects + [ 'Main.cpp' ])
|
2008-09-22 23:53:15 +00:00
|
|
|
wxenv.Program(exeNoGUI, objects + [ 'MainNoGUI.cpp' ])
|