Browse Source

makepanda: rebuild modules when interrogate_module is modified

rdb 7 years ago
parent
commit
5523af09ce
1 changed files with 4 additions and 0 deletions
  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("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():
         t.deps[FindLocation("pzip.exe", [])] = 1