cmake_minimum_required(VERSION 3.22.1)
project(emulate_native)

add_library(emulate_native SHARED
    jni_bridge.cpp
    libretro_frontend.cpp
    audio_engine.cpp
)

target_include_directories(emulate_native PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

find_library(log-lib log)
find_library(android-lib android)

target_link_libraries(emulate_native
    ${log-lib}
    ${android-lib}
    aaudio
    dl
)

target_compile_options(emulate_native PRIVATE -std=c++20 -Wall -O2)
