2008-09-21 19:54:29 +00:00
|
|
|
# -*- python -*-
|
2008-11-19 10:22:29 +00:00
|
|
|
|
2008-09-13 10:28:23 +00:00
|
|
|
Import('env')
|
|
|
|
import sys
|
|
|
|
|
2008-11-13 08:12:48 +00:00
|
|
|
name = "Plugin_Wiimote"
|
2008-09-13 10:28:23 +00:00
|
|
|
|
|
|
|
files = [
|
2008-11-19 10:22:29 +00:00
|
|
|
"Config.cpp",
|
|
|
|
"ConfigDlg.cpp",
|
|
|
|
"Console.cpp",
|
|
|
|
"DataReports.cpp",
|
|
|
|
"EmuDefinitions.cpp",
|
|
|
|
"EmuMain.cpp",
|
2008-11-19 10:32:11 +00:00
|
|
|
"EmuSubroutines.cpp",
|
2008-11-19 10:22:29 +00:00
|
|
|
"Encryption.cpp",
|
|
|
|
"FillReport.cpp",
|
|
|
|
"main.cpp",
|
|
|
|
"wiimote_real.cpp",
|
2008-09-13 10:28:23 +00:00
|
|
|
]
|
|
|
|
|
2008-11-19 10:22:29 +00:00
|
|
|
wiimoteenv = env.Clone()
|
2008-10-27 20:29:32 +00:00
|
|
|
|
2008-11-19 10:22:29 +00:00
|
|
|
if wiimoteenv['osx64']:
|
|
|
|
wiimoteenv.Append(
|
2008-10-27 20:29:32 +00:00
|
|
|
CXXFLAGS = [ '-arch', 'x86_64' ],
|
|
|
|
LINKFLAGS = [ '-arch', 'x86_64' ],
|
|
|
|
LIBS = [ 'common' ],
|
|
|
|
)
|
|
|
|
else:
|
2008-11-19 10:22:29 +00:00
|
|
|
wiimoteenv.Append(
|
2008-10-27 20:29:32 +00:00
|
|
|
CXXFLAGS = [ '-fPIC' ],
|
2008-11-19 10:32:11 +00:00
|
|
|
LIBS = [ 'common', 'wiiuse' ],
|
2008-10-27 20:29:32 +00:00
|
|
|
)
|
|
|
|
|
2008-11-19 10:22:29 +00:00
|
|
|
wiimoteenv.SharedLibrary(env['plugin_dir']+name, files)
|