chiaki/android/app/CMakeLists.txt
2019-10-30 15:19:55 +01:00

25 lines
793 B
CMake

cmake_minimum_required(VERSION 3.2)
set(CMAKE_CXX_STANDARD 14)
add_library(chiaki-jni SHARED
src/main/cpp/chiaki-jni.c
src/main/cpp/log.h
src/main/cpp/log.c
src/main/cpp/video-decoder.h
src/main/cpp/video-decoder.c
src/main/cpp/audio-decoder.h
src/main/cpp/audio-decoder.c
src/main/cpp/audio-output.h
src/main/cpp/audio-output.cpp
src/main/cpp/circular-fifo.hpp)
target_link_libraries(chiaki-jni chiaki-lib)
find_library(ANDROID_LIB_LOG log)
find_library(ANDROID_LIB_MEDIANDK mediandk)
find_library(ANDROID_LIB_ANDROID android)
target_link_libraries(chiaki-jni "${ANDROID_LIB_LOG}" "${ANDROID_LIB_MEDIANDK}" "${ANDROID_LIB_ANDROID}")
add_subdirectory(src/main/cpp/oboe)
target_link_libraries(chiaki-jni oboe)