81 lines
1.8 KiB
CMake
81 lines
1.8 KiB
CMake
|
add_executable(Record main.cpp
|
||
|
RkAudio.h RkAudio.cpp
|
||
|
OpusCodec.h OpusCodec.cpp
|
||
|
FFmpegResample.h FFmpegResample.cpp
|
||
|
RkRecorder.cpp
|
||
|
)
|
||
|
|
||
|
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
|
||
|
PRIVATE ${FFMPEG_INCLUDE_DIR}
|
||
|
)
|
||
|
|
||
|
target_link_directories(Record
|
||
|
PRIVATE ${ALSA_LIBRARY_DIRS}
|
||
|
PRIVATE ${MPP_LIBRARY_DIRS}
|
||
|
PRIVATE ${3rdparty_ROOT}/rkap_3a/lib
|
||
|
PRIVATE ${FFMPEG_LIBRARY_DIRS}
|
||
|
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/opus-1.4/lib
|
||
|
)
|
||
|
|
||
|
target_link_libraries(Record
|
||
|
PRIVATE asound
|
||
|
PRIVATE easymedia
|
||
|
PRIVATE drm
|
||
|
PRIVATE rkaiq
|
||
|
PRIVATE rockchip_mpp
|
||
|
PRIVATE v4l2
|
||
|
PRIVATE v4lconvert
|
||
|
PRIVATE jpeg
|
||
|
PRIVATE png16
|
||
|
PRIVATE fontconfig
|
||
|
PRIVATE freetype
|
||
|
PRIVATE expat
|
||
|
PRIVATE rga
|
||
|
PRIVATE glib-2.0
|
||
|
PRIVATE pcre
|
||
|
PRIVATE opus
|
||
|
PRIVATE Universal
|
||
|
PRIVATE stdc++fs
|
||
|
PRIVATE RKAP_ANR
|
||
|
PRIVATE RKAP_Common
|
||
|
PRIVATE uuid
|
||
|
PRIVATE dl
|
||
|
PRIVATE z
|
||
|
PRIVATE ${FFMPEG_LIBRARY}
|
||
|
)
|
||
|
|
||
|
add_executable(rkmedia_audio_test rkmedia_audio_test.c)
|
||
|
|
||
|
target_include_directories(rkmedia_audio_test
|
||
|
PRIVATE ${MPP_INCLUDE_DIR}/rkmedia
|
||
|
)
|
||
|
|
||
|
target_link_directories(rkmedia_audio_test
|
||
|
PRIVATE ${MPP_LIBRARY_DIRS}
|
||
|
PRIVATE ${3rdparty_ROOT}/rkap_3a/lib
|
||
|
PRIVATE ${ALSA_LIBRARY_DIRS}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(rkmedia_audio_test
|
||
|
PRIVATE asound
|
||
|
PRIVATE easymedia
|
||
|
PRIVATE drm
|
||
|
PRIVATE rkaiq
|
||
|
PRIVATE rockchip_mpp
|
||
|
PRIVATE v4l2
|
||
|
PRIVATE v4lconvert
|
||
|
PRIVATE jpeg
|
||
|
PRIVATE rga
|
||
|
PRIVATE glib-2.0
|
||
|
PRIVATE pcre
|
||
|
# PRIVATE opus
|
||
|
# PRIVATE Universal
|
||
|
# PRIVATE stdc++fs
|
||
|
PRIVATE RKAP_ANR
|
||
|
PRIVATE RKAP_Common
|
||
|
PRIVATE dl
|
||
|
)
|