# -*- python -*-

Import('env')
import sys

name = "Plugin_DSP_HLE"

files = [
	'DSPHandler.cpp',
	'MailHandler.cpp',
        'HLEMixer.cpp',
	'main.cpp',
	'Config.cpp',
	'Globals.cpp',
	'Debugger/File.cpp',
	'UCodes/UCode_AX.cpp',
	'UCodes/UCode_AXWii.cpp',
	'UCodes/UCode_CARD.cpp',
	'UCodes/UCode_InitAudioSystem.cpp',
	'UCodes/UCode_Jac.cpp',
	'UCodes/UCode_ROM.cpp',
	'UCodes/UCodes.cpp',
	'UCodes/UCode_Zelda.cpp',
	]

dspenv = env.Clone()

if dspenv['HAVE_WX']:
    files += [
        'ConfigDlg.cpp',
        'Debugger/Debugger.cpp',
        'Debugger/PBView.cpp',
        'Debugger/Mails.cpp',
        'Debugger/Blocks.cpp',
        'Debugger/Logging.cpp',

        ]

dspenv.Append(
	CXXFLAGS = [ '-fPIC' ],
	LIBS = [ 'common', 'audiocommon' ],
	)

dspenv.SharedLibrary(env['plugin_dir']+name, files)
