diff options
author | Sven Gothel <[email protected]> | 2021-08-31 04:41:54 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-08-31 04:41:54 +0200 |
commit | aef10f3cdec0fd698cfa7d913725b40d1513ce30 (patch) | |
tree | e36d6b2796e40c5d4f40e66d9cbb6b7259bd42f6 /java/jni/tinyb/CMakeLists.txt | |
parent | 99ddbcee148144b3593adf4440d3fa3d06f229ab (diff) |
Direct-BT: Remove TinyB and Cleanup Java API (1)
Starting with version 2.3, the previously refactored *TinyB* has been removed completely.
Motivation was lack of detailed Bluetooth support, inclusive increasing diversion with *Direct-BT*.
Furthermore, work is underway for `BLE slave periphal and GATT server` support and its mapping to *BlueZ D-Bus* is questionable
and would be resource intensive.
Java API changed as follows:
- Objects no more Clonable
- Removed dead unsupported code
- Removed deprecated code
- Added 'GattCharPropertySet', representing property bit mask for BTGattChar,
replacing the string array.
Diffstat (limited to 'java/jni/tinyb/CMakeLists.txt')
-rw-r--r-- | java/jni/tinyb/CMakeLists.txt | 64 |
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) - |