Fix android shared loader for openal-soft

This commit is contained in:
halx99 2021-08-08 14:35:30 +08:00
parent 39ca61f623
commit 5c070abfa6
2 changed files with 6 additions and 1 deletions

View File

@ -240,7 +240,11 @@ if(BUILD_DEP_ALSOFT)
target_link_libraries(thirdparty
OpenAL
)
target_compile_definitions(thirdparty PUBLIC DCC_USE_ALSOFT=1)
target_compile_definitions(thirdparty PUBLIC CC_USE_ALSOFT=1)
if(ANDROID)
set(ANDROID_SHARED_LOADS "${ANDROID_SHARED_LOADS}System.loadLibrary(\"openal\");" CACHE INTERNAL "Android Shared Loads" )
endif()
endif()
# The ogg decoder

View File

@ -1,5 +1,6 @@
/****************************************************************************
Copyright (c) 2020 c4games.com
Copyright (c) 2021 Bytedance Inc.
http://www.cocos2d-x.org