Only generate common defines when we have those
[MPC.git] / modules / VC11ProjectCreator.pm
blob106fc64707f416a558998b5163705174b579262f
1 package VC11ProjectCreator;
3 # ************************************************************
4 # Description : A VC11 Project Creator
5 # Author : Johnny Willemsen
6 # Create Date : 12/12/2011
7 # ************************************************************
9 # ************************************************************
10 # Pragmas
11 # ************************************************************
13 use strict;
15 use VC10ProjectCreator;
17 use vars qw(@ISA);
18 @ISA = qw(VC10ProjectCreator);
20 ## NOTE: We call the constant as a function to support Perl 5.6.
21 my %info = (Creator::cplusplus() => {'ext' => '.vcxproj',
22 'dllexe' => 'vc11exe',
23 'libexe' => 'vc11libexe',
24 'dll' => 'vc11dll',
25 'lib' => 'vc11lib',
26 'template' => [ 'vc10', 'vc10filters' ],
30 # ************************************************************
31 # Subroutine Section
32 # ************************************************************
34 sub get_info_hash {
35 my($self, $key) = @_;
37 ## If we have the setting in our information map, the use it.
38 return $info{$key} if (defined $info{$key});
40 ## Otherwise, see if our parent type can take care of it.
41 return $self->SUPER::get_info_hash($key);