mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
usb-serial-for-android: Implementation
Implement the libdivecomputer API in Java and create C/JNI translation
layer.
[Dirk Hohndel: whitespace harmonization - yes, some of this is Java,
this still makes it much easier to read for me;
also changed the FTDI conditional compilation to make
sure we can still use that for mobile-on-desktop if
necessary]
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6ffb1e3129
commit
6e38f85ba7
7 changed files with 512 additions and 9 deletions
|
|
@ -2,12 +2,12 @@ set(PLATFORM_SRC unknown_platform.c)
|
|||
message(STATUS "system name ${CMAKE_SYSTEM_NAME}")
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(ANDROID)
|
||||
set(PLATFORM_SRC android.cpp)
|
||||
set(PLATFORM_SRC android.cpp serial_usb_android.cpp)
|
||||
else()
|
||||
set(PLATFORM_SRC unix.c)
|
||||
endif()
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||
set(PLATFORM_SRC android.cpp)
|
||||
set(PLATFORM_SRC android.cpp serial_usb_android.cpp)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(PLATFORM_SRC macos.c)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue