1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
package WB26ProjectCreator;
# ************************************************************
# Description : Workbench 2.6 / VxWorks 6.4 generator
# Author : Johnny Willemsen
# Create Date : 07/01/2008
# ************************************************************
# ************************************************************
# Pragmas
# ************************************************************
use strict;
use ProjectCreator;
use vars qw(@ISA);
@ISA = qw(ProjectCreator);
# ************************************************************
# Data Section
# ************************************************************
my %templates = ('wb26' => '.project',
'wb26wrproject' => '.wrproject',
'wb26wrmakefile' => '.wrmakefile');
my @tkeys = sort keys %templates;
# ************************************************************
# Subroutine Section
# ************************************************************
sub crlf {
#my $self = shift;
return "\n";
}
sub project_file_name {
my($self, $name, $template) = @_;
## Fill in the name and template if they weren't provided
$name = $self->project_name() if (!defined $name);
$template = 'wb26' if (!defined $template || !defined $templates{$template});
if ($self->{'make_coexistence'}) {
return $self->get_modified_project_file_name($name,
'/' . $templates{$template});
}
else {
return $templates{$template};
}
}
sub get_template {
#my $self = shift;
return @tkeys;
}
sub dependency_is_filename {
#my $self = shift;
return 0;
}
sub requires_forward_slashes {
return 1;
}
sub file_visible {
## We only want the project file visible to the workspace creator.
## There can only be one and this is it.
#my($self, $template) = @_;
return $_[1] eq 'wb26';
}
sub get_dll_exe_template_input_file {
#my $self = shift;
return 'wb26exe';
}
sub get_dll_template_input_file {
#my $self = shift;
return 'wb26dll';
}
1;
|