# WINC.PM
#
# Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
#


# Makmake-module for creating MAKMAKE WINC command-line makefiles

package Winc;

require Exporter;
@ISA=qw(Exporter);
@EXPORT=qw(
	PMGetExtraMmpMacros
	PMGetPlatProcType
	PMGetDefFilePath
	PMGetBldList
	PMGetDefBaseExts
	PMGetPlatMacroList
	PMGetBldMacroList
);


my $COMMAND_LINE_PLATFORM;

{	# Switch to makmake.pl context in this block to load extra modules
	package main;
	use Cl_win;
}

sub PMGetExtraMmpMacros {
	('WINS');
}

sub PMGetPlatProcType {
	'SINGLE';
}

sub PMGetDefFilePath {
	"\\".&main::Prj."\\BWINC\\";
}

sub PMGetBldList {
	('DEB','REL','UDEB','UREL');
}

sub PMGetDefBaseExts {
	('UDEB','U','UREL','U');
}

sub PMGetPlatMacroList {
	('__VC32__','__WINS__','__WINC__','__XCON__');
}

sub PMGetBldMacroList {

	$_=&main::Bld;

	{
		if (/^REL$/o) {
			return('NDEBUG');
		}
		if (/^DEB$/o) {
			return('_DEBUG');
		}
		if (/^UREL$/o) {
			return('NDEBUG','_UNICODE');
		}
		if (/^UDEB$/o) {
			return('_DEBUG','_UNICODE');
		}
	}
}

1;
