42 lines
750 B
Python
42 lines
750 B
Python
# -*- python -*-
|
|
|
|
Import('env')
|
|
import sys
|
|
|
|
wmenv = env.Clone()
|
|
name = "Plugin_Wiimote"
|
|
|
|
files = [
|
|
"Config.cpp",
|
|
"DataReports.cpp",
|
|
"EmuDefinitions.cpp",
|
|
"EmuMain.cpp",
|
|
"EmuSubroutines.cpp",
|
|
"Encryption.cpp",
|
|
"main.cpp",
|
|
]
|
|
if wmenv['HAVE_WX']:
|
|
files += [
|
|
"ConfigDlg.cpp",
|
|
"ConfigRecording.cpp",
|
|
"Logging.cpp",
|
|
"FillReport.cpp",
|
|
]
|
|
|
|
libs = [ 'common' ]
|
|
|
|
cxxflags = [ '-fPIC' ]
|
|
|
|
if wmenv['HAVE_WIIUSE']:
|
|
libs += [ 'wiiuse' ]
|
|
files += [ "wiimote_real.cpp" ]
|
|
files += [ "ReadWiimote.cpp" ]
|
|
cxxflags += ['-DHAVE_WIIUSE']
|
|
|
|
wmenv.Append(
|
|
CXXFLAGS = cxxflags,
|
|
LIBS = libs,
|
|
)
|
|
|
|
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|