summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixDefinesRule.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmUnixDefinesRule.h')
-rw-r--r--Source/cmUnixDefinesRule.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/Source/cmUnixDefinesRule.h b/Source/cmUnixDefinesRule.h
new file mode 100644
index 0000000..c799c4e
--- /dev/null
+++ b/Source/cmUnixDefinesRule.h
@@ -0,0 +1,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* TerseDocumentaion()
+ {
+ return "Add -D flags to the command line for unix only.";
+ }
+
+ // Return full documentation for the rule
+ virtual const char* FullDocumentaion()
+ {
+ return
+ "Add -D flags to the command line for unix only.\n"
+ "UNIX_DEFINES(-DFOO -DBAR);";
+ }
+};
+
+
+
+#endif