-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
project(Send) | ||
project(send) | ||
cmake_minimum_required(VERSION 3.9.0) | ||
|
||
set (PACKAGE_NAME send) | ||
set (CMAKE_VERBOSE_MAKEFILE ON) | ||
set (CMAKE_CXX_STANDARD 14) | ||
set (CMAKE_CXX_STANDARD 20) | ||
|
||
add_library(candlefinance-send SHARED | ||
../cpp/candlefinance-send.cpp | ||
cpp-adapter.cpp | ||
# Define C++ library and add all sources | ||
add_library(${PACKAGE_NAME} SHARED | ||
src/main/cpp/cpp-adapter.cpp | ||
) | ||
|
||
# Specifies a path to native header files. | ||
# Add Nitrogen specs :) | ||
include(${CMAKE_SOURCE_DIR}/../nitrogen/generated/android/send+autolinking.cmake) | ||
|
||
# Set up local includes | ||
include_directories( | ||
../cpp | ||
"src/main/cpp" | ||
"../cpp" | ||
) | ||
|
||
find_library(LOG_LIB log) | ||
|
||
# Link all libraries together | ||
target_link_libraries( | ||
${PACKAGE_NAME} | ||
${LOG_LIB} | ||
android # <-- Android core | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
packages/npm/send/android/src/main/java/com/candlefinance/send/SendModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters