Prechádzať zdrojové kódy

ENH: Start includding the scripting support

Andy Cedilnik 22 rokov pred
rodič
commit
69dd3218ba

+ 8 - 0
Source/cmCommand.h

@@ -90,6 +90,14 @@ public:
     return false;
     }
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable()
+    {
+    return false;
+    }
+
   /**
    * This determines if the method is deprecated or not. 
    */

+ 5 - 0
Source/cmIncludeCommand.h

@@ -50,6 +50,11 @@ public:
    */
   virtual bool IsInherited() {return true;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmMessageCommand.h

@@ -45,6 +45,11 @@ public:
    */
   virtual const char* GetName() { return "MESSAGE";}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * Succinct documentation.
    */