Jelajahi Sumber

ENH: Start includding the scripting support

Andy Cedilnik 22 tahun lalu
induk
melakukan
69dd3218ba
3 mengubah file dengan 18 tambahan dan 0 penghapusan
  1. 8 0
      Source/cmCommand.h
  2. 5 0
      Source/cmIncludeCommand.h
  3. 5 0
      Source/cmMessageCommand.h

+ 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.
    */