diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2004-10-06 16:38:33 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2004-10-06 16:38:33 +0000 |
commit | 4212fb41d84382d0f728c147d65b93a7e8308a3a (patch) | |
tree | 0a30ff7c3d17d025a15b4517ef1761c189beedd3 /modules/GHSProjectCreator.pm | |
parent | d3cdc033f9c520f014c37e08d31ddf17bac2cd57 (diff) | |
download | MPC-4212fb41d84382d0f728c147d65b93a7e8308a3a.tar.gz |
ChangeLogTag: Wed Oct 6 11:35:48 2004 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/GHSProjectCreator.pm')
-rw-r--r-- | modules/GHSProjectCreator.pm | 72 |
1 files changed, 65 insertions, 7 deletions
diff --git a/modules/GHSProjectCreator.pm b/modules/GHSProjectCreator.pm index 45eaf1bb..38cfa1b1 100644 --- a/modules/GHSProjectCreator.pm +++ b/modules/GHSProjectCreator.pm @@ -21,11 +21,23 @@ use vars qw(@ISA); # Subroutine Section # ************************************************************ -sub file_sorter { - my($self) = shift; - my($left) = shift; - my($right) = shift; - return lc($left) cmp lc($right); +sub compare_output { + #my($self) = shift; + return 1; +} + + +sub convert_slashes { + #my($self) = shift; + + ## This is not a very reliable way to determine + ## whether this project will be used on Windows or UNIX. + if (defined $ENV{COMSPEC}) { + return 1; + } + else { + return 0; + } } @@ -37,13 +49,59 @@ sub project_file_name { $name = $self->project_name(); } - return $self->get_modified_project_file_name("ghs/$name", '.bld'); + return $self->get_modified_project_file_name("$name", '.bld'); } +sub fill_value { + my($self) = shift; + my($name) = shift; + my($value) = undef; + + if ($name =~ /^reltop_(\w+)/) { + $value = $self->relative($self->get_assignment($1)); + if (defined $value && + ($value =~ /^\.\.?$/ || $value =~ /^\.\.?\//)) { + my($top) = $self->getstartdir(); + my($part) = $self->getcwd(); + $part =~ s/^$top[\/]?//; + if ($part ne '') { + if ($value eq '.') { + $value = $part; + } + else { + $value = $part . '/' . $value; + } + } + } + } + elsif ($name eq 'reltop') { + my($top) = $self->getstartdir(); + $value = $self->getcwd(); + $value =~ s/^$top[\/]?//; + if ($value eq '') { + $value = '.'; + } + } + + return $value; +} + sub get_dll_exe_template_input_file { #my($self) = shift; - return 'ghsexe'; + return 'ghsdllexe'; +} + + +sub get_lib_exe_template_input_file { + #my($self) = shift; + return 'ghslibexe'; +} + + +sub get_lib_template_input_file { + #my($self) = shift; + return 'ghslib'; } |