2008-09-21 21:54:29 +02:00
|
|
|
# -*- python -*-
|
|
|
|
|
2008-09-13 12:28:23 +02:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
2008-11-11 21:59:48 +01:00
|
|
|
name = "Plugin_Wiimote.so"
|
2008-09-13 12:28:23 +02:00
|
|
|
|
|
|
|
files = [
|
2008-10-09 10:51:57 +02:00
|
|
|
"Wiimote.cpp",
|
2008-09-13 12:28:23 +02:00
|
|
|
]
|
|
|
|
|
2008-09-16 18:50:09 +02:00
|
|
|
padenv = env.Clone()
|
2008-10-27 21:29:32 +01:00
|
|
|
|
|
|
|
if padenv['osx64']:
|
|
|
|
padenv.Append(
|
|
|
|
CXXFLAGS = [ '-arch', 'x86_64' ],
|
|
|
|
LINKFLAGS = [ '-arch', 'x86_64' ],
|
|
|
|
LIBS = [ 'common' ],
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
padenv.Append(
|
|
|
|
CXXFLAGS = [ '-fPIC' ],
|
|
|
|
LIBS = [ 'common' ],
|
|
|
|
)
|
|
|
|
|
2008-11-11 21:59:48 +01:00
|
|
|
padenv.SharedLibrary('../../../../'+env['plugin_dir']+name, files)
|