|
|
@@ -96,10 +96,8 @@ for (ver,key1,key2,subdir) in MAXVERSIONINFO:
|
|
|
##
|
|
|
## Potentially Conflicting Files
|
|
|
##
|
|
|
-## The next few functions can automatically move away files that
|
|
|
-## are commonly generated by ppremake that may conflict with the
|
|
|
-## build. When makepanda exits, those files will automatically be
|
|
|
-## put back to their original location.
|
|
|
+## The next function can warn about the existence of files that are
|
|
|
+## commonly generated by ppremake that may conflict with the build.
|
|
|
##
|
|
|
########################################################################
|
|
|
|
|
|
@@ -113,15 +111,10 @@ CONFLICTING_FILES=["dtool/src/dtoolutil/pandaVersion.h",
|
|
|
"direct/src/plugin_npapi/nppanda3d.rc",
|
|
|
"direct/src/plugin_standalone/panda3d.rc"]
|
|
|
|
|
|
-def MoveAwayConflictingFiles():
|
|
|
+def WarnConflictingFiles():
|
|
|
for cfile in CONFLICTING_FILES:
|
|
|
if os.path.exists(cfile):
|
|
|
- os.rename(cfile, cfile + ".moved")
|
|
|
-
|
|
|
-def MoveBackConflictingFiles():
|
|
|
- for cfile in CONFLICTING_FILES:
|
|
|
- if os.path.exists(cfile + ".moved"):
|
|
|
- os.rename(cfile + ".moved", cfile)
|
|
|
+ print("%sWARNING:%s file may conflict with build: %s%s%s" % (GetColor("red"), GetColor(), GetColor("green"), cfile, GetColor()))
|
|
|
|
|
|
########################################################################
|
|
|
##
|
|
|
@@ -226,7 +219,6 @@ def exit(msg = ""):
|
|
|
sys.stderr.flush()
|
|
|
if (threading.currentThread() == MAINTHREAD):
|
|
|
SaveDependencyCache()
|
|
|
- MoveBackConflictingFiles()
|
|
|
print("Elapsed Time: " + PrettyTime(time.time() - STARTTIME))
|
|
|
print(msg)
|
|
|
print(ColorText("red", "Build terminated."))
|
|
|
@@ -636,7 +628,7 @@ def NeedsBuild(files,others):
|
|
|
else:
|
|
|
oldothers = BUILTFROMCACHE[key][0]
|
|
|
if (oldothers != others and VERBOSE):
|
|
|
- print("%sWARNING:%s file dependencies changed: %s%s%s" % (GetColor("red"), GetColor(), GetColor("green"), str(files), GetColor()))
|
|
|
+ print("%sWARNING:%s file dependencies changed: %s%s%s" % (GetColor("red"), GetColor(), GetColor("green"), files, GetColor()))
|
|
|
return 1
|
|
|
|
|
|
########################################################################
|
|
|
@@ -2145,7 +2137,7 @@ def SetupVisualStudioEnviron():
|
|
|
AddToPathEnv("INCLUDE", SDK["VISUALSTUDIO"] + "VC\\include")
|
|
|
AddToPathEnv("INCLUDE", SDK["VISUALSTUDIO"] + "VC\\atlmfc\\include")
|
|
|
AddToPathEnv("LIB", SDK["VISUALSTUDIO"] + "VC\\lib"+suffix)
|
|
|
- AddToPathEnv("LIB", SDK["VISUALSTUDIO"] + "VC\\atlmfc\\lib")
|
|
|
+ AddToPathEnv("LIB", SDK["VISUALSTUDIO"] + "VC\\atlmfc\\lib"+suffix)
|
|
|
AddToPathEnv("PATH", SDK["MSPLATFORM"] + "bin")
|
|
|
AddToPathEnv("INCLUDE", SDK["MSPLATFORM"] + "include")
|
|
|
AddToPathEnv("INCLUDE", SDK["MSPLATFORM"] + "include\\atl")
|