-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
159 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
include(ExternalProject) | ||
|
||
set(EXT_FDKAAC_TOOLCHAIN_ARGS) | ||
if (CMAKE_TOOLCHAIN_FILE) | ||
list(APPEND EXT_FDKAAC_TOOLCHAIN_ARGS "-DCMAKE_TOOLCHAIN_FILE:string=${CMAKE_TOOLCHAIN_FILE}") | ||
endif () | ||
if (CMAKE_TOOLCHAIN_ARGS) | ||
list(APPEND EXT_FDKAAC_TOOLCHAIN_ARGS "-DCMAKE_TOOLCHAIN_ARGS:string=${CMAKE_TOOLCHAIN_ARGS}") | ||
endif () | ||
|
||
set(LIB_FILENAME "${CMAKE_SHARED_LIBRARY_PREFIX}fdk-aac${CMAKE_SHARED_LIBRARY_SUFFIX}") | ||
|
||
ExternalProject_Add(ext_fdkaac | ||
URL https://github.com/mstorsjo/fdk-aac/archive/refs/tags/v2.0.3.tar.gz | ||
URL_HASH SHA256=e25671cd96b10bad896aa42ab91a695a9e573395262baed4e4a2ff178d6a3a78 | ||
CMAKE_ARGS ${EXT_OPUS_TOOLCHAIN_ARGS} | ||
-DCMAKE_BUILD_TYPE:string=${CMAKE_BUILD_TYPE} | ||
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> | ||
BUILD_BYPRODUCTS <INSTALL_DIR>/lib/${LIB_FILENAME} | ||
) | ||
ExternalProject_Get_Property(ext_fdkaac INSTALL_DIR) | ||
|
||
add_library(ext_fdkaac_target SHARED IMPORTED) | ||
set_target_properties(ext_fdkaac_target PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/${LIB_FILENAME}) | ||
|
||
add_dependencies(ext_fdkaac_target ext_fdkaac) | ||
|
||
set(FDKAAC_INCLUDE_DIRS ${INSTALL_DIR}/include) | ||
set(FDKAAC_LIBRARIES ext_fdkaac_target) | ||
set(FDKAAC_FOUND TRUE) | ||
|
||
if (NOT DEFINED CMAKE_INSTALL_LIBDIR) | ||
set(CMAKE_INSTALL_LIBDIR lib) | ||
endif () | ||
|
||
install(DIRECTORY ${INSTALL_DIR}/lib/ DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ss4s
updated
18 files
+6 −1 | include/ss4s/audio.h | |
+1 −1 | modules/interface/include/ss4s/modapi.h | |
+2 −1 | modules/pulse/pulse.c | |
+15 −8 | modules/sdl/CMakeLists.txt | |
+4 −1 | modules/sdl/ringbuf.c | |
+28 −14 | modules/webos/ndl/webos4/ndl_audio.c | |
+4 −1 | modules/webos/ndl/webos5/ndl_audio.c | |
+9 −3 | modules/webos/smp/CMakeLists.txt | |
+79 −0 | modules/webos/smp/src/smp_audio.c | |
+10 −65 | modules/webos/smp/src/smp_module.c | |
+198 −0 | modules/webos/smp/src/smp_player.c | |
+54 −0 | modules/webos/smp/src/smp_player.h | |
+9 −3 | modules/webos/smp/src/smp_resource.h | |
+90 −9 | modules/webos/smp/src/smp_resource_acb.c | |
+123 −14 | modules/webos/smp/src/smp_resource_webos5.c | |
+80 −288 | modules/webos/smp/src/smp_video.c | |
+0 −25 | modules/webos/smp/src/smp_video.h | |
+6 −2 | src/audio.c |