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

« back to all changes in this revision

Viewing changes to Source/CTest/cmCTestBuildCommand.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: cmCTestBuildCommand.h,v $
5
 
  Language:  C++
6
 
  Date:      $Date: 2008-05-15 19:39:57 $
7
 
  Version:   $Revision: 1.5.12.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 cmCTestBuildCommand_h
18
13
#define cmCTestBuildCommand_h
19
14
 
20
15
#include "cmCTestHandlerCommand.h"
21
16
 
22
17
class cmGlobalGenerator;
 
18
class cmCTestBuildHandler;
23
19
 
24
20
/** \class cmCTestBuild
25
21
 * \brief Run a ctest script
54
50
   */
55
51
  virtual const char* GetTerseDocumentation()
56
52
    {
57
 
    return "Builds the repository.";
 
53
    return "Build the project.";
58
54
    }
59
 
 
 
55
  virtual bool InitialPass(std::vector<std::string> const& args,
 
56
                           cmExecutionStatus &status);
60
57
  /**
61
58
   * More documentation.
62
59
   */
63
60
  virtual const char* GetFullDocumentation()
64
61
    {
65
62
    return
66
 
      "  ctest_build([BUILD build_dir] [RETURN_VALUE res])\n"
67
 
      "Builds the given build directory and stores results in Build.xml.";
 
63
      "  ctest_build([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n"
 
64
      "              [NUMBER_ERRORS val] [NUMBER_WARNINGS val])\n"
 
65
      "Builds the given build directory and stores results in Build.xml. "
 
66
      "If no BUILD is given, the CTEST_BINARY_DIRECTORY variable is used. "
 
67
      "The RETURN_VALUE option specifies a variable in which to store the "
 
68
      "return value of the native build tool. "
 
69
      "The NUMBER_ERRORS and NUMBER_WARNINGS options specify variables in "
 
70
      "which to store the number of build errors and warnings detected."
 
71
      "\n"
 
72
      CTEST_COMMAND_APPEND_OPTION_DOCS;
68
73
    }
69
74
 
70
75
  cmTypeMacro(cmCTestBuildCommand, cmCTestHandlerCommand);
72
77
  cmGlobalGenerator* GlobalGenerator;
73
78
 
74
79
protected:
 
80
  cmCTestBuildHandler* Handler;
 
81
  enum {
 
82
    ctb_BUILD = ct_LAST,
 
83
    ctb_NUMBER_ERRORS,
 
84
    ctb_NUMBER_WARNINGS,
 
85
    ctb_LAST
 
86
  };
 
87
 
75
88
  cmCTestGenericHandler* InitializeHandler();
76
89
};
77
90