UNPKG

react-native-fast-io

Version:

Modern IO for React Native, built on top of Nitro and Web standards

36 lines (28 loc) 835 B
project(FastIO) cmake_minimum_required(VERSION 3.9.0) set (PACKAGE_NAME FastIO) set (CMAKE_VERBOSE_MAKEFILE ON) set (CMAKE_CXX_STANDARD 20) # Define C++ library and add all sources add_library(${PACKAGE_NAME} SHARED src/main/cpp/cpp-adapter.cpp src/main/cpp/HybridStreamFactory.cpp ../cpp/HybridCompressor.cpp ../cpp/HybridCompressorFactory.cpp ) # Add Nitrogen specs :) include(${CMAKE_SOURCE_DIR}/../nitrogen/generated/android/FastIO+autolinking.cmake) # Set up local includes include_directories( "src/main/cpp" "../cpp" ) find_package(ZLIB REQUIRED) find_library(LOG_LIB log) # Link all libraries together target_link_libraries( ${PACKAGE_NAME} ${LOG_LIB} ${ZLIB_LIBRARIES} android # <-- Android core )