FaceAccess/Record/CMakeLists.txt

87 lines
2.3 KiB
CMake
Raw Normal View History

2024-09-04 17:57:23 +08:00
find_package(Boost REQUIRED COMPONENTS json)
2024-06-18 14:27:48 +08:00
add_executable(Record main.cpp
2024-09-07 15:42:44 +08:00
$<$<BOOL:${CROSS_BUILD}>:RkAudio.h RkAudio.cpp>
2024-06-18 14:27:48 +08:00
OpusCodec.h OpusCodec.cpp
FFmpegResample.h FFmpegResample.cpp
2024-09-06 16:35:51 +08:00
ProcessFile.cpp
2024-09-04 17:57:23 +08:00
SpeexDsp.h SpeexDsp.cpp
2024-09-05 09:59:28 +08:00
Utility.h Utility.cpp
2024-09-05 12:24:05 +08:00
WebRtcAecm.h WebRtcAecm.cpp
2024-09-04 17:57:23 +08:00
WebRTCPublisher.h WebRTCPublisher.cpp
2024-09-07 15:42:44 +08:00
$<$<BOOL:${CROSS_BUILD}>:Player.cpp>
$<$<BOOL:${CROSS_BUILD}>:EchoRecord.cpp>
$<$<BOOL:${CROSS_BUILD}>:Recorder.cpp>
2024-06-18 14:27:48 +08:00
)
target_include_directories(Record
PRIVATE ${ALSA_INCLUDE_DIR}
PRIVATE ${MPP_INCLUDE_DIR}
PRIVATE ${MPP_INCLUDE_DIR}/rkmedia
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/opus-1.4/include
2024-09-07 15:42:44 +08:00
PRIVATE ${KINESIS_ROOT}/include
2024-09-04 17:57:23 +08:00
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/speexdsp-1.2.1/include
2024-06-18 14:27:48 +08:00
PRIVATE ${FFMPEG_INCLUDE_DIR}
2024-09-06 16:35:51 +08:00
# PRIVATE ${CMAKE_SOURCE_DIR}/rkap/include
2024-06-18 14:27:48 +08:00
)
target_link_directories(Record
PRIVATE ${ALSA_LIBRARY_DIRS}
PRIVATE ${MPP_LIBRARY_DIRS}
PRIVATE ${3rdparty_ROOT}/rkap_3a/lib
PRIVATE ${FFMPEG_LIBRARY_DIRS}
2024-09-04 17:57:23 +08:00
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/speexdsp-1.2.1/lib
2024-06-18 14:27:48 +08:00
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/opus-1.4/lib
2024-09-07 15:42:44 +08:00
PRIVATE ${KINESIS_ROOT}/lib
2024-09-04 17:57:23 +08:00
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/usrsctp-0.9.5.0/lib
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/libsrtp-2.6.0/lib
2024-09-06 16:35:51 +08:00
# PRIVATE ${CMAKE_SOURCE_DIR}/rkap/lib
2024-06-18 14:27:48 +08:00
)
2024-09-07 15:42:44 +08:00
if(CROSS_BUILD)
set(RK_LIBS
asound
easymedia
drm
rkaiq
rockchip_mpp
v4l2
v4lconvert
jpeg
png16
fontconfig
freetype
expat
rga
glib-2.0
pcre
RKAP_ANR
RKAP_Common
uuid
)
endif()
2024-06-18 14:27:48 +08:00
target_link_libraries(Record
2024-09-05 12:24:05 +08:00
PRIVATE VocieProcess
2024-09-06 09:45:44 +08:00
PRIVATE absl::optional
2024-06-18 14:27:48 +08:00
PRIVATE opus
2024-09-04 17:57:23 +08:00
PRIVATE speexdsp
PRIVATE Boost::json
PRIVATE kvsCommonLws
PRIVATE kvsWebrtcClient
PRIVATE kvsWebrtcSignalingClient
PRIVATE kvspic
PRIVATE kvspicUtils
PRIVATE kvspicClient
PRIVATE usrsctp
PRIVATE srtp2
2024-06-18 14:27:48 +08:00
PRIVATE Universal
2024-09-04 17:57:23 +08:00
PRIVATE HttpProxy
2024-06-18 14:27:48 +08:00
PRIVATE stdc++fs
PRIVATE dl
PRIVATE z
PRIVATE ${FFMPEG_LIBRARY}
2024-09-07 15:42:44 +08:00
${RK_LIBS}
2024-09-06 16:35:51 +08:00
# PRIVATE RKAP_Common
# PRIVATE RKAP_3A
2024-06-18 14:27:48 +08:00
)