1# the minimum version of CMake. 2cmake_minimum_required(VERSION 3.4.1) 3project(memory) 4 5set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}) 6 7include_directories(${NATIVERENDER_ROOT_PATH} 8 ${NATIVERENDER_ROOT_PATH}/include) 9 10add_library(mediacodecbasexdlndk SHARED mediacodecbasexdlndk.cpp) 11target_link_libraries(mediacodecbasexdlndk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_avsource.so libnative_media_core.so libnative_media_aenc.so libnative_media_codecbase.so libnative_media_adec.so) 12 13add_library(audiodecoderxdlndk SHARED audiodecoderxdlndk.cpp) 14target_link_libraries(audiodecoderxdlndk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_adec.so libnative_media_codecbase.so) 15 16add_library(audioencoderxdlndk SHARED audioencoderxdlndk.cpp) 17target_link_libraries(audioencoderxdlndk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_aenc.so libnative_media_codecbase.so) 18 19add_library(audioEncoderAvBuffer SHARED audioEncoderAvBuffer.cpp) 20target_link_libraries(audioEncoderAvBuffer PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_acodec.so libnative_media_codecbase.so) 21 22add_library(audioDecoderAvBuffer SHARED audioDecoderAvBuffer.cpp) 23target_link_libraries(audioDecoderAvBuffer PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_acodec.so libnative_media_codecbase.so) 24 25add_library(videodecoderndk SHARED videodecoderndk.cpp) 26target_link_libraries(videodecoderndk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_codecbase.so libnative_window.so libnative_media_vdec.so) 27 28add_library(videoencoderndk SHARED videoencoderndk.cpp) 29target_link_libraries(videoencoderndk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_codecbase.so libnative_media_venc.so libnative_window.so) 30 31add_library(nativendk SHARED nativendk.cpp) 32target_link_libraries(nativendk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_avsource.so libnative_media_core.so libnative_media_aenc.so libnative_media_codecbase.so libnative_media_adec.so) 33 34add_library(nativeavdemuxerndk SHARED nativeavdemuxerndk.cpp) 35target_link_libraries(nativeavdemuxerndk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_codecbase.so libnative_media_venc.so libnative_window.so libnative_media_avdemuxer.so libnative_media_avmuxer.so libnative_media_avsource.so) 36 37add_library(multimediaCore SHARED multimediaCore.cpp) 38target_link_libraries(multimediaCore PUBLIC libace_napi.z.so libace_napi.z.so libc++.a libhilog_ndk.z.so libnative_media_adec.so libnative_media_codecbase.so libnative_media_core.so libnative_media_core.so libnative_media_core.so) 39 40add_library(mediaavsourcendk SHARED mediaavsourcendk.cpp) 41target_link_libraries(mediaavsourcendk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_codecbase.so libnative_media_venc.so libnative_window.so libnative_media_avmuxer.so libnative_media_avsource.so) 42 43add_library(nativeavmuxerndk SHARED nativeavmuxerndk.cpp) 44target_link_libraries(nativeavmuxerndk PUBLIC libace_napi.z.so libhilog_ndk.z.so libnative_media_core.so libnative_media_codecbase.so libnative_media_venc.so libnative_window.so libnative_media_avmuxer.so)