-
Notifications
You must be signed in to change notification settings - Fork 349
cmake/zephyr: src/audio/CMakeLists.txt unification part 3 #9918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kv2019i
merged 11 commits into
thesofproject:main
from
kv2019i:202403-cmake-decentr-audio-part3
Apr 1, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0c840a3
cmake/zephyr: unify cmake rules for src/audio/module_adapter
kv2019i eb06e5f
cmake/zephyr: unify cmake rules for modules using module_adapter
kv2019i 1fe5faf
cmake/zephyr: unify cmake rules for Waves codec
kv2019i 688b740
audio: codec: dts: align CMakeList.txt style
kv2019i 856db37
cmake/zephyr: unify cmake rules for DTS src/audio/codec
kv2019i 40f840c
cmake/zephyr: unify cmake rules for src/audio/google
kv2019i 08524b3
cmake/zephyr: unify cmake rules for src/audio/smart_amp
kv2019i e232f7c
cmake/zephyr: unify cmake rules for src/audio/igo_nr
kv2019i 738c5f9
cmake/zephyr: unify cmake rules for google_hotword_detect
kv2019i 8bbe7c6
cmake/zephyr: unify cmake rules for src/audio/rtnr
kv2019i 191abcf
cmake/zephyr: unify cmake rules for src/audio/mic_privacy
kv2019i File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,13 +1,36 @@ | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| is_zephyr(zephyr) | ||
| if(zephyr) ### Zephyr ### | ||
|
|
||
| if(CONFIG_DTS_CODEC STREQUAL "m") | ||
kv2019i marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| add_subdirectory(dts/llext ${PROJECT_BINARY_DIR}/dts_llext) | ||
| add_dependencies(app dts) | ||
|
|
||
| else(CONFIG_DTS_CODEC) | ||
| zephyr_library_sources(dts/dts.c) | ||
| if (CONFIG_DTS_CODEC_STUB) | ||
| zephyr_library_sources(dts/dts_stub.c) | ||
| else() | ||
| zephyr_library_import(DtsCodec | ||
| ${sof_top_dir}/third_party/lib/libdts-sof-interface-i32.a) | ||
| endif() | ||
| endif() | ||
|
|
||
| return() | ||
| endif() | ||
|
|
||
| ### XTOS ### | ||
| if(CONFIG_DTS_CODEC) | ||
| add_local_sources(sof dts/dts.c) | ||
| target_compile_definitions(sof PRIVATE -DDTS_MATH_INT32 -DDTS_XTENSA) | ||
| if (CONFIG_DTS_CODEC_STUB) | ||
| add_local_sources(sof dts/dts_stub.c) | ||
| else() | ||
| sof_add_static_library(DtsCodec | ||
| ${SOF_ROOT_SOURCE_DIRECTORY}/third_party/lib/libdts-sof-interface-i32.a) | ||
| target_include_directories(sof PRIVATE ${CMAKE_SOURCE_DIR}/third_party/include) | ||
| endif() | ||
| add_local_sources(sof dts/dts.c) | ||
| target_compile_definitions(sof PRIVATE -DDTS_MATH_INT32 -DDTS_XTENSA) | ||
|
|
||
| if (CONFIG_DTS_CODEC_STUB) | ||
| add_local_sources(sof dts/dts_stub.c) | ||
| else() | ||
| sof_add_static_library(DtsCodec | ||
| ${SOF_ROOT_SOURCE_DIRECTORY}/third_party/lib/libdts-sof-interface-i32.a) | ||
| target_include_directories(sof PRIVATE ${CMAKE_SOURCE_DIR}/third_party/include) | ||
| endif() | ||
|
|
||
| endif() | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,8 +1,22 @@ | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| if(CONFIG_COMP_IGO_NR STREQUAL "m") | ||
| add_subdirectory(llext ${PROJECT_BINARY_DIR}/igo_nr_llext) | ||
| add_dependencies(app igo_nr) | ||
| return() | ||
| endif() | ||
|
|
||
| add_local_sources(sof igo_nr.c) | ||
|
|
||
| if (CONFIG_COMP_IGO_NR_STUB) | ||
| add_local_sources(sof igo_nr_stub.c) | ||
| else () | ||
| sof_add_static_library(IGOChrome ${CMAKE_CURRENT_LIST_DIR}/libigonr.a) | ||
| endif () | ||
| add_local_sources(sof igo_nr_stub.c) | ||
|
|
||
| else() | ||
| is_zephyr(zephyr) | ||
| if(zephyr) ### Zephyr ### | ||
| zephyr_library_import(IGOChrome ${CMAKE_CURRENT_LIST_DIR}/libigonr.a) | ||
| else() | ||
| sof_add_static_library(IGOChrome ${CMAKE_CURRENT_LIST_DIR}/libigonr.a) | ||
| endif() | ||
|
|
||
| endif() |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,11 +1,26 @@ | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| add_local_sources(sof rtnr.c) | ||
|
|
||
| if (CONFIG_COMP_RTNR_STUB) | ||
| add_local_sources(sof rtnr_stub.c) | ||
| elseif(CONFIG_TIGERLAKE) | ||
| add_subdirectory(rtklib/tgl) | ||
| elseif(CONFIG_MT8195) | ||
| add_subdirectory(rtklib/mt8195) | ||
| if(CONFIG_COMP_RTNR STREQUAL "m") | ||
| add_subdirectory(llext ${PROJECT_BINARY_DIR}/rtnr_llext) | ||
| add_dependencies(app rtnr) | ||
| return() | ||
| endif() | ||
|
|
||
| is_zephyr(zephyr) | ||
| if(zephyr) ### Zephyr ### | ||
|
|
||
| zephyr_library_sources(rtnr.c) | ||
| zephyr_library_sources_ifdef(CONFIG_COMP_RTNR_STUB rtnr_stub.c) | ||
|
|
||
| else() ### XTOS ### | ||
|
|
||
| add_local_sources(sof rtnr.c) | ||
| if (CONFIG_COMP_RTNR_STUB) | ||
| add_local_sources(sof rtnr_stub.c) | ||
| elseif(CONFIG_TIGERLAKE) | ||
| add_subdirectory(rtklib/tgl) | ||
| elseif(CONFIG_MT8195) | ||
| add_subdirectory(rtklib/mt8195) | ||
| endif() | ||
|
|
||
| endif() |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.