2008-09-21 19:54:29 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
2008-07-23 18:53:54 +00:00
|
|
|
Import('env')
|
2008-07-31 08:38:13 +00:00
|
|
|
import sys
|
|
|
|
|
2008-11-13 08:12:48 +00:00
|
|
|
name = "Plugin_nJoy_SDL"
|
2008-12-14 23:52:01 +00:00
|
|
|
padenv = env.Clone()
|
2008-07-31 08:38:13 +00:00
|
|
|
|
2008-12-05 13:46:19 +00:00
|
|
|
if not env['HAVE_SDL']:
|
|
|
|
print name + " must have SDL to be build"
|
|
|
|
Return()
|
|
|
|
|
2008-08-26 22:28:42 +00:00
|
|
|
files = [
|
2008-12-26 02:42:15 +00:00
|
|
|
'Config.cpp',
|
2008-09-23 00:26:21 +00:00
|
|
|
'nJoy.cpp',
|
2008-12-26 02:42:15 +00:00
|
|
|
'Rumble.cpp',
|
2008-08-26 22:28:42 +00:00
|
|
|
]
|
2008-12-14 23:52:01 +00:00
|
|
|
if padenv['HAVE_WX']:
|
|
|
|
files += [
|
|
|
|
'GUI/AboutBox.cpp',
|
2008-12-26 02:42:15 +00:00
|
|
|
'GUI/ConfigAdvanced.cpp',
|
2008-12-14 23:52:01 +00:00
|
|
|
'GUI/ConfigBox.cpp',
|
|
|
|
]
|
2008-08-26 22:28:42 +00:00
|
|
|
|
|
|
|
padenv.Append(
|
2008-09-22 23:36:16 +00:00
|
|
|
CXXFLAGS = [ '-fPIC' ],
|
|
|
|
LIBS = [ 'common' ],
|
2008-08-26 22:28:42 +00:00
|
|
|
)
|
2008-12-05 13:46:19 +00:00
|
|
|
|
|
|
|
padenv.SharedLibrary(env['plugin_dir']+name, files)
|