2008-09-13 10:28:23 +00:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2008-09-13 13:44:06 +00:00
|
|
|
output = "../../../../Binary/mac/Plugins/Plugin_Wiimote.so"
|
2008-09-13 10:28:23 +00:00
|
|
|
else:
|
2008-09-13 13:44:06 +00:00
|
|
|
output = "../../../../Binary/linux/Plugins/Plugin_Wiimote.so"
|
2008-09-13 10:28:23 +00:00
|
|
|
|
|
|
|
files = [
|
2008-09-13 17:11:15 +00:00
|
|
|
"Wiimote_Test.cpp",
|
2008-09-13 10:28:23 +00:00
|
|
|
]
|
|
|
|
|
2008-09-16 16:50:09 +00:00
|
|
|
padenv = env.Clone()
|
2008-09-13 10:28:23 +00:00
|
|
|
padenv.Append(
|
|
|
|
CXXFLAGS = ' ' + ' '.join([
|
2008-09-20 17:31:54 +00:00
|
|
|
'-fPIC', env['WXCPPFLAGS'], '`pkg-config --cflags sdl`'
|
2008-09-13 10:28:23 +00:00
|
|
|
]),
|
|
|
|
LINKFLAGS = ' ' + ' '.join([
|
2008-09-20 17:31:54 +00:00
|
|
|
env['WXLIBFLAGS'], '`pkg-config --libs sdl`'
|
2008-09-13 10:28:23 +00:00
|
|
|
])
|
|
|
|
)
|
|
|
|
padenv.SharedLibrary(output, files, LIBS = [ "common" ])
|
|
|
|
|