You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
635 B
19 lines
635 B
# Copyright 2023 jacqueline <me@jacqueline.id.au>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
idf_component_register(
|
|
SRCS "codec.cpp" "mad.cpp" "miniflac.cpp" "opus.cpp" "vorbis.cpp"
|
|
"source_buffer.cpp" "sample.cpp" "wav.cpp"
|
|
INCLUDE_DIRS "include"
|
|
REQUIRES "result" "span" "libmad" "miniflac" "tremor" "opusfile" "memory" "util"
|
|
"komihash")
|
|
|
|
target_compile_options("${COMPONENT_LIB}" PRIVATE ${EXTRA_WARNINGS})
|
|
|
|
set(FAAD_BUNDLED_MODE ON)
|
|
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
|
|
|
add_subdirectory($ENV{PROJ_PATH}/lib/faad2 ${CMAKE_CURRENT_BINARY_DIR}/faad2)
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC faad_fixed)
|
|
|