2010-04-01 02:59:40 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
name = "Plugin_GCPadNew"
|
|
|
|
padenv = env.Clone()
|
|
|
|
|
|
|
|
files = [
|
|
|
|
'Config.cpp',
|
|
|
|
'ControllerEmu.cpp',
|
|
|
|
'ControllerEmu/GCPad/GCPad.cpp',
|
|
|
|
'GCPadNew.cpp',
|
|
|
|
'ControllerInterface/ControllerInterface.cpp',
|
|
|
|
'IniFile.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if padenv['HAVE_SDL']:
|
|
|
|
files += [ 'ControllerInterface/SDL/SDL.cpp' ]
|
2010-04-02 09:41:43 +00:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
files += [ 'ControllerInterface/OSX/OSX.cpp', 'ControllerInterface/OSX/OSXPrivate.mm' ]
|
2010-04-01 02:59:40 +00:00
|
|
|
|
|
|
|
if padenv['HAVE_WX']:
|
|
|
|
files += [
|
|
|
|
'ConfigDiag.cpp',
|
|
|
|
'ConfigDiagBitmaps.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
padenv.Append(
|
|
|
|
LIBS = [ 'inputcommon', 'common', ],
|
|
|
|
)
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2010-04-02 09:41:43 +00:00
|
|
|
padenv['FRAMEWORKS'] = ['CoreFoundation', 'System', 'Cocoa', ]
|
2010-04-01 02:59:40 +00:00
|
|
|
|
|
|
|
padenv.SharedLibrary(env['plugin_dir']+name, files)
|