Build both GUI and non-GUI executable.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@373 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f8b4311b66
commit
cfd31f4385
|
@ -1,20 +1,22 @@
|
||||||
Import('env')
|
Import('env')
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
files = ["BootManager.cpp",
|
files = [
|
||||||
"Config.cpp",
|
'BootManager.cpp',
|
||||||
"FileSearch.cpp",
|
'Config.cpp',
|
||||||
"Frame.cpp",
|
'FileSearch.cpp',
|
||||||
"GameListCtrl.cpp",
|
'Frame.cpp',
|
||||||
"Globals.cpp",
|
'GameListCtrl.cpp',
|
||||||
"ISOFile.cpp",
|
'Globals.cpp',
|
||||||
"Main.cpp",
|
'ISOFile.cpp',
|
||||||
"MemcardManager.cpp",
|
'MemcardManager.cpp',
|
||||||
"MemoryCards/GCMemcard.cpp",
|
'MemoryCards/GCMemcard.cpp',
|
||||||
# "MainNoGUI.cpp",
|
'PluginManager.cpp',
|
||||||
"PluginManager.cpp",
|
'PluginOptions.cpp',
|
||||||
"PluginOptions.cpp",
|
'stdafx.cpp',
|
||||||
"stdafx.cpp",
|
]
|
||||||
|
libs = [
|
||||||
|
'debwx', 'core', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
|
||||||
]
|
]
|
||||||
|
|
||||||
wxenv = env.Copy()
|
wxenv = env.Copy()
|
||||||
|
@ -34,10 +36,14 @@ wxenv.Append(
|
||||||
)
|
)
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
|
exeGUI = '../../../../Binary/mac/Dolphin.app/Contents/MacOS/Dolphin'
|
||||||
|
exeNoGUI = '../../../../Binary/mac/DolphinNoGUI'
|
||||||
|
|
||||||
icon = 'Dolphin'
|
icon = 'Dolphin'
|
||||||
version = 'svn'
|
version = 'svn'
|
||||||
wxenv.Program('../../../../Binary/mac/Dolphin.app/Contents/MacOS/Dolphin', files, LIBS = ["debwx", "discio", "core", "bdisasm", "videocommon", "common" , "z"])
|
wxenv.Plist(
|
||||||
wxenv.Plist("../../../../Binary/mac/Dolphin.app/Contents/Info.plist", Value(dict(
|
'../../../../Binary/mac/Dolphin.app/Contents/Info.plist',
|
||||||
|
Value(dict(
|
||||||
CFAppleHelpAnchor = 'index',
|
CFAppleHelpAnchor = 'index',
|
||||||
CFBundleExecutable = 'Dolphin',
|
CFBundleExecutable = 'Dolphin',
|
||||||
CFBundleGetInfoHTML = 'Dolphin ' + version,
|
CFBundleGetInfoHTML = 'Dolphin ' + version,
|
||||||
|
@ -51,6 +57,12 @@ if sys.platform == 'darwin':
|
||||||
LSRequiresCarbon = True,
|
LSRequiresCarbon = True,
|
||||||
NSPrefPaneIconFile = icon,
|
NSPrefPaneIconFile = icon,
|
||||||
NSPrefPaneIconLabel = 'Dolphin',
|
NSPrefPaneIconLabel = 'Dolphin',
|
||||||
)))
|
))
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
wxenv.Program("../../../../Binary/linux/Dolphin", files, LIBS = ["debwx", "discio", "core", "bdisasm", "videocommon", "common"])
|
exeGUI = '../../../../Binary/linux/Dolphin'
|
||||||
|
exeNoGUI = '../../../../Binary/linux/DolphinNoGUI'
|
||||||
|
|
||||||
|
objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
||||||
|
wxenv.Program(exeGUI, objects + [ 'Main.cpp' ], LIBS = libs)
|
||||||
|
wxenv.Program(exeNoGUI, objects + [ 'MainNoGUI.cpp' ], LIBS = libs)
|
||||||
|
|
Loading…
Reference in New Issue