2008-09-21 19:54:29 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
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-10-09 08:51:57 +00:00
|
|
|
"Wiimote.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(
|
2008-09-22 23:36:16 +00:00
|
|
|
CXXFLAGS = [ '-fPIC' ],
|
2008-09-24 06:31:03 +00:00
|
|
|
LIBS = [ 'common' ],
|
2008-09-13 10:28:23 +00:00
|
|
|
)
|
2008-10-20 17:32:15 +00:00
|
|
|
if not env['osx64']:
|
|
|
|
padenv.SharedLibrary(output, files)
|