summaryrefslogtreecommitdiff
path: root/modules/VC6ProjectCreator.pm
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2003-06-17 11:39:32 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2003-06-17 11:39:32 +0000
commit4258db3cc778bfb8dc615b5ff4527dd40c20ce93 (patch)
treeeca83a208fbc6a8408ff1db23d494c028e2722f4 /modules/VC6ProjectCreator.pm
parentebcec164c1c074a4db8c6087d0358c06eb678ad9 (diff)
downloadMPC-4258db3cc778bfb8dc615b5ff4527dd40c20ce93.tar.gz
ChangeLogTag: Tue Jun 17 06:36:39 2003 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/VC6ProjectCreator.pm')
-rw-r--r--modules/VC6ProjectCreator.pm65
1 files changed, 3 insertions, 62 deletions
diff --git a/modules/VC6ProjectCreator.pm b/modules/VC6ProjectCreator.pm
index f2d4fccd..b1dca496 100644
--- a/modules/VC6ProjectCreator.pm
+++ b/modules/VC6ProjectCreator.pm
@@ -21,35 +21,16 @@ use vars qw(@ISA);
# Data Section
# ************************************************************
-my($dynamiclib) = 'DLL';
-my($staticlib) = 'LIB';
-my($dynamicexe) = 'EXE';
-my($staticexe) = 'Static EXE';
-my($sname) = '_Static';
+my($sname) = '_Static';
# ************************************************************
# Subroutine Section
# ************************************************************
-sub remove_type_append {
- my($self) = shift;
- my($str) = shift;
-
- foreach my $type ($staticexe, $dynamicexe, $staticlib, $dynamiclib) {
- if ($str =~ /(.*)\s+$type$/) {
- $str = $1;
- last;
- }
- }
-
- return $str;
-}
-
-
sub base_project_name {
my($self) = shift;
return $self->transform_file_name(
- $self->remove_type_append($self->project_name()) .
+ $self->project_name() .
($self->get_writing_type() == 1 ? $sname : ''));
}
@@ -60,31 +41,6 @@ sub get_static_append {
}
-sub get_type_append {
- my($self) = shift;
- my($type) = '';
- if ($self->lib_target()) {
- ## Set the type_append preserving whitespace
- if ($self->get_writing_type() == 1) {
- $type = " $staticlib";
- }
- else {
- $type = " $dynamiclib";
- }
- }
- else {
- ## Set the type_append preserving whitespace
- if ($self->get_writing_type() == 1) {
- $type = " $staticexe";
- }
- else {
- $type = " $dynamicexe";
- }
- }
- return $type;
-}
-
-
sub translate_value {
my($self) = shift;
my($key) = shift;
@@ -92,29 +48,14 @@ sub translate_value {
if ($key eq 'depends' && $val ne '') {
my($arr) = $self->create_array($val);
- my($app) = $dynamiclib;
$val = '';
## Only write dependencies for non-static projects
## and static exe projects
my($wt) = $self->get_writing_type();
if ($wt == 0 || $self->exe_target()) {
- if ($wt == 1) {
- $app = $staticlib;
- }
foreach my $entry (@$arr) {
- my($dep) = $app;
- ## Hack for executable dependencies
- if ($entry =~ /exe/i) {
- if ($wt == 1) {
- $dep = $staticexe;
- }
- else {
- $dep = $dynamicexe;
- }
- }
-
- $val .= "\"$entry $dep\" ";
+ $val .= "\"$entry\" ";
}
$val =~ s/\s+$//;
}