diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2004-08-30 11:47:34 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2004-08-30 11:47:34 +0000 |
commit | ca49d43d35092257e104f5b81cde011f2aff7ddf (patch) | |
tree | c4030dfcf7538e1c9710e4530595adb64a37194a | |
parent | de6385ace5150eb58d708ed4b3bf09f1db576969 (diff) | |
download | MPC-ca49d43d35092257e104f5b81cde011f2aff7ddf.tar.gz |
ChangeLogTag: Mon Aug 30 06:45:25 2004 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | modules/ProjectCreator.pm | 11 |
2 files changed, 19 insertions, 1 deletions
@@ -1,3 +1,12 @@ +Mon Aug 30 06:45:25 2004 Chad Elliott <elliott_c@ociweb.com> + + * modules/ProjectCreator.pm: + + Fixed another problem with the -apply_project option. When + determining the library name, it is possible to use the project + name. In that case, we need to keep a copy of the non-modified + project name so we can determine the correct library name. + Fri Aug 27 09:03:12 2004 Chad Elliott <elliott_c@ociweb.com> * templates/vc7.mpd: diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm index 9b011813..ed20cff3 100644 --- a/modules/ProjectCreator.pm +++ b/modules/ProjectCreator.pm @@ -1689,7 +1689,7 @@ sub generate_default_target_names { ## If we still don't have a project type, then we will ## default to a library if there are source files if (!$self->exe_target() && $#sources >= 0) { - my($base) = $self->get_assignment('project_name'); + my($base) = $self->{'unmodified_project_name'}; $self->process_assignment('sharedname', $base); $self->process_assignment('staticname', $base); } @@ -2414,6 +2414,13 @@ sub set_project_name { my($self) = shift; my($name) = shift; + ## Save the unmodified project name so that when we + ## need to determine the default target name, we can use + ## what is expected by the user. + $self->{'unmodified_project_name'} = $name; + + ## If we are applying the name modifier to the project + ## then we will modify the project name if ($self->get_apply_project()) { my($nmod) = $self->get_name_modifier(); @@ -2423,6 +2430,8 @@ sub set_project_name { } } + ## Set the project_name assignment so that the TemplateParser + ## can get the project name. $self->process_assignment('project_name', $name); } |