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/MakeProjectCreator.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/MakeProjectCreator.pm')
-rw-r--r-- | modules/MakeProjectCreator.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/MakeProjectCreator.pm b/modules/MakeProjectCreator.pm index 0520b095..6aa4a172 100644 --- a/modules/MakeProjectCreator.pm +++ b/modules/MakeProjectCreator.pm @@ -61,14 +61,17 @@ sub get_dll_template_input_file { sub get_template { - my($self) = shift; - return $info{$self->get_language()}->{'template'}; + return $info{$_[0]->get_language()}->{'template'}; } sub fill_value { my($self, $name) = @_; if ($name eq 'compilers') { + ## The default compilers template variable value is determined by the + ## language and directly corresponds to a group of settings in the + ## .mpt file (make.net.mpt for csharp and makedll.mpt for all + ## others). my $language = $self->get_language(); if ($language eq 'java') { return 'java'; @@ -81,9 +84,12 @@ sub fill_value { } } elsif ($name eq 'language') { + ## Allow the language to be available to the template. Certain + ## things are not used in make.mpd when the language is java. return $self->get_language(); } elsif ($name eq 'main') { + ## The main is needed when generating the makefiles for use with gcj. my @sources = $self->get_component_list('source_files', 1); my $exename = $self->find_main_file(\@sources); return $exename if (defined $exename); |