1 package WB30ProjectCreator
;
3 # ************************************************************
4 # Description : Wind River Workbench 3.0 generator
5 # Author : Adam Mitz (Object Computing, Inc.)
6 # Create Date : 07/21/2010
7 # ************************************************************
9 # ************************************************************
11 # ************************************************************
15 use WB26ProjectCreator
;
19 @ISA = qw(XMLProjectBase WB26ProjectCreator);
21 # ************************************************************
23 # ************************************************************
25 my %templates = ('wb26' => '.project',
26 'wb26wrproject' => '.wrproject',
27 'wb26wrmakefile' => '.wrmakefile',
28 'wb30cproject' => '.cproject');
30 my @tkeys = sort keys %templates;
32 # ************************************************************
34 # ************************************************************
36 sub project_file_name
{
37 my($self, $name, $template) = @_;
39 ## Fill in the name and template if they weren't provided
40 $name = $self->project_name() if (!defined $name);
41 $template = 'wb26' if (!defined $template || !defined $templates{$template});
43 if ($self->{'make_coexistence'}) {
44 return $self->get_modified_project_file_name("wb_$name",
45 '/' . $templates{$template});
48 return $templates{$template};
52 sub post_file_creation
{
53 my($self, $file) = @_;
54 if ($file =~ /$templates{'wb26wrmakefile'}$/) {
56 if (open(IN
, $file)) {
68 return "Can't open $file for post-processing input.";
70 if (open(OUT
, ">$file")) {
75 return "Can't open $file for post-processing output.";
86 sub get_dll_exe_template_input_file
{
91 sub get_dll_template_input_file
{