dolphin/Source/Plugins/Plugin_Wiimote_Test/Src/SConscript

37 lines
729 B
Python
Raw Normal View History

# -*- python -*-
Import('env')
import sys
name = "Plugin_Wiimote"
files = [
"Config.cpp",
"ConfigDlg.cpp",
"Console.cpp",
"DataReports.cpp",
"EmuDefinitions.cpp",
"EmuMain.cpp",
"EmuSubroutines.cpp",
"Encryption.cpp",
"FillReport.cpp",
"main.cpp",
"wiimote_real.cpp",
]
wiimoteenv = env.Clone()
if wiimoteenv['osx64']:
wiimoteenv.Append(
CXXFLAGS = [ '-arch', 'x86_64' ],
LINKFLAGS = [ '-arch', 'x86_64' ],
LIBS = [ 'common' ],
)
else:
wiimoteenv.Append(
CXXFLAGS = [ '-fPIC' ],
LIBS = [ 'common', 'wiiuse' ],
)
wiimoteenv.SharedLibrary(env['plugin_dir']+name, files)