46 lines
826 B
Python
46 lines
826 B
Python
# -*- python -*-
|
|
|
|
Import('env')
|
|
import sys
|
|
|
|
wmenv = env.Clone()
|
|
name = "Plugin_Wiimote"
|
|
|
|
files = [
|
|
"Config.cpp",
|
|
"DataReports.cpp",
|
|
"EmuDefinitions.cpp",
|
|
"EmuDynamics.cpp",
|
|
"EmuMain.cpp",
|
|
"EmuPad.cpp",
|
|
"EmuSubroutines.cpp",
|
|
"Encryption.cpp",
|
|
"main.cpp",
|
|
"Rumble.cpp",
|
|
"UDPWiimote.cpp"
|
|
]
|
|
|
|
if wmenv['HAVE_WX']:
|
|
files += [
|
|
"ConfigBasicDlg.cpp",
|
|
"ConfigPadDlg.cpp",
|
|
"ConfigGamepad.cpp",
|
|
"FillReport.cpp",
|
|
]
|
|
|
|
libs = [ 'inputuicommon', 'inputcommon', 'common', 'SDL' ]
|
|
|
|
cxxflags = [ ]
|
|
|
|
if wmenv['HAVE_WIIUSE']:
|
|
libs += [ 'wiiuse' ]
|
|
files += [ "wiimote_real.cpp" ]
|
|
cxxflags += ['-DHAVE_WIIUSE']
|
|
|
|
wmenv.Append(
|
|
CXXFLAGS = cxxflags,
|
|
LIBS = libs,
|
|
)
|
|
|
|
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|