2008-07-12 17:40:22 +00:00
|
|
|
Import('env')
|
2008-07-31 08:38:13 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
output = "../../../../Binary/mac/Plugins/padsimple.so"
|
|
|
|
else:
|
|
|
|
output = "../../../../Binary/linux/Plugins/padsimple.so"
|
|
|
|
|
2008-08-26 22:28:42 +00:00
|
|
|
files = [
|
|
|
|
"main.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
padenv = env.Copy()
|
|
|
|
padenv.Append(
|
|
|
|
CXXFLAGS = ' ' + ' '.join([ '-fPIC', '`pkg-config --cflags sdl`' ]),
|
|
|
|
LINKFLAGS = ' ' + ' '.join([ '`pkg-config --libs sdl`' ])
|
|
|
|
)
|
2008-07-22 11:16:45 +00:00
|
|
|
padenv.SharedLibrary(output, files, LIBS=["common"])
|