Browse Source

thirdparty dir for arm

rdb 14 years ago
parent
commit
ee5c561acc
1 changed files with 6 additions and 2 deletions
  1. 6 2
      makepanda/makepandacore.py

+ 6 - 2
makepanda/makepandacore.py

@@ -793,12 +793,16 @@ def GetThirdpartyDir():
     elif (sys.platform == "darwin"):
         THIRDPARTYDIR=GetThirdpartyBase()+"/darwin-libs-a/"
     elif (sys.platform.startswith("linux")):
-        if (platform.architecture()[0] == "64bit"):
+        if (platform.machine().startswith("arm")):
+            THIRDPARTYDIR=GetThirdpartyBase()+"/linux-libs-arm/"
+        elif (platform.architecture()[0] == "64bit"):
             THIRDPARTYDIR=GetThirdpartyBase()+"/linux-libs-x64/"
         else:
             THIRDPARTYDIR=GetThirdpartyBase()+"/linux-libs-a/"
     elif (sys.platform.startswith("freebsd")):
-        if (platform.architecture()[0] == "64bit"):
+        if (platform.machine().startswith("arm")):
+            THIRDPARTYDIR=GetThirdpartyBase()+"/freebsd-libs-arm/"
+        elif (platform.architecture()[0] == "64bit"):
             THIRDPARTYDIR=GetThirdpartyBase()+"/freebsd-libs-x64/"
         else:
             THIRDPARTYDIR=GetThirdpartyBase()+"/freebsd-libs-a/"