diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2003-06-17 11:39:32 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2003-06-17 11:39:32 +0000 |
commit | 4258db3cc778bfb8dc615b5ff4527dd40c20ce93 (patch) | |
tree | eca83a208fbc6a8408ff1db23d494c028e2722f4 | |
parent | ebcec164c1c074a4db8c6087d0358c06eb678ad9 (diff) | |
download | MPC-4258db3cc778bfb8dc615b5ff4527dd40c20ce93.tar.gz |
ChangeLogTag: Tue Jun 17 06:36:39 2003 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | modules/ProjectCreator.pm | 13 | ||||
-rw-r--r-- | modules/VC6ProjectCreator.pm | 65 | ||||
-rw-r--r-- | modules/WorkspaceCreator.pm | 2 |
3 files changed, 4 insertions, 76 deletions
diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm index c2c7697f..1396fc8e 100644 --- a/modules/ProjectCreator.pm +++ b/modules/ProjectCreator.pm @@ -1877,7 +1877,6 @@ sub write_project { my($status) = 1; my($error) = ''; my($name) = $self->transform_file_name($self->project_file_name()); - my($prjname) = $self->get_assignment('project_name'); my($progress) = $self->get_progress_callback(); if (defined $progress) { @@ -1888,20 +1887,14 @@ sub write_project { ## Writing the non-static file so set it to 0 if ($self->get_dynamic()) { $self->{'writing_type'} = 0; - $self->process_assignment('project_name', - $prjname . $self->get_type_append()); ($status, $error) = $self->write_output_file($name); } if ($status && $self->get_static() && $self->separate_static_project()) { - ## Set the project name back to what it originally was - $self->process_assignment('project_name', $prjname); $name = $self->transform_file_name($self->static_project_file_name()); ## Writing the static file so set it to 1 $self->{'writing_type'} = 1; - $self->process_assignment('project_name', - $prjname . $self->get_type_append()); ($status, $error) = $self->write_output_file($name); } } @@ -2081,12 +2074,6 @@ sub save_project_value { } -sub get_type_append { - #my($self) = shift; - return ''; -} - - sub translate_value { my($self) = shift; my($key) = shift; 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+$//; } diff --git a/modules/WorkspaceCreator.pm b/modules/WorkspaceCreator.pm index d47cb93b..b0f98d3d 100644 --- a/modules/WorkspaceCreator.pm +++ b/modules/WorkspaceCreator.pm @@ -800,7 +800,7 @@ sub process_cmdline { foreach my $arg (@$args) { while($arg =~ /\$(\w+)/) { my($name) = $1; - my($val) = undef; + my($val) = ''; if ($name eq 'PWD') { $val = $self->getcwd(); } |