summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2008-08-28 18:58:11 +0000
committerMaarten ter Huurne <maarten@treewalker.org>2008-08-28 18:58:11 +0000
commitcfd31f4385182de89dc9747c7bb8139762cf2c4c (patch)
treee1622d895b1d1acda2311431db9d0adee8ddf3b1 /Source
parentf8b4311b665ce88f4d56d0cb13392bfa13e5cc56 (diff)
Build both GUI and non-GUI executable.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@373 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/src/SConscript76
1 files changed, 44 insertions, 32 deletions
diff --git a/Source/Core/DolphinWX/src/SConscript b/Source/Core/DolphinWX/src/SConscript
index 725e7a9a73..4b86410a15 100644
--- a/Source/Core/DolphinWX/src/SConscript
+++ b/Source/Core/DolphinWX/src/SConscript
@@ -1,21 +1,23 @@
Import('env')
import sys
-files = ["BootManager.cpp",
- "Config.cpp",
- "FileSearch.cpp",
- "Frame.cpp",
- "GameListCtrl.cpp",
- "Globals.cpp",
- "ISOFile.cpp",
- "Main.cpp",
- "MemcardManager.cpp",
- "MemoryCards/GCMemcard.cpp",
-# "MainNoGUI.cpp",
- "PluginManager.cpp",
- "PluginOptions.cpp",
- "stdafx.cpp",
- ]
+files = [
+ 'BootManager.cpp',
+ 'Config.cpp',
+ 'FileSearch.cpp',
+ 'Frame.cpp',
+ 'GameListCtrl.cpp',
+ 'Globals.cpp',
+ 'ISOFile.cpp',
+ 'MemcardManager.cpp',
+ 'MemoryCards/GCMemcard.cpp',
+ 'PluginManager.cpp',
+ 'PluginOptions.cpp',
+ 'stdafx.cpp',
+ ]
+libs = [
+ 'debwx', 'core', 'discio', 'bdisasm', 'videocommon', 'common', 'z'
+ ]
wxenv = env.Copy()
wxenv.Append(
@@ -34,23 +36,33 @@ wxenv.Append(
)
if sys.platform == 'darwin':
+ exeGUI = '../../../../Binary/mac/Dolphin.app/Contents/MacOS/Dolphin'
+ exeNoGUI = '../../../../Binary/mac/DolphinNoGUI'
+
icon = 'Dolphin'
version = 'svn'
- wxenv.Program('../../../../Binary/mac/Dolphin.app/Contents/MacOS/Dolphin', files, LIBS = ["debwx", "discio", "core", "bdisasm", "videocommon", "common" , "z"])
- 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',
- )))
+ 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:
- 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)