mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
makepanda: Fix compiling for older NDKs with armv7a
This commit is contained in:
parent
267907d329
commit
c7cccd4791
@ -1325,10 +1325,8 @@ def CompileCxx(obj,src,opts):
|
||||
cmd += ' -target ' + SDK["ANDROID_TRIPLE"]
|
||||
if arch == 'armv7a':
|
||||
cmd += ' -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16'
|
||||
cmd += ' -fno-integrated-as'
|
||||
elif arch == 'arm':
|
||||
cmd += ' -march=armv5te -mtune=xscale -msoft-float'
|
||||
cmd += ' -fno-integrated-as'
|
||||
elif arch == 'mips':
|
||||
cmd += ' -mips32'
|
||||
elif arch == 'mips64':
|
||||
|
@ -411,7 +411,7 @@ def SetTarget(target, arch=None):
|
||||
global ANDROID_ABI, ANDROID_TRIPLE
|
||||
if arch == 'armv7a':
|
||||
ANDROID_ABI = 'armeabi-v7a'
|
||||
ANDROID_TRIPLE = 'arm-linux-androideabi'
|
||||
ANDROID_TRIPLE = 'armv7a-linux-androideabi'
|
||||
elif arch == 'arm':
|
||||
ANDROID_ABI = 'armeabi'
|
||||
ANDROID_TRIPLE = 'arm-linux-androideabi'
|
||||
@ -2549,8 +2549,8 @@ def SdkLocateAndroid():
|
||||
|
||||
# The Android support library polyfills C++ features not available in the
|
||||
# STL that ships with Android.
|
||||
support = os.path.join(ndk_root, 'sources', 'android', 'support', 'include')
|
||||
IncDirectory("ALWAYS", support.replace('\\', '/'))
|
||||
#support = os.path.join(ndk_root, 'sources', 'android', 'support', 'include')
|
||||
#IncDirectory("ALWAYS", support.replace('\\', '/'))
|
||||
if api < 21:
|
||||
LibName("ALWAYS", "-landroid_support")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user