summaryrefslogtreecommitdiff
path: root/modules/VC8WorkspaceCreator.pm
diff options
context:
space:
mode:
authorAdam Mitz <mitza-oci@users.noreply.github.com>2010-08-19 21:57:53 +0000
committerAdam Mitz <mitza-oci@users.noreply.github.com>2010-08-19 21:57:53 +0000
commit142910a2780c26926b52fdf2b44b5f0ab84a5589 (patch)
treefbe6eff12fae0ae41e38d7c36de83a5c7bdcdbcd /modules/VC8WorkspaceCreator.pm
parentd68428239fae088960fa87110e3b6072a8f69e38 (diff)
downloadMPC-142910a2780c26926b52fdf2b44b5f0ab84a5589.tar.gz
ChangeLogTag: Thu Aug 19 21:51:35 UTC 2010 Adam Mitz <mitza@ociweb.com>
Diffstat (limited to 'modules/VC8WorkspaceCreator.pm')
-rw-r--r--modules/VC8WorkspaceCreator.pm22
1 files changed, 15 insertions, 7 deletions
diff --git a/modules/VC8WorkspaceCreator.pm b/modules/VC8WorkspaceCreator.pm
index b8338979..c24f3942 100644
--- a/modules/VC8WorkspaceCreator.pm
+++ b/modules/VC8WorkspaceCreator.pm
@@ -116,13 +116,8 @@ sub post_workspace {
}
}
- push(@read, $spc . '<ProjectReference' . $crlf .
- $spc . "\tReferencedProjectIdentifier=" .
- "\"\{$gmap{$dep}->[0]\}\"$crlf" .
- (defined $attr{'copylocal'} ? $spc .
- "\tCopyLocal=\"" . $attr{'copylocal'} . "\"$crlf" : '') .
- $spc . "\tRelativePathToProject=\"$relative\"$crlf" .
- $spc . '/>' . $crlf);
+ push(@read, $self->cpp_proj_ref($spc, $gmap{$dep}->[0],
+ \%attr, $relative));
}
}
## This is a non-c++ language. So, it should not reference
@@ -160,6 +155,19 @@ sub post_workspace {
}
}
+sub cpp_proj_ref {
+ my ($self, $spc, $refguid, $attr, $relative) = @_;
+ my $crlf = $self->crlf();
+ return $spc . '<ProjectReference' . $crlf .
+ $spc . "\tReferencedProjectIdentifier=\"\{$refguid\}\"$crlf" .
+ (defined $$attr{'copylocal'}
+ ? $spc . "\tCopyLocal=\"" . $$attr{'copylocal'} . "\"$crlf"
+ : ''
+ ) .
+ $spc . "\tRelativePathToProject=\"$relative\"$crlf" .
+ $spc . '/>' . $crlf;
+}
+
sub adjust_names {
my($self, $name, $proj, $lang) = @_;