Browse Source

makepanda: Don't make built/Frameworks directory unless needed

It is no longer needed if we don't ship Cg as a framework, see #1079

[skip ci]
rdb 5 years ago
parent
commit
5cd6469fd8
2 changed files with 2 additions and 4 deletions
  1. 1 0
      makepanda/makepanda.py
  2. 1 4
      makepanda/makepandacore.py

+ 1 - 0
makepanda/makepanda.py

@@ -3337,6 +3337,7 @@ if tp_dir is not None:
                 JustBuilt([target], [tp_lib])
 
             for fwx in glob.glob(tp_pkg + "/*.framework"):
+                MakeDirectory(GetOutputDir() + "/Frameworks")
                 CopyTree(GetOutputDir() + "/Frameworks/" + os.path.basename(fwx), fwx)
 
         else:  # Linux / FreeBSD case.

+ 1 - 4
makepanda/makepandacore.py

@@ -1255,10 +1255,7 @@ def MakeBuildTree():
     MakeDirectory(OUTPUTDIR + "/pandac/input")
     MakeDirectory(OUTPUTDIR + "/panda3d")
 
-    if GetTarget() == 'darwin':
-        MakeDirectory(OUTPUTDIR + "/Frameworks")
-
-    elif GetTarget() == 'android':
+    if GetTarget() == 'android':
         MakeDirectory(OUTPUTDIR + "/classes")
 
 ########################################################################