2008-07-23 18:53:54 +00:00
|
|
|
Import('env')
|
2008-07-31 08:38:13 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
output = "../../../../Binary/mac/Plugins/Plugin_nJoy_SDL.so"
|
|
|
|
else:
|
|
|
|
output = "../../../../Binary/linux/Plugins/Plugin_nJoy_SDL.so"
|
|
|
|
|
2008-08-26 22:28:42 +00:00
|
|
|
files = [
|
|
|
|
"nJoy.cpp",
|
|
|
|
"GUI/AboutBox.cpp",
|
|
|
|
"GUI/ConfigBox.cpp",
|
|
|
|
]
|
|
|
|
|
2008-09-16 16:50:09 +00:00
|
|
|
padenv = env.Clone()
|
2008-08-26 22:28:42 +00:00
|
|
|
padenv.Append(
|
|
|
|
CXXFLAGS = ' ' + ' '.join([
|
2008-09-20 17:31:54 +00:00
|
|
|
'-fPIC', env['WXCPPFLAGS'], '`pkg-config --cflags sdl`'
|
2008-08-26 22:28:42 +00:00
|
|
|
]),
|
|
|
|
LINKFLAGS = ' ' + ' '.join([
|
2008-09-20 17:31:54 +00:00
|
|
|
env['WXLIBFLAGS'], '`pkg-config --libs sdl`'
|
2008-08-26 22:28:42 +00:00
|
|
|
])
|
|
|
|
)
|
|
|
|
padenv.SharedLibrary(output, files, LIBS = [ "common" ])
|