diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-06 15:11:29 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-06 15:11:29 +0000 |
commit | ae852ecc235e2786969e3acdc1635a374ae30ce3 (patch) | |
tree | 284ddc6084eb28c12023029a1085c0f1aee0cf0c /modules/VC7ProjectCreator.pm | |
parent | a848b3ffe64557afc4ec3c864a982cb3e290870a (diff) | |
download | MPC-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.pm | 63 |
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 |