2008-09-21 22:54:29 +03:00
|
|
|
# -*- python -*-
|
|
|
|
|
2008-07-23 21:53:54 +03:00
|
|
|
Import('env')
|
2008-07-31 11:38:13 +03:00
|
|
|
import sys
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2008-09-23 03:26:21 +03:00
|
|
|
output = '../../../../Binary/mac/Plugins/Plugin_nJoy_SDL.so'
|
2008-07-31 11:38:13 +03:00
|
|
|
else:
|
2008-09-23 03:26:21 +03:00
|
|
|
output = '../../../../Binary/linux/Plugins/Plugin_nJoy_SDL.so'
|
2008-07-31 11:38:13 +03:00
|
|
|
|
2008-08-27 01:28:42 +03:00
|
|
|
files = [
|
2008-09-23 03:26:21 +03:00
|
|
|
'nJoy.cpp',
|
2008-10-04 20:26:12 +03:00
|
|
|
'GUI/AboutBox.cpp',
|
|
|
|
'GUI/ConfigBox.cpp',
|
2008-08-27 01:28:42 +03:00
|
|
|
]
|
|
|
|
|
2008-09-16 19:50:09 +03:00
|
|
|
padenv = env.Clone()
|
2008-08-27 01:28:42 +03:00
|
|
|
padenv.Append(
|
2008-09-23 02:36:16 +03:00
|
|
|
CXXFLAGS = [ '-fPIC' ],
|
|
|
|
LIBS = [ 'common' ],
|
2008-08-27 01:28:42 +03:00
|
|
|
)
|
2008-10-20 20:32:15 +03:00
|
|
|
if not env['osx64']:
|
|
|
|
padenv.SharedLibrary(output, files)
|