浏览代码

makepanda: fix error when building on Android without specifying --target

rdb 6 年之前
父节点
当前提交
4f4b79295f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      makepanda/makepandacore.py

+ 2 - 0
makepanda/makepandacore.py

@@ -2479,6 +2479,8 @@ def SdkLocateAndroid():
         return
         return
 
 
     # Allow ANDROID_API/ANDROID_ABI to be used in makepanda.py.
     # Allow ANDROID_API/ANDROID_ABI to be used in makepanda.py.
+    if ANDROID_API is None:
+        SetTarget('android')
     api = ANDROID_API
     api = ANDROID_API
     SDK["ANDROID_API"] = api
     SDK["ANDROID_API"] = api