~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Source/cmDepends.h

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*=========================================================================
2
 
 
3
 
  Program:   CMake - Cross-Platform Makefile Generator
4
 
  Module:    $RCSfile: cmDepends.h,v $
5
 
  Language:  C++
6
 
  Date:      $Date: 2008-05-15 19:39:50 $
7
 
  Version:   $Revision: 1.14.2.1 $
8
 
 
9
 
  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
10
 
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
11
 
 
12
 
     This software is distributed WITHOUT ANY WARRANTY; without even
13
 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
 
     PURPOSE.  See the above copyright notices for more information.
15
 
 
16
 
=========================================================================*/
 
1
/*============================================================================
 
2
  CMake - Cross Platform Makefile Generator
 
3
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
 
4
 
 
5
  Distributed under the OSI-approved BSD License (the "License");
 
6
  see accompanying file Copyright.txt for details.
 
7
 
 
8
  This software is distributed WITHOUT ANY WARRANTY; without even the
 
9
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
10
  See the License for more information.
 
11
============================================================================*/
17
12
#ifndef cmDepends_h
18
13
#define cmDepends_h
19
14
 
59
54
 
60
55
  /** Write dependencies for the target file.  */
61
56
  bool Write(std::ostream &makeDepends, std::ostream &internalDepends);
62
 
  
 
57
 
 
58
  class DependencyVector: public std::vector<std::string> {};
 
59
 
63
60
  /** Check dependencies for the target file.  Returns true if
64
61
      dependencies are okay and false if they must be generated.  If
65
62
      they must be generated Clear has already been called to wipe out
66
 
      the old dependencies.  */
67
 
  bool Check(const char *makeFile, const char* internalFile);
 
63
      the old dependencies.
 
64
      Dependencies which are still valid will be stored in validDeps. */
 
65
  bool Check(const char *makeFile, const char* internalFile,
 
66
             std::map<std::string, DependencyVector>& validDeps);
68
67
 
69
68
  /** Clear dependencies for the target file so they will be regenerated.  */
70
69
  void Clear(const char *file);
83
82
  // Check dependencies for the target file in the given stream.
84
83
  // Return false if dependencies must be regenerated and true
85
84
  // otherwise.
86
 
  virtual bool CheckDependencies(std::istream& internalDepends);
 
85
  virtual bool CheckDependencies(std::istream& internalDepends,
 
86
                           std::map<std::string, DependencyVector>& validDeps);
87
87
 
88
88
  // Finalize the dependency information for the target.
89
89
  virtual bool Finalize(std::ostream& makeDepends,