diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2008-07-18 16:05:54 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2008-07-18 16:05:54 +0000 |
commit | 6fd3ad3f828f394c6f668cc6b43981a22e1f6317 (patch) | |
tree | 61c90e72b7bf915d9d80c8e5e1837abbbaaadb0d /modules/VC8ProjectCreator.pm | |
parent | 97fa1ff1e6cf30fa55cb9c32081ea3ef9055fbd2 (diff) | |
download | MPC-6fd3ad3f828f394c6f668cc6b43981a22e1f6317.tar.gz |
ChangeLogTag: Fri Jul 18 16:03:52 UTC 2008 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/VC8ProjectCreator.pm')
-rw-r--r-- | modules/VC8ProjectCreator.pm | 91 |
1 files changed, 45 insertions, 46 deletions
diff --git a/modules/VC8ProjectCreator.pm b/modules/VC8ProjectCreator.pm index 82f0bc83..abaf6a78 100644 --- a/modules/VC8ProjectCreator.pm +++ b/modules/VC8ProjectCreator.pm @@ -17,45 +17,48 @@ use VC7ProjectCreator; use vars qw(@ISA); @ISA = qw(VC7ProjectCreator); -my(%info) = ('cplusplus' => {'ext' => '.vcproj', - 'dllexe' => 'vc8exe', - 'libexe' => 'vc8libexe', - 'dll' => 'vc8dll', - 'lib' => 'vc8lib', - 'template' => 'vc8', - }, - 'csharp' => {'ext' => '.csproj', - 'dllexe' => 'vc8csharp', - 'libexe' => 'vc8csharp', - 'dll' => 'vc8csharp', - 'lib' => 'vc8csharp', - 'template' => 'vc8csharp', - }, - 'java' => {'ext' => '.vjsproj', - 'dllexe' => 'vc8java', - 'libexe' => 'vc8java', - 'dll' => 'vc8java', - 'lib' => 'vc8java', - 'template' => 'vc8java', - }, - 'vb' => {'ext' => '.vbproj', - 'dllexe' => 'vc8vb', - 'libexe' => 'vc8vb', - 'dll' => 'vc8vb', - 'lib' => 'vc8vb', - 'template' => 'vc8vb', - }, - ); - -my(%config) = ('vcversion' => '8.00', - ); +# ************************************************************ +# Data Section +# ************************************************************ + +my %info = ('cplusplus' => {'ext' => '.vcproj', + 'dllexe' => 'vc8exe', + 'libexe' => 'vc8libexe', + 'dll' => 'vc8dll', + 'lib' => 'vc8lib', + 'template' => 'vc8', + }, + 'csharp' => {'ext' => '.csproj', + 'dllexe' => 'vc8csharp', + 'libexe' => 'vc8csharp', + 'dll' => 'vc8csharp', + 'lib' => 'vc8csharp', + 'template' => 'vc8csharp', + }, + 'java' => {'ext' => '.vjsproj', + 'dllexe' => 'vc8java', + 'libexe' => 'vc8java', + 'dll' => 'vc8java', + 'lib' => 'vc8java', + 'template' => 'vc8java', + }, + 'vb' => {'ext' => '.vbproj', + 'dllexe' => 'vc8vb', + 'libexe' => 'vc8vb', + 'dll' => 'vc8vb', + 'lib' => 'vc8vb', + 'template' => 'vc8vb', + }, + ); + +my %config = ('vcversion' => '8.00'); # ************************************************************ # Subroutine Section # ************************************************************ sub webapp_supported { - #my($self) = shift; + #my $self = shift; return 1; } @@ -68,8 +71,7 @@ sub require_dependencies { } sub post_file_creation { - my($self) = shift; - my($file) = shift; + my($self, $file) = @_; ## VC8 stores information in a .user file that may conflict ## with information stored in the project file. If we have @@ -79,25 +81,22 @@ sub post_file_creation { } sub get_configurable { - my($self) = shift; - my($name) = shift; - return $config{$name}; + #my($self, $name) = @_; + return $config{$_[1]}; } sub get_info_hash { - my($self) = shift; - my($key) = shift; + my($self, $key) = @_; - if (defined $info{$key}) { - return $info{$key}; - } + ## If we have the setting in our information map, the use it. + return $info{$key} if (defined $info{$key}); + + ## Otherwise, see if our parent type can take care of it. return $self->SUPER::get_info_hash($key); } sub translate_value { - my($self) = shift; - my($key) = shift; - my($val) = shift; + my($self, $key, $val) = @_; if ($key eq 'platform' && $val eq 'AnyCPU') { ## Microsoft uses AnyCPU in the project file, but |