<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package GNUACEProjectCreator;

# ************************************************************
# Description   : A GNU Project Creator for ACE
# Author        : Chad Elliott
# Create Date   : 3/13/2002
# $Id: GNUACEProjectCreator.pm 94635 2011-10-06 12:59:23Z johnnyw $
# ************************************************************

# ************************************************************
# Pragmas
# ************************************************************

use strict;
use File::Basename;

use MakeProjectBase;
use ProjectCreator;

use vars qw(@ISA);
@ISA = qw(MakeProjectBase ProjectCreator);

# ************************************************************
# Subroutine Section
# ************************************************************

sub expand_variables_from_template_values {
  #my($self) = shift;
  return 0;
}


sub convert_slashes {
  #my($self) = shift;
  return 0;
}


sub fill_value {
  my($self) = shift;
  my($name) = shift;

  if ($name eq 'vpath') {
    my(%vpath) = ();
    foreach my $item ($self-&gt;get_component_list('source_files')) {
      my($dname) = $self-&gt;relative($self-&gt;mpc_dirname($item));
      if ($dname ne '.') {
        $vpath{$dname} = 1;
      }
    }
    my($str) = join(':', keys %vpath);
    if ($str ne '') {
      return 'VPATH = .:' . $str . $self-&gt;crlf();
    }
  }
  elsif ($name eq 'tao') {
    my($incs) = $self-&gt;get_assignment('includes');
    my($libs) = $self-&gt;get_assignment('libpaths');
    return ((defined $incs &amp;&amp; $incs =~ /tao/i) ||
            (defined $libs &amp;&amp; $libs =~ /tao/i));
  }
  elsif ($name eq 'ciao') {
    my($incs) = $self-&gt;get_assignment('includes');
    my($libs) = $self-&gt;get_assignment('libpaths');
    return ((defined $incs &amp;&amp; $incs =~ /ciao/i) ||
            (defined $libs &amp;&amp; $libs =~ /ciao/i));
  }
  elsif ($name eq 'dance') {
    my($incs) = $self-&gt;get_assignment('includes');
    my($libs) = $self-&gt;get_assignment('libpaths');
    return ((defined $incs &amp;&amp; $incs =~ /DAnCE/i) ||
            (defined $libs &amp;&amp; $libs =~ /DAnCE/i));
  }
  elsif ($name eq 'genins') {
    my $ins = '';
    $self-&gt;get_install_info(sub { $ins .= '#' . $_[0] });
    return $ins;
  }

  return undef;
}


sub project_file_prefix {
  #my($self) = shift;
  return 'GNUmakefile.';
}


sub get_dll_exe_template_input_file {
  #my($self) = shift;
  return 'gnuexe';
}


sub get_dll_template_input_file {
  #my($self) = shift;
  return 'gnudll';
}


sub get_template {
  #my($self) = shift;
  return 'gnu';
}

1;
</pre></body></html>