From 9b7f943969e17273ac9bd78bb238ffbea3865993 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 20 Aug 2024 23:21:06 +0200 Subject: Support building libsamba.so for unittests Unittests still fail as there is no samba server to talk to (step 2). --- libs/samba/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libs/samba/CMakeLists.txt') diff --git a/libs/samba/CMakeLists.txt b/libs/samba/CMakeLists.txt index 66f6cd7..d47113a 100644 --- a/libs/samba/CMakeLists.txt +++ b/libs/samba/CMakeLists.txt @@ -20,6 +20,13 @@ include(cmake/ConfigureChecks.cmake) add_subdirectory(libsmb2/lib) +if (ANDROID) + find_library(log-lib log) +else() + find_package(JNI) + include_directories(${JNI_INCLUDE_DIRS}) +endif() + add_library( samba SHARED @@ -28,6 +35,4 @@ add_library( src/main/cpp/samba.cpp ) -find_library(log-lib log) - target_link_libraries(samba smb2 ${log-lib}) -- cgit v1.2.3-70-g09d2