浏览代码

makepanda: rebuild modules when interrogate_module is modified

rdb 7 年之前
父节点
当前提交
5523af09ce
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      makepanda/makepandacore.py

+ 4 - 0
makepanda/makepandacore.py

@@ -3419,5 +3419,9 @@ def TargetAdd(target, dummy=0, opts=[], input=[], dep=[], ipath=None, winrc=None
             t.deps[FindLocation("interrogate.exe", [])] = 1
             t.deps[FindLocation("interrogate.exe", [])] = 1
         t.deps[FindLocation("dtool_have_python.dat", [])] = 1
         t.deps[FindLocation("dtool_have_python.dat", [])] = 1
 
 
+    if target.endswith(".obj") and any(x.endswith(".in") for x in input):
+        if not CrossCompiling():
+            t.deps[FindLocation("interrogate_module.exe", [])] = 1
+
     if target.endswith(".pz") and not CrossCompiling():
     if target.endswith(".pz") and not CrossCompiling():
         t.deps[FindLocation("pzip.exe", [])] = 1
         t.deps[FindLocation("pzip.exe", [])] = 1