summaryrefslogtreecommitdiffstats
path: root/java/jni/tinyb/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'java/jni/tinyb/CMakeLists.txt')
-rw-r--r--java/jni/tinyb/CMakeLists.txt64
1 files changed, 0 insertions, 64 deletions
diff --git a/java/jni/tinyb/CMakeLists.txt b/java/jni/tinyb/CMakeLists.txt
deleted file mode 100644
index 0e98beb3..00000000
--- a/java/jni/tinyb/CMakeLists.txt
+++ /dev/null
@@ -1,64 +0,0 @@
-find_package(JNI REQUIRED)
-
-if (JNI_FOUND)
- message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}")
- message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}")
-endif (JNI_FOUND)
-
-set (tinyb_LIB_INCLUDE_DIRS
- ${PROJECT_SOURCE_DIR}/jaulib/include
- ${PROJECT_SOURCE_DIR}/api
- ${PROJECT_SOURCE_DIR}/api/direct_bt
- ${PROJECT_SOURCE_DIR}/api/tinyb
- ${PROJECT_SOURCE_DIR}/include
- ${PROJECT_SOURCE_DIR}/java/jni
-)
-
-include_directories(
- ${JNI_INCLUDE_DIRS}
- ${tinyb_LIB_INCLUDE_DIRS}
- ${JNI_HEADER_PATH}
-)
-
-set (tinyb_JNI_SRCS
- ${PROJECT_SOURCE_DIR}/jaulib/java_jni/jni/jni_mem.cxx
- ${PROJECT_SOURCE_DIR}/jaulib/java_jni/jni/helper_jni.cxx
- ${PROJECT_SOURCE_DIR}/jaulib/src/basic_types.cpp
- ${PROJECT_SOURCE_DIR}/java/jni/helper_base.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/BTFactory.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/BTUtils.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/helper_tinyb.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusAdapter.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusDevice.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusEvent.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusGattCharacteristic.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusGattDescriptor.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusGattService.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusManager.cxx
- ${PROJECT_SOURCE_DIR}/java/jni/tinyb/DBusObject.cxx
-)
-
-set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
-
-add_library (javatinyb SHARED ${tinyb_JNI_SRCS})
-target_link_libraries(javatinyb ${JNI_LIBRARIES} tinyb)
-
-if(USE_STRIP)
-add_custom_command(TARGET javatinyb POST_BUILD
- COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}javatinyb${CMAKE_SHARED_LIBRARY_SUFFIX}.${tinyb_VERSION_STRING}
- COMMENT "stripping javatinyb"
- VERBATIM
- )
-endif(USE_STRIP)
-
-set_target_properties(
- javatinyb
- PROPERTIES
- SOVERSION ${tinyb_VERSION_MAJOR}
- VERSION ${tinyb_VERSION_STRING}
-)
-
-install(TARGETS javatinyb LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
-
-add_dependencies(javatinyb tinyb direct_bt_jar)
-