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
|
|
|
]
|
|
|
|
|
|
|
|
padenv = env.Copy()
|
|
|
|
padenv.Append(
|
|
|
|
CXXFLAGS = ' ' + ' '.join([
|
|
|
|
'-fPIC', '`wx-config --cppflags`', '`pkg-config --cflags sdl`'
|
|
|
|
]),
|
|
|
|
LINKFLAGS = ' ' + ' '.join([
|
|
|
|
'`wx-config --libs`', '`pkg-config --libs sdl`'
|
|
|
|
])
|
|
|
|
)
|
|
|
|
padenv.SharedLibrary(output, files, LIBS = [ "common" ])
|
|
|
|
|