Target Deployment Technology
Original Location: cmd folder
Template: either
This file contained 2 functions.
Copy the atl_cc function into the Build Settings->Compilation function section of the TDP Editor.
Copy the atl_cpp function into the Build Settings->Preprocessing function section of the TDP Editor.
The function prototypes have changed. Old prototypes were:
sub atl_cc {
my ($SourceFile, $OutputFile, $Includes, $AdditionalOptions)=@_;
}
and
sub atl_cpp {
my ($SourceFile, $OutputFile, $Includes, $AdditionalOptions)=@_;
}
These are replaced by:
sub atl_cc ($$$$\@\@) {
my ( $lang,$src,$out,$cflags,$Defines,$Includes) = @_;
}
and
sub atl_cpp ($$$$\@\@) {
my ( $lang, $src,$out,$cppflags,$Defines,$Includes ) = @_;
}
where
$Defines and $Includes are Perl references to arrays.
$lang contains C, CPP, ADA or ADA83, based on the source file extension.
$src and $out are the source file and the output file to generate.
These functions must now compile both C or C++ source code. In fact, the same TDP should support both C and C++. To accomplish this dual functionality, simply make the appropriate edits for C++ in the Parser Settings section of the TDP Editor.