~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to bin/DependencyGenerator/DependencyWriterFactory.pm

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package DependencyWriterFactory;
2
 
 
3
 
# ************************************************************
4
 
# Description   : Create DependencyWriter objects.
5
 
# Author        : Chad Elliott
6
 
# Create Date   : 5/23/2003
7
 
# ************************************************************
8
 
 
9
 
# ************************************************************
10
 
# Pragmas
11
 
# ************************************************************
12
 
 
13
 
use strict;
14
 
 
15
 
use GNUDependencyWriter;
16
 
use NMakeDependencyWriter;
17
 
 
18
 
# ************************************************************
19
 
# Subroutine Section
20
 
# ************************************************************
21
 
 
22
 
sub create {
23
 
  switch: {
24
 
    $_[0] eq 'gnu'   && do { return new GNUDependencyWriter(); };
25
 
    $_[0] eq 'nmake' && do { return new NMakeDependencyWriter(); };
26
 
    print STDERR "WARNING: Invalid dependency writer type: $_[0]\n";
27
 
  }
28
 
 
29
 
  return new DependencyWriter();
30
 
}
31
 
 
32
 
 
33
 
1;