summaryrefslogtreecommitdiffstats
path: root/Source/cmWin32DefinesRule.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmWin32DefinesRule.h')
-rw-r--r--Source/cmWin32DefinesRule.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/Source/cmWin32DefinesRule.h b/Source/cmWin32DefinesRule.h
new file mode 100644
index 0000000..08518b9
--- /dev/null
+++ b/Source/cmWin32DefinesRule.h
@@ -0,0 +1,39 @@
+#ifndef cmWin32DefinesRule_h
+#define cmWin32DefinesRule_h
+
+#include "cmStandardIncludes.h"
+#include "cmRuleMaker.h"
+
+
+class cmWin32DefinesRule : public cmRuleMaker
+{
+public:
+ cmWin32DefinesRule();
+ virtual cmRuleMaker* Clone()
+ {
+ return new cmWin32DefinesRule;
+ }
+ // 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 "WIN32_DEFINES";}
+ virtual const char* TerseDocumentaion()
+ {
+ return "Add -D define flags to command line for win32 environments.";
+ }
+
+ // Return full documentation for the rule
+ virtual const char* FullDocumentaion()
+ {
+ return
+ "Add -D define flags to command line for win32 environments.\n"
+ "WIN32_DEFINES(-DFOO -DBAR ...);";
+ }
+};
+
+
+
+#endif