forked from dolphin-emu/dolphin
		
	git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3221 8ced0084-cf51-0410-be5f-012b33b47a6e
		
			
				
	
	
		
			115 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			115 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# -*- python -*-
 | 
						|
 | 
						|
Import('env')
 | 
						|
import sys
 | 
						|
 | 
						|
wxenv = env.Clone()
 | 
						|
 | 
						|
files = [
 | 
						|
	'BootManager.cpp',
 | 
						|
	'cmdline.c',
 | 
						|
	]
 | 
						|
 | 
						|
libs = [
 | 
						|
	'core', 'minilzo', 'discio', 'bdisasm', 'videocommon', 'inputcommon',
 | 
						|
	'common', 'z'
 | 
						|
	]
 | 
						|
 | 
						|
if wxenv['HAVE_WX']:
 | 
						|
	files += [
 | 
						|
		'AboutDolphin.cpp',
 | 
						|
		'ARCodeAddEdit.cpp',
 | 
						|
		'ConfigMain.cpp',
 | 
						|
		'Frame.cpp',
 | 
						|
		'LogWindow.cpp',
 | 
						|
		'FrameTools.cpp',
 | 
						|
		'GameListCtrl.cpp',
 | 
						|
		'Globals.cpp',
 | 
						|
		'ISOFile.cpp',
 | 
						|
		'ISOProperties.cpp',
 | 
						|
		'MemcardManager.cpp',
 | 
						|
		'MemoryCards/GCMemcard.cpp',
 | 
						|
		'PatchAddEdit.cpp',
 | 
						|
		'CheatsWindow.cpp',
 | 
						|
		'InfoWindow.cpp',
 | 
						|
		'stdafx.cpp',
 | 
						|
		'FrameWiimote.cpp',
 | 
						|
		'WxUtils.cpp',
 | 
						|
		]
 | 
						|
 | 
						|
        CPPDEFINES = [
 | 
						|
                'USE_XPM_BITMAPS',
 | 
						|
                'wxNEEDS_CHARPP',
 | 
						|
                ],
 | 
						|
 | 
						|
	libs = [ 'debwx' ] + libs
 | 
						|
if wxenv['HAVE_SFML']:
 | 
						|
	files += [ 
 | 
						|
		'NetEvent.cpp',
 | 
						|
		'NetFunctions.cpp',
 | 
						|
		'NetSockets.cpp',
 | 
						|
		'NetWindow.cpp',
 | 
						|
		]
 | 
						|
 | 
						|
if wxenv['HAVE_COCOA']:
 | 
						|
    files += [ 'cocoaApp.m', ]
 | 
						|
    compileFlags = [
 | 
						|
            '-x',
 | 
						|
            'objective-c++',
 | 
						|
            ]
 | 
						|
    wxenv.Append(
 | 
						|
	CXXFLAGS = compileFlags,
 | 
						|
       	LINKFLAGS = [
 | 
						|
               	'-pthread',
 | 
						|
               	],
 | 
						|
       	LIBS = libs
 | 
						|
       	)
 | 
						|
    if not wxenv['HAVE_WX']:
 | 
						|
	wxenv.Append(
 | 
						|
	    LINKFLAGS = ['-framework', 'IOKit'])
 | 
						|
else:
 | 
						|
    wxenv.Append(
 | 
						|
       	LINKFLAGS = [
 | 
						|
               	'-pthread',
 | 
						|
               	],
 | 
						|
       	LIBS = libs
 | 
						|
       	)
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
if sys.platform == 'darwin':
 | 
						|
	exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
 | 
						|
	exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
 | 
						|
 | 
						|
	icon = 'Dolphin'
 | 
						|
	version = 'svn'
 | 
						|
	wxenv.Plist(
 | 
						|
		env['binary_dir'] + '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 = env['binary_dir'] + 'Dolphin'
 | 
						|
	exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
 | 
						|
 | 
						|
#objects = [ wxenv.Object(srcFile) for srcFile in files ]
 | 
						|
 | 
						|
if wxenv['HAVE_WX']:
 | 
						|
	wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
 | 
						|
else:
 | 
						|
	wxenv.Program(exeNoGUI, files + [ 'MainNoGUI.cpp' ])
 |