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