NetPlay: completely redone - should be somewhat usable when using Single Core and...
[dolphin.git] / Source / Core / DolphinWX / Src / SConscript
blob9bc5b03d3243136e2ecc4bc7fc9d0c46bcd79248
1 # -*- python -*-
3 Import('env')
4 import sys
6 wxenv = env.Clone()
8 files = [
9         'BootManager.cpp',
10         'cmdline.c',
11         ]
13 libs = [
14         'core', 'lzo2', 'discio', 'bdisasm', 'videocommon', 
15         'inputcommon', 'common', 'lua', 'z', 'sfml-network'
16         ]
18 if wxenv['HAVE_WX']:
19         files += [
20                 'AboutDolphin.cpp',
21                 'ARCodeAddEdit.cpp',
22                 'ConfigMain.cpp',
23                 'Frame.cpp',
24                 'FrameAui.cpp',
25                 'FrameTools.cpp',
26                 'LuaWindow.cpp',
27                 'LogWindow.cpp',
28                 'GameListCtrl.cpp',
29                 'Globals.cpp',
30                 'HotkeyDlg.cpp',
31                 'ISOFile.cpp',
32                 'ISOProperties.cpp',
33                 'MemcardManager.cpp',
34                 'MemoryCards/GCMemcard.cpp',
35                 'PatchAddEdit.cpp',
36                 'CheatsWindow.cpp',
37                 'stdafx.cpp',
38                 'WxUtils.cpp',
39                 'MemoryCards/WiiSaveCrypted.cpp',
40                 'NetPlay.cpp',
41                 'NetWindow.cpp',
42                 ]
44         CPPDEFINES = [
45                 'USE_XPM_BITMAPS',
46                 'wxNEEDS_CHARPP',
47                 ],
49         libs = [ 'debwx', 'debugger_ui_util'] + libs
51 if wxenv['HAVE_COCOA']:
52     files += [ 'cocoaApp.m', ]
53     compileFlags = [
54             '-x',
55             'objective-c++',
56             ]
57     wxenv.Append(
58         CXXFLAGS = compileFlags,
59         LINKFLAGS = [
60                 '-pthread', '-framework', 'IOKit'
61                 ],
62         LIBS = libs
63         )
64 else:
65     wxenv.Append(
66         LINKFLAGS = [
67                 '-pthread',
68                 ],
69         LIBS = libs
70         )
75 if sys.platform == 'darwin':
76         exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
77         exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
79         icon = 'Dolphin'
80         version = 'svn'
81         wxenv['FRAMEWORKS'] = ['Cocoa', 'CoreFoundation', 'System']
82         wxenv.Plist(
83                 env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
84                 Value(dict(
85                         CFAppleHelpAnchor = 'index',
86                         CFBundleExecutable = 'Dolphin',
87                         CFBundleGetInfoHTML = 'Dolphin ' + version,
88                         CFBundleIconFile = icon,
89                         CFBundleIdentifier = 'com.dolphin-emu.dolphin',
90                         CFBundleName = 'Dolphin',
91                         CFBundlePackageType = 'APPL',
92                         CFBundleShortVersionString = version,
93                         CFBundleSignature = 'dlfn',
94                         CFBundleVersion = version,
95                         LSRequiresCarbon = True,
96                         NSPrefPaneIconFile = icon,
97                         NSPrefPaneIconLabel = 'Dolphin',
98                         ))
99                 )
100 else:
101         exeGUI = env['binary_dir'] + 'dolphin-emu'
102         exeNoGUI = env['binary_dir'] + 'dolphin-emu-nogui'
104 if wxenv['HAVE_X11']:
105         files += [ 'X11Utils.cpp' ]
107 #objects = [ wxenv.Object(srcFile) for srcFile in files ]
109 if wxenv['HAVE_WX']:
110         wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
111 else:
112         wxenv.Program(exeNoGUI, files + [ 'MainNoGUI.cpp' ])