You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Change "env['ndk_platform']" to "ndk_platform" and add "can_vectorize = True"
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
/* GODOT ENGINE */
|
/* GODOT ENGINE */
|
||||||
/* https://godotengine.org */
|
/* https://godotengine.org */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */
|
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||||
/* Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) */
|
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||||
/* */
|
/* */
|
||||||
/* Permission is hereby granted, free of charge, to any person obtaining */
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
||||||
/* a copy of this software and associated documentation files (the */
|
/* a copy of this software and associated documentation files (the */
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
/* GODOT ENGINE */
|
/* GODOT ENGINE */
|
||||||
/* https://godotengine.org */
|
/* https://godotengine.org */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */
|
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||||
/* Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) */
|
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||||
/* */
|
/* */
|
||||||
/* Permission is hereby granted, free of charge, to any person obtaining */
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
||||||
/* a copy of this software and associated documentation files (the */
|
/* a copy of this software and associated documentation files (the */
|
||||||
|
|||||||
@@ -132,9 +132,9 @@ def configure(env):
|
|||||||
else:
|
else:
|
||||||
env.extra_suffix = ".armv7" + env.extra_suffix
|
env.extra_suffix = ".armv7" + env.extra_suffix
|
||||||
elif env["android_arch"] == "arm64v8":
|
elif env["android_arch"] == "arm64v8":
|
||||||
if get_platform(env["ndk_platform"]) < 21:
|
if get_platform(ndk_platform) < 21:
|
||||||
print("WARNING: android_arch=arm64v8 is not supported by ndk_platform lower than andorid-21; setting ndk_platform=android-21")
|
print("WARNING: android_arch=arm64v8 is not supported by ndk_platform lower than andorid-21; setting ndk_platform=android-21")
|
||||||
env["ndk_platform"] = "android-21"
|
ndk_platform = "android-21"
|
||||||
env['ARCH'] = 'arch-arm64'
|
env['ARCH'] = 'arch-arm64'
|
||||||
target_subpath = "aarch64-linux-android-4.9"
|
target_subpath = "aarch64-linux-android-4.9"
|
||||||
abi_subpath = "aarch64-linux-android"
|
abi_subpath = "aarch64-linux-android"
|
||||||
@@ -187,7 +187,7 @@ def configure(env):
|
|||||||
env.Append(CPPFLAGS=["-isystem", sysroot + "/usr/include"])
|
env.Append(CPPFLAGS=["-isystem", sysroot + "/usr/include"])
|
||||||
env.Append(CPPFLAGS=["-isystem", sysroot + "/usr/include/" + abi_subpath])
|
env.Append(CPPFLAGS=["-isystem", sysroot + "/usr/include/" + abi_subpath])
|
||||||
# For unified headers this define has to be set manually
|
# For unified headers this define has to be set manually
|
||||||
env.Append(CPPFLAGS=["-D__ANDROID_API__=" + str(get_platform(env['ndk_platform']))])
|
env.Append(CPPFLAGS=["-D__ANDROID_API__=" + str(get_platform(ndk_platform))])
|
||||||
else:
|
else:
|
||||||
print("Using NDK deprecated headers")
|
print("Using NDK deprecated headers")
|
||||||
env.Append(CPPFLAGS=["-isystem", lib_sysroot + "/usr/include"])
|
env.Append(CPPFLAGS=["-isystem", lib_sysroot + "/usr/include"])
|
||||||
@@ -217,6 +217,7 @@ def configure(env):
|
|||||||
env.Append(CPPFLAGS=['-mfpu=vfpv3-d16'])
|
env.Append(CPPFLAGS=['-mfpu=vfpv3-d16'])
|
||||||
|
|
||||||
elif env["android_arch"] == "arm64v8":
|
elif env["android_arch"] == "arm64v8":
|
||||||
|
can_vectorize = True
|
||||||
target_opts = ['-target', 'aarch64-none-linux-android']
|
target_opts = ['-target', 'aarch64-none-linux-android']
|
||||||
env.Append(CPPFLAGS=['-D__ARM_ARCH_8A__'])
|
env.Append(CPPFLAGS=['-D__ARM_ARCH_8A__'])
|
||||||
env.Append(CPPFLAGS=['-mfix-cortex-a53-835769'])
|
env.Append(CPPFLAGS=['-mfix-cortex-a53-835769'])
|
||||||
|
|||||||
Reference in New Issue
Block a user