Browse Source

shed more light on compile error

rdb 14 years ago
parent
commit
d52509675f
2 changed files with 3 additions and 1 deletions
  1. 1 1
      makepanda/makepanda.py
  2. 2 0
      makepanda/makepandacore.py

+ 1 - 1
makepanda/makepanda.py

@@ -1333,7 +1333,7 @@ def CompileAnything(target, inputs, opts, progress = None):
         elif (infile.endswith(".rc") or infile.endswith(".r")):
             ProgressOutput(progress, "Building resource object", target)
             return CompileResource(target, infile, opts)
-    exit("Don't know how to compile: "+target)
+    exit("Don't know how to compile: %s from %s" % (target, inputs))
 
 ##########################################################################################
 #

+ 2 - 0
makepanda/makepandacore.py

@@ -1921,6 +1921,8 @@ def CalcLocation(fn, ipath):
     if (fn.endswith(".yxx")): return CxxFindSource(fn, ipath)
     if (fn.endswith(".lxx")): return CxxFindSource(fn, ipath)
     if (fn.endswith(".pdef")):return CxxFindSource(fn, ipath)
+    if (fn.endswith(".egg")): return OUTPUTDIR+"/models/"+fn
+    if (fn.endswith(".egg.pz")):return OUTPUTDIR+"/models/"+fn
     if (sys.platform.startswith("win")):
         if (fn.endswith(".def")):   return CxxFindSource(fn, ipath)
         if (fn.endswith(".rc")):    return CxxFindSource(fn, ipath)