# Auto generated by Craby. DO NOT EDIT. cmake_minimum_required(VERSION 3.13) project(craby-hwpjs) set (CMAKE_VERBOSE_MAKEFILE ON) set (CMAKE_CXX_STANDARD 20) find_package(ReactAndroid REQUIRED CONFIG) # Import the pre-built Craby library add_library(hwpjs-lib STATIC IMPORTED) set_target_properties(hwpjs-lib PROPERTIES IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/src/main/jni/libs/${ANDROID_ABI}/libhwpjs-prebuilt.a" ) target_include_directories(hwpjs-lib INTERFACE "${CMAKE_SOURCE_DIR}/src/main/jni/include" ) # Generated C++ source files by Craby add_library(cxx-hwpjs SHARED src/main/jni/OnLoad.cpp src/main/jni/src/ffi.rs.cc ../cpp/CxxHwpjsModule.cpp ) target_include_directories(cxx-hwpjs PRIVATE ../cpp ) target_link_libraries(cxx-hwpjs # android ReactAndroid::reactnative ReactAndroid::jsi # hwpjs-lib hwpjs-lib ) # From ReactAndroid/cmake-utils/folly-flags.cmake target_compile_definitions(cxx-hwpjs PRIVATE -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 # Once we target android-23 above, we can comment # the following line. NDK uses GNU style stderror_r() after API 23. -DFOLLY_HAVE_XSI_STRERROR_R=1 )