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

# ************************************************************
# Description   : A VC7 Project Creator
# Author        : Chad Elliott
# Create Date   : 4/23/2002
# ************************************************************

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

use strict;

use GUID;
use ProjectCreator;

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

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

sub compare_output {
  #my($self) = shift;
  return 1;
}


sub file_sorter {
  my($self)  = shift;
  my($left)  = shift;
  my($right) = shift;
  return lc($left) cmp lc($right);
}


sub translate_value {
  my($self) = shift;
  my($key)  = shift;
  my($val)  = shift;

  if ($key eq 'after' &amp;&amp; $val ne '') {
    my($arr) = $self-&gt;create_array($val);
    $val = '';

    ## Only write dependencies for non-static projects
    ## and static exe projects
    if ($self-&gt;get_static() == 0 || $self-&gt;exe_target()) {
      foreach my $entry (@$arr) {
        $val .= '"' . $entry . '" ';
      }
      $val =~ s/\s+$//;
    }
  }
  return $val;
}


sub crlf {
  my($self) = shift;
  return $self-&gt;windows_crlf();
}


sub get_vcversion {
  #my($self) = shift;
  return '7.00';
}


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

  if ($name eq 'guid') {
    my($guid) = new GUID();
    $value = $guid-&gt;generate($self-&gt;project_file_name(),
                             $self-&gt;get_current_input(),
                             $self-&gt;getcwd());
  }
  elsif ($name eq 'vcversion') {
    $value = $self-&gt;get_vcversion();
  }
  return $value;
}


sub separate_static_project {
  #my($self) = shift;
  return 1;
}


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

  if (!defined $name) {
    $name = $self-&gt;project_name();
  }

  return $self-&gt;get_modified_project_file_name($name, '.vcproj');
}


sub get_env_accessor {
  #my($self) = shift;
  return ('%', '%');
}


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


sub get_lib_exe_template_input_file {
  #my($self) = shift;
  return 'vc7libexe';
}


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


sub get_lib_template_input_file {
  #my($self) = shift;
  return 'vc7lib';
}


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


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