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
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2008-09-23 00:26:21 +00:00
|
|
|
output = '../../../../Binary/mac/Plugins/Plugin_nJoy_SDL.so'
|
2008-07-31 08:38:13 +00:00
|
|
|
else:
|
2008-09-23 00:26:21 +00:00
|
|
|
output = '../../../../Binary/linux/Plugins/Plugin_nJoy_SDL.so'
|
2008-07-31 08:38:13 +00:00
|
|
|
|
2008-08-26 22:28:42 +00:00
|
|
|
files = [
|
2008-09-23 00:26:21 +00:00
|
|
|
'nJoy.cpp',
|
|
|
|
'GUI/AboutBox.cpp',
|
|
|
|
'GUI/ConfigBox.cpp',
|
2008-08-26 22:28:42 +00:00
|
|
|
]
|
|
|
|
|
2008-09-16 16:50:09 +00:00
|
|
|
padenv = env.Clone()
|
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-09-22 23:36:16 +00:00
|
|
|
padenv.SharedLibrary(output, files)
|