2008-09-21 22:54:29 +03:00
|
|
|
# -*- python -*-
|
|
|
|
|
2008-09-13 13:28:23 +03:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2008-09-13 16:44:06 +03:00
|
|
|
output = "../../../../Binary/mac/Plugins/Plugin_Wiimote.so"
|
2008-09-13 13:28:23 +03:00
|
|
|
else:
|
2008-09-13 16:44:06 +03:00
|
|
|
output = "../../../../Binary/linux/Plugins/Plugin_Wiimote.so"
|
2008-09-13 13:28:23 +03:00
|
|
|
|
|
|
|
files = [
|
2008-10-09 11:51:57 +03:00
|
|
|
"Wiimote.cpp",
|
2008-09-13 13:28:23 +03:00
|
|
|
]
|
|
|
|
|
2008-09-16 19:50:09 +03:00
|
|
|
padenv = env.Clone()
|
2008-09-13 13:28:23 +03:00
|
|
|
padenv.Append(
|
2008-09-23 02:36:16 +03:00
|
|
|
CXXFLAGS = [ '-fPIC' ],
|
2008-09-24 09:31:03 +03:00
|
|
|
LIBS = [ 'common' ],
|
2008-09-13 13:28:23 +03:00
|
|
|
)
|
2008-10-20 20:32:15 +03:00
|
|
|
if not env['osx64']:
|
|
|
|
padenv.SharedLibrary(output, files)
|