summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixDefinesRule.h
blob: 0c216b0e6b1f6256759190bfeca7f4c89ff720db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef cmUnixDefinesRule_h
#define cmUnixDefinesRule_h

#include "cmStandardIncludes.h"
#include "cmRuleMaker.h"


class cmUnixDefinesRule : public cmRuleMaker
{
public:
  cmUnixDefinesRule();
  virtual cmRuleMaker* Clone() 
    {
      return new cmUnixDefinesRule;
    }
  // This is called when the rule is firt encountered in
  // the input file
  virtual bool Invoke(std::vector<std::string>& args);
  virtual void FinalPass() { }
  virtual bool IsInherited() { return true;  }

  // This is the name used in the input file.
  virtual const char* GetName() { return "UNIX_DEFINES";}
  virtual const char* TerseDocumentation() 
    {
      return "Add -D flags to the command line for unix only.";
    }
  
  // Return full documentation for the rule
  virtual const char* FullDocumentation()
    {
      return
        "Add -D flags to the command line for unix only.\n"
        "UNIX_DEFINES(-DFOO -DBAR);";
    }
};



#endif