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