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