package emTreeDump;

use strict;
use warnings;

sub GetDepedencies
{
	return ('emCore');
}

sub IsEssential
{
	return 0;
}

sub GetFileHandlingRules
{
	return ();
}

sub GetExtraBuildOptions
{
	return ();
}

sub Build
{
	shift;
	my %options=@_;

	system(
		"perl", $options{'unicc'},
		$options{'debug'} eq 'yes' ? ("--debug") : (),
		"--math",
		"--rtti",
		"--exceptions",
		"--bin-dir"       , "bin",
		"--lib-dir"       , "lib",
		"--obj-dir"       , "obj",
		"--inc-search-dir", "include",
		"--link"          , "emCore",
		"--type"          , "dynlib",
		"--name"          , "emTreeDump",
		"src/emTreeDump/emTreeDumpFileModel.cpp",
		"src/emTreeDump/emTreeDumpFilePanel.cpp",
		"src/emTreeDump/emTreeDumpFpPlugin.cpp",
		"src/emTreeDump/emTreeDumpRec.cpp",
		"src/emTreeDump/emTreeDumpRecPanel.cpp",
		"src/emTreeDump/emTreeDumpUtil.cpp"
	)==0 or return 0;

	return 1;
}
