summaryrefslogtreecommitdiff
path: root/modules/VC7ProjectCreator.pm
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2009-08-06 15:11:29 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2009-08-06 15:11:29 +0000
commitae852ecc235e2786969e3acdc1635a374ae30ce3 (patch)
tree284ddc6084eb28c12023029a1085c0f1aee0cf0c /modules/VC7ProjectCreator.pm
parenta848b3ffe64557afc4ec3c864a982cb3e290870a (diff)
downloadMPC-ae852ecc235e2786969e3acdc1635a374ae30ce3.tar.gz
ChangeLogTag: Thu Aug 6 15:11:07 UTC 2009 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/VC7ProjectCreator.pm')
-rw-r--r--modules/VC7ProjectCreator.pm63
1 files changed, 34 insertions, 29 deletions
diff --git a/modules/VC7ProjectCreator.pm b/modules/VC7ProjectCreator.pm
index 52ee8ffa..8182c23f 100644
--- a/modules/VC7ProjectCreator.pm
+++ b/modules/VC7ProjectCreator.pm
@@ -24,34 +24,34 @@ use vars qw(@ISA);
# Data Section
# ************************************************************
-my %info = ('cplusplus' => {'ext' => '.vcproj',
- 'dllexe' => 'vc7exe',
- 'libexe' => 'vc7libexe',
- 'dll' => 'vc7dll',
- 'lib' => 'vc7lib',
- 'template' => 'vc7',
- },
- 'csharp' => {'ext' => '.csproj',
- 'dllexe' => 'vc7csharp',
- 'libexe' => 'vc7csharp',
- 'dll' => 'vc7csharp',
- 'lib' => 'vc7csharp',
- 'template' => 'vc7csharp',
- },
- 'java' => {'ext' => '.vjsproj',
- 'dllexe' => 'vc7java',
- 'libexe' => 'vc7java',
- 'dll' => 'vc7java',
- 'lib' => 'vc7java',
- 'template' => 'vc7java',
- },
- 'vb' => {'ext' => '.vbproj',
- 'dllexe' => 'vc7vb',
- 'libexe' => 'vc7vb',
- 'dll' => 'vc7vb',
- 'lib' => 'vc7vb',
- 'template' => 'vc7vb',
- },
+my %info = (Creator::cplusplus => {'ext' => '.vcproj',
+ 'dllexe' => 'vc7exe',
+ 'libexe' => 'vc7libexe',
+ 'dll' => 'vc7dll',
+ 'lib' => 'vc7lib',
+ 'template' => 'vc7',
+ },
+ Creator::csharp => {'ext' => '.csproj',
+ 'dllexe' => 'vc7csharp',
+ 'libexe' => 'vc7csharp',
+ 'dll' => 'vc7csharp',
+ 'lib' => 'vc7csharp',
+ 'template' => 'vc7csharp',
+ },
+ Creator::java => {'ext' => '.vjsproj',
+ 'dllexe' => 'vc7java',
+ 'libexe' => 'vc7java',
+ 'dll' => 'vc7java',
+ 'lib' => 'vc7java',
+ 'template' => 'vc7java',
+ },
+ Creator::vb => {'ext' => '.vbproj',
+ 'dllexe' => 'vc7vb',
+ 'libexe' => 'vc7vb',
+ 'dll' => 'vc7vb',
+ 'lib' => 'vc7vb',
+ 'template' => 'vc7vb',
+ },
);
my %config = ('vcversion' => '7.00',
@@ -62,6 +62,11 @@ my %config = ('vcversion' => '7.00',
# Subroutine Section
# ************************************************************
+sub languageSupported {
+ return defined $info{$_[0]->get_language()};
+}
+
+
sub get_info_hash {
#my($self, $key) = @_;
return $info{$_[1]};
@@ -89,7 +94,7 @@ sub fill_value {
## Since Visual Studio 2003 doesn't support Web Applications, this
## will never happen. However, this code is shared by the vc8
## project type, so it can happen then.
- return 'website' if ($self->get_assignment('webapp'));
+ return Creator::website if ($self->get_assignment('webapp'));
## Also for the vc8 project type, the language is stored in the
## project file as a comment when external C# references need to be