1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

SCons: Move platform-specific Opus config to its module

This commit is contained in:
Rémi Verschelde
2019-03-02 10:30:10 +01:00
parent e930fb9a6e
commit 1807e0f135
4 changed files with 7 additions and 19 deletions

View File

@@ -298,12 +298,6 @@ def configure(env):
env.Append(CPPFLAGS=['-DANDROID_ENABLED', '-DUNIX_ENABLED', '-DNO_FCNTL'])
env.Append(LIBS=['OpenSLES', 'EGL', 'GLESv3', 'android', 'log', 'z', 'dl'])
# TODO: Move that to opus module's config
if 'module_opus_enabled' in env and env['module_opus_enabled']:
if (env["android_arch"] == "armv6" or env["android_arch"] == "armv7"):
env.Append(CFLAGS=["-DOPUS_ARM_OPT"])
env.opus_fixed_point = "yes"
# Return NDK version string in source.properties (adapted from the Chromium project).
def get_ndk_version(path):
if path is None: