Files
dolphin/Source/Plugins/Plugin_PadSimple/Src/SConscript
T

43 lines
678 B
Python
Raw Normal View History

# -*- python -*-
2008-09-21 19:54:29 +00:00
2008-07-12 17:40:22 +00:00
Import('env')
2008-07-31 08:38:13 +00:00
import sys
2008-11-13 08:12:48 +00:00
name = "Plugin_PadSimple"
2008-07-31 08:38:13 +00:00
2009-01-06 17:18:06 +00:00
if not env['HAVE_X11']:
2009-01-12 20:52:45 +00:00
if not env['HAVE_COCOA']:
print name + " must have X11 to be built"
Return()
2008-12-06 22:28:32 +00:00
2009-01-12 20:52:45 +00:00
files = [
"PadSimple.cpp",
]
padenv = env.Clone()
2009-01-12 20:52:45 +00:00
if padenv['HAVE_COCOA']:
compileFlags = [
'-x',
'objective-c++',
]
2008-12-10 21:07:11 +00:00
if padenv['HAVE_WX']:
files += [
2008-12-10 21:07:11 +00:00
"GUI/ConfigDlg.cpp",
]
if env['HAVE_X11']:
files += [
2008-12-10 21:07:11 +00:00
"XInputBase.cpp",
]
if padenv['HAVE_COCOA']:
padenv.Append( CXXFLAGS = compileFlags,
LIBS = [ 'common' ])
else:
padenv.Append(LIBS = [ 'common' ])
2008-11-13 08:12:48 +00:00
padenv.SharedLibrary(env['plugin_dir']+name, files)