# Copyright (C) 1998-2010 ERG Limited, All rights reserved
#
# Module name   : Makefile.pl
# Module type   : JATS Build File
# Environment(s): JATS Build System
#
# Description:    makefile.pl for package nsis_library
#
#.........................................................................#

die "Usage: Makefile.pl rootdir Makelib.pl\n"
    unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

#
# Build platform definitions ..
#
Platform( '*' );

############################################################################
#   Package up all the files in a form suitable for NSIS
#   These are packaged such that NSIS will automatically search for them
#   To have NSIS automatically pick them up package:
#       DLLs into      : tools/bin/win32/nsis
#       .NSH files into: tools/scripts/nsis
#
Src ('*', 'nsODBC/nsODBC.dll' );
PackageFile ('*', 'nsODBC.dll', '--Dir=tools/bin/win32/nsis' );


Src ('*', 'nsisXML/nsisXML.dll' );
PackageFile ('*', 'nsisXML.dll', '--Dir=tools/bin/win32/nsis' );

Src ('*', 'VIX/VixPageEditDialogs.nsh' );
Src ('*', 'VIX/VixMacros.nsh' );
PackageFile ('*', 'VixPageEditDialogs.nsh', '--Dir=tools/scripts/nsis' );
PackageFile ('*', 'VixMacros.nsh', '--Dir=tools/scripts/nsis' );

Src ('*', 'TextReplace/TextReplace.dll' );
Src ('*', 'TextReplace/TextReplace.nsh' );
PackageFile ('*', 'TextReplace.dll', '--Dir=tools/bin/win32/nsis' );
PackageFile ('*', 'TextReplace.nsh', '--Dir=tools/scripts/nsis' );

Src ('*', 'SimpleService/SimpleSC.dll' );
Src ('*', 'SimpleService/SimpleSC.txt' );
PackageFile ('*', 'SimpleSC.dll', '--Dir=tools/bin/win32/nsis' );
PackageFile ('*', 'SimpleSC.txt', '--Dir=tools/doc' );

#.............................................................................
#   Packaging definitions
#   Packaged in a manner that NSIS will not pick them up
#
PackageFile ( '*', '--DirTree=System' );
PackageFile ( '*', '--DirTree=SearchAndReplace' );

#.............................................................................
# Finally generate the makefile
#
MakefileGenerate();

#..  Successful termination
1;
