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

« back to all changes in this revision

Viewing changes to Source/cmLocalVisualStudioGenerator.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: cmLocalVisualStudioGenerator.h,v $
5
 
  Language:  C++
6
 
  Date:      $Date: 2007-08-27 21:05:43 $
7
 
  Version:   $Revision: 1.8 $
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 cmLocalVisualStudioGenerator_h
18
13
#define cmLocalVisualStudioGenerator_h
19
14
 
20
15
#include "cmLocalGenerator.h"
21
16
 
 
17
#include <cmsys/auto_ptr.hxx>
 
18
 
22
19
class cmSourceFile;
23
20
class cmSourceGroup;
24
21
 
33
30
public:
34
31
  cmLocalVisualStudioGenerator();
35
32
  virtual ~cmLocalVisualStudioGenerator();
36
 
protected:
37
 
 
38
33
  /** Construct a script from the given list of command lines.  */
39
34
  std::string ConstructScript(const cmCustomCommandLines& commandLines,
40
35
                              const char* workingDirectory,
43
38
                              bool escapeAllowMakeVars,
44
39
                              const char* newline = "\n");
45
40
 
 
41
protected:
 
42
 
 
43
  /** Construct a custom command to make exe import lib dir.  */
 
44
  cmsys::auto_ptr<cmCustomCommand>
 
45
  MaybeCreateImplibDir(cmTarget& target, const char* config);
 
46
 
46
47
  // Safe object file name generation.
47
48
  void ComputeObjectNameRequirements(std::vector<cmSourceGroup> const&);
48
49
  bool SourceFileCompiles(const cmSourceFile* sf);
50
51
                        std::map<cmStdString, int>& count);
51
52
  void InsertNeedObjectNames(const std::vector<cmSourceGroup>& groups,
52
53
                             std::map<cmStdString, int>& count);
53
 
 
54
54
  std::set<const cmSourceFile*> NeedObjectName;
 
55
  friend class cmVisualStudio10TargetGenerator;
55
56
};
56
57
 
57
58
#endif