2009-01-15 06:48:15 +00:00
|
|
|
# -*- python -*-
|
2008-12-02 01:08:21 +00:00
|
|
|
|
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
name = "Plugin_nJoy_Testing"
|
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
if not env['HAVE_SDL']:
|
|
|
|
print name + " must have SDL to be build"
|
|
|
|
Return()
|
|
|
|
|
2008-12-02 01:08:21 +00:00
|
|
|
files = [
|
|
|
|
'nJoy.cpp',
|
|
|
|
]
|
2009-01-15 06:48:15 +00:00
|
|
|
|
2009-01-05 23:30:44 +00:00
|
|
|
if env['HAVE_WX']:
|
|
|
|
files +=[ 'GUI/AboutBox.cpp',
|
|
|
|
'GUI/ConfigBox.cpp',
|
|
|
|
]
|
2008-12-02 01:08:21 +00:00
|
|
|
|
|
|
|
padenv = env.Clone()
|
|
|
|
padenv.Append(
|
|
|
|
CXXFLAGS = [ '-fPIC' ],
|
|
|
|
LIBS = [ 'common' ],
|
|
|
|
)
|
2008-12-10 18:33:13 +00:00
|
|
|
|
|
|
|
padenv.SharedLibrary(env['plugin_dir']+name, files)
|