2009-08-16 00:21:02 -06:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
wxenv = env.Clone()
|
|
|
|
|
|
|
|
files = [
|
|
|
|
]
|
|
|
|
|
|
|
|
libs = [
|
|
|
|
'common',
|
|
|
|
]
|
|
|
|
|
|
|
|
if wxenv['HAVE_WX']:
|
|
|
|
files += [
|
2010-06-02 12:00:22 -06:00
|
|
|
'Externals/MemcardManager/src/mcmMain.cpp',
|
|
|
|
'Externals/MemcardManager/src/MCMdebug.cpp',
|
2009-08-16 00:21:02 -06:00
|
|
|
'Source/Core/DolphinWX/Src/MemcardManager.cpp',
|
|
|
|
'Source/Core/DolphinWX/Src/MemoryCards/GCMemcard.cpp',
|
|
|
|
'Source/Core/DolphinWX/Src/WxUtils.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
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-02 12:00:22 -06:00
|
|
|
exeGUI = env['binary_dir'] + 'MemcardManager'
|
2009-08-16 00:21:02 -06:00
|
|
|
|
|
|
|
#objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
|
|
|
|
|
|
|
wxenv.Program(exeGUI, files)
|