ndicapi 3.7.2__tar.gz → 3.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ndicapi-3.7.2 → ndicapi-3.7.3}/CMakeLists.txt +152 -152
- {ndicapi-3.7.2 → ndicapi-3.7.3}/LICENSE +21 -21
- {ndicapi-3.7.2 → ndicapi-3.7.3}/MANIFEST.in +8 -8
- {ndicapi-3.7.2/ndicapi.egg-info → ndicapi-3.7.3}/PKG-INFO +60 -51
- {ndicapi-3.7.2 → ndicapi-3.7.3}/README.md +36 -36
- {ndicapi-3.7.2 → ndicapi-3.7.3}/README.pypi.md +21 -21
- {ndicapi-3.7.2 → ndicapi-3.7.3/ndicapi.egg-info}/PKG-INFO +60 -51
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi.h +2393 -2393
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapiConfig.cmake.in +20 -20
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapiExport.h +27 -27
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapiExport.h.in +27 -27
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_math.cxx +294 -294
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_math.h +126 -126
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_serial.cxx +57 -57
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_serial.h +257 -257
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_serial_apple.cxx +396 -396
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_serial_unix.cxx +474 -474
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_serial_win32.cxx +430 -430
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_socket.cxx +28 -28
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_socket.h +113 -113
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_socket_apple.cxx +169 -169
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_socket_unix.cxx +165 -165
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_socket_win32.cxx +169 -169
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_thread.cxx +272 -272
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi_thread.h +103 -103
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapimodule.cxx +2068 -1983
- {ndicapi-3.7.2 → ndicapi-3.7.3}/setup.cfg +4 -4
- {ndicapi-3.7.2 → ndicapi-3.7.3}/setup.py +65 -65
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi.cxx +0 -0
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi.egg-info/SOURCES.txt +0 -0
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi.egg-info/dependency_links.txt +0 -0
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapi.egg-info/top_level.txt +0 -0
- {ndicapi-3.7.2 → ndicapi-3.7.3}/ndicapiConfigVersion.cmake.in +0 -0
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
PROJECT(ndicapi)
|
|
2
|
-
CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0)
|
|
3
|
-
|
|
4
|
-
SET(ndicapi_VERSION 3.7.
|
|
5
|
-
|
|
6
|
-
# --------------------------------------------------------------------------
|
|
7
|
-
# Configure output paths for libraries and executables.
|
|
8
|
-
IF(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
|
9
|
-
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
|
10
|
-
ENDIF()
|
|
11
|
-
|
|
12
|
-
IF(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
|
|
13
|
-
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
|
14
|
-
ENDIF()
|
|
15
|
-
|
|
16
|
-
IF(NOT DEFINED CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
|
|
17
|
-
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/share")
|
|
18
|
-
ENDIF()
|
|
19
|
-
|
|
20
|
-
IF(NOT DEFINED BUILD_SHARED_LIBS)
|
|
21
|
-
SET(BUILD_SHARED_LIBS ON)
|
|
22
|
-
ENDIF()
|
|
23
|
-
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ${BUILD_SHARED_LIBS})
|
|
24
|
-
|
|
25
|
-
# --------------------------------------------------------------------------
|
|
26
|
-
# Export variables
|
|
27
|
-
SET(_targets ndicapi)
|
|
28
|
-
|
|
29
|
-
# --------------------------------------------------------------------------
|
|
30
|
-
# Configure options
|
|
31
|
-
OPTION(ndicapi_BUILD_APPLICATIONS "Build applications." OFF)
|
|
32
|
-
|
|
33
|
-
# --------------------------------------------------------------------------
|
|
34
|
-
# Configure library
|
|
35
|
-
SET(${PROJECT_NAME}_INCLUDE_DIRS
|
|
36
|
-
${CMAKE_CURRENT_SOURCE_DIR}
|
|
37
|
-
${CMAKE_CURRENT_BINARY_DIR}
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
SET(${PROJECT_NAME}_SRCS
|
|
41
|
-
ndicapi.cxx
|
|
42
|
-
ndicapi_math.cxx
|
|
43
|
-
ndicapi_serial.cxx
|
|
44
|
-
ndicapi_thread.cxx
|
|
45
|
-
ndicapi_socket.cxx
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
CONFIGURE_FILE(ndicapiExport.h.in "${CMAKE_CURRENT_BINARY_DIR}/ndicapiExport.h" @ONLY)
|
|
49
|
-
|
|
50
|
-
SET(${PROJECT_NAME}_HDRS
|
|
51
|
-
ndicapi_math.h
|
|
52
|
-
ndicapi_thread.h
|
|
53
|
-
ndicapi_serial.h
|
|
54
|
-
ndicapi.h
|
|
55
|
-
ndicapi_socket.h
|
|
56
|
-
${CMAKE_CURRENT_BINARY_DIR}/ndicapiExport.h
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
OPTION(BUILD_PYTHON "Ensure the python module will build." OFF)
|
|
60
|
-
IF(BUILD_PYTHON)
|
|
61
|
-
IF(NOT BUILD_SHARED_LIBS)
|
|
62
|
-
MESSAGE(FATAL_ERROR
|
|
63
|
-
"The Python extension only works with shared libraries"
|
|
64
|
-
" (DLLs on Windows). Please enable building as a"
|
|
65
|
-
" shared library (CMake option BUILD_SHARED_LIBS)."
|
|
66
|
-
)
|
|
67
|
-
ENDIF()
|
|
68
|
-
SET(SETUP_PY_FILEPATH ${CMAKE_CURRENT_SOURCE_DIR}/setup.py)
|
|
69
|
-
CONFIGURE_FILE(
|
|
70
|
-
${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
|
|
71
|
-
${SETUP_PY_FILEPATH}
|
|
72
|
-
)
|
|
73
|
-
MESSAGE(
|
|
74
|
-
"Successfully generated ${SETUP_PY_FILEPATH} for the Python"
|
|
75
|
-
" extension module. To install the Python extension module:"
|
|
76
|
-
"\n\t0) Install the C++ library: make && make install"
|
|
77
|
-
" (might need admin access)"
|
|
78
|
-
"\n\t1) Go to ${CMAKE_CURRENT_SOURCE_DIR}"
|
|
79
|
-
"\n\t2) Build and install the Python extension:"
|
|
80
|
-
" python setup.py install (might require admin access)"
|
|
81
|
-
)
|
|
82
|
-
ENDIF()
|
|
83
|
-
|
|
84
|
-
FIND_PACKAGE(Threads)
|
|
85
|
-
LIST(APPEND ${PROJECT_NAME}_LIBS
|
|
86
|
-
${CMAKE_THREAD_LIBS_INIT}
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
# macro for CXX_STANDARD
|
|
90
|
-
SET(NDICAPI_CXX_STANDARD 11)
|
|
91
|
-
|
|
92
|
-
ADD_LIBRARY(${PROJECT_NAME} ${${PROJECT_NAME}_SRCS} ${${PROJECT_NAME}_HDRS})
|
|
93
|
-
TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ${${PROJECT_NAME}_LIBS})
|
|
94
|
-
SET_PROPERTY(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD ${NDICAPI_CXX_STANDARD})
|
|
95
|
-
IF(NOT WIN32)
|
|
96
|
-
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
|
|
97
|
-
ENDIF()
|
|
98
|
-
target_include_directories(${PROJECT_NAME} PUBLIC ${${PROJECT_NAME}_INCLUDE_DIRS})
|
|
99
|
-
|
|
100
|
-
IF(MSVC)
|
|
101
|
-
target_link_libraries(${PROJECT_NAME} PUBLIC wsock32 ws2_32)
|
|
102
|
-
ENDIF()
|
|
103
|
-
|
|
104
|
-
INSTALL(TARGETS ${PROJECT_NAME} EXPORT ndicapi
|
|
105
|
-
RUNTIME DESTINATION bin COMPONENT RuntimeLibraries
|
|
106
|
-
LIBRARY DESTINATION lib COMPONENT RuntimeLibraries
|
|
107
|
-
ARCHIVE DESTINATION lib COMPONENT Development
|
|
108
|
-
)
|
|
109
|
-
INSTALL(FILES ${${PROJECT_NAME}_HDRS}
|
|
110
|
-
DESTINATION include COMPONENT Development
|
|
111
|
-
)
|
|
112
|
-
GET_TARGET_PROPERTY(_library_type ndicapi TYPE)
|
|
113
|
-
IF(${_library_type} STREQUAL SHARED_LIBRARY AND MSVC)
|
|
114
|
-
INSTALL(FILES "$<TARGET_PDB_FILE:ndicapi>" OPTIONAL
|
|
115
|
-
DESTINATION "bin" COMPONENT RuntimeLibraries
|
|
116
|
-
)
|
|
117
|
-
ENDIF()
|
|
118
|
-
|
|
119
|
-
#-----------------------------------------------------------------------------
|
|
120
|
-
# CMake target details
|
|
121
|
-
SET(${PROJECT_NAME}_TARGETS_FILE "${CMAKE_CURRENT_BINARY_DIR}/ndicapiTargets.cmake")
|
|
122
|
-
SET(${PROJECT_NAME}_LIBRARIES ndicapi)
|
|
123
|
-
IF(BUILD_SHARED_LIBS)
|
|
124
|
-
SET(CLEAR ${PROJECT_NAME}_STATIC)
|
|
125
|
-
ELSE()
|
|
126
|
-
SET(${PROJECT_NAME}_STATIC ON)
|
|
127
|
-
ENDIF()
|
|
128
|
-
|
|
129
|
-
IF(ndicapi_BUILD_APPLICATIONS)
|
|
130
|
-
ADD_EXECUTABLE(ndiBasicExample Applications/ndiBasicExample.cxx)
|
|
131
|
-
TARGET_LINK_LIBRARIES(ndiBasicExample PUBLIC ndicapi)
|
|
132
|
-
SET_PROPERTY(TARGET ndiBasicExample PROPERTY CXX_STANDARD ${NDICAPI_CXX_STANDARD})
|
|
133
|
-
LIST(APPEND _targets ndiBasicExample)
|
|
134
|
-
ENDIF()
|
|
135
|
-
|
|
136
|
-
export(TARGETS ${_targets}
|
|
137
|
-
FILE ${ndicapi_TARGETS_FILE}
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
CONFIGURE_FILE(ndicapiConfig.cmake.in
|
|
141
|
-
"${CMAKE_CURRENT_BINARY_DIR}/ndicapiConfig.cmake" @ONLY)
|
|
142
|
-
|
|
143
|
-
CONFIGURE_FILE(ndicapiConfigVersion.cmake.in
|
|
144
|
-
"${CMAKE_CURRENT_BINARY_DIR}/ndicapiConfigVersion.cmake" @ONLY)
|
|
145
|
-
|
|
146
|
-
# Enable building of python module, configure the export file in the source directory as well
|
|
147
|
-
CONFIGURE_FILE(ndicapiExport.h.in
|
|
148
|
-
"${CMAKE_CURRENT_SOURCE_DIR}/ndicapiExport.h" @ONLY)
|
|
149
|
-
|
|
150
|
-
# Export the package for use from the build-tree
|
|
151
|
-
# (this registers the build-tree with a global CMake-registry)
|
|
152
|
-
export(PACKAGE ndicapi)
|
|
1
|
+
PROJECT(ndicapi)
|
|
2
|
+
CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0)
|
|
3
|
+
|
|
4
|
+
SET(ndicapi_VERSION 3.7.3)
|
|
5
|
+
|
|
6
|
+
# --------------------------------------------------------------------------
|
|
7
|
+
# Configure output paths for libraries and executables.
|
|
8
|
+
IF(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
|
9
|
+
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
|
10
|
+
ENDIF()
|
|
11
|
+
|
|
12
|
+
IF(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
|
|
13
|
+
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
|
14
|
+
ENDIF()
|
|
15
|
+
|
|
16
|
+
IF(NOT DEFINED CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
|
|
17
|
+
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/share")
|
|
18
|
+
ENDIF()
|
|
19
|
+
|
|
20
|
+
IF(NOT DEFINED BUILD_SHARED_LIBS)
|
|
21
|
+
SET(BUILD_SHARED_LIBS ON)
|
|
22
|
+
ENDIF()
|
|
23
|
+
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ${BUILD_SHARED_LIBS})
|
|
24
|
+
|
|
25
|
+
# --------------------------------------------------------------------------
|
|
26
|
+
# Export variables
|
|
27
|
+
SET(_targets ndicapi)
|
|
28
|
+
|
|
29
|
+
# --------------------------------------------------------------------------
|
|
30
|
+
# Configure options
|
|
31
|
+
OPTION(ndicapi_BUILD_APPLICATIONS "Build applications." OFF)
|
|
32
|
+
|
|
33
|
+
# --------------------------------------------------------------------------
|
|
34
|
+
# Configure library
|
|
35
|
+
SET(${PROJECT_NAME}_INCLUDE_DIRS
|
|
36
|
+
${CMAKE_CURRENT_SOURCE_DIR}
|
|
37
|
+
${CMAKE_CURRENT_BINARY_DIR}
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
SET(${PROJECT_NAME}_SRCS
|
|
41
|
+
ndicapi.cxx
|
|
42
|
+
ndicapi_math.cxx
|
|
43
|
+
ndicapi_serial.cxx
|
|
44
|
+
ndicapi_thread.cxx
|
|
45
|
+
ndicapi_socket.cxx
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
CONFIGURE_FILE(ndicapiExport.h.in "${CMAKE_CURRENT_BINARY_DIR}/ndicapiExport.h" @ONLY)
|
|
49
|
+
|
|
50
|
+
SET(${PROJECT_NAME}_HDRS
|
|
51
|
+
ndicapi_math.h
|
|
52
|
+
ndicapi_thread.h
|
|
53
|
+
ndicapi_serial.h
|
|
54
|
+
ndicapi.h
|
|
55
|
+
ndicapi_socket.h
|
|
56
|
+
${CMAKE_CURRENT_BINARY_DIR}/ndicapiExport.h
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
OPTION(BUILD_PYTHON "Ensure the python module will build." OFF)
|
|
60
|
+
IF(BUILD_PYTHON)
|
|
61
|
+
IF(NOT BUILD_SHARED_LIBS)
|
|
62
|
+
MESSAGE(FATAL_ERROR
|
|
63
|
+
"The Python extension only works with shared libraries"
|
|
64
|
+
" (DLLs on Windows). Please enable building as a"
|
|
65
|
+
" shared library (CMake option BUILD_SHARED_LIBS)."
|
|
66
|
+
)
|
|
67
|
+
ENDIF()
|
|
68
|
+
SET(SETUP_PY_FILEPATH ${CMAKE_CURRENT_SOURCE_DIR}/setup.py)
|
|
69
|
+
CONFIGURE_FILE(
|
|
70
|
+
${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
|
|
71
|
+
${SETUP_PY_FILEPATH}
|
|
72
|
+
)
|
|
73
|
+
MESSAGE(
|
|
74
|
+
"Successfully generated ${SETUP_PY_FILEPATH} for the Python"
|
|
75
|
+
" extension module. To install the Python extension module:"
|
|
76
|
+
"\n\t0) Install the C++ library: make && make install"
|
|
77
|
+
" (might need admin access)"
|
|
78
|
+
"\n\t1) Go to ${CMAKE_CURRENT_SOURCE_DIR}"
|
|
79
|
+
"\n\t2) Build and install the Python extension:"
|
|
80
|
+
" python setup.py install (might require admin access)"
|
|
81
|
+
)
|
|
82
|
+
ENDIF()
|
|
83
|
+
|
|
84
|
+
FIND_PACKAGE(Threads)
|
|
85
|
+
LIST(APPEND ${PROJECT_NAME}_LIBS
|
|
86
|
+
${CMAKE_THREAD_LIBS_INIT}
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
# macro for CXX_STANDARD
|
|
90
|
+
SET(NDICAPI_CXX_STANDARD 11)
|
|
91
|
+
|
|
92
|
+
ADD_LIBRARY(${PROJECT_NAME} ${${PROJECT_NAME}_SRCS} ${${PROJECT_NAME}_HDRS})
|
|
93
|
+
TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ${${PROJECT_NAME}_LIBS})
|
|
94
|
+
SET_PROPERTY(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD ${NDICAPI_CXX_STANDARD})
|
|
95
|
+
IF(NOT WIN32)
|
|
96
|
+
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
|
|
97
|
+
ENDIF()
|
|
98
|
+
target_include_directories(${PROJECT_NAME} PUBLIC ${${PROJECT_NAME}_INCLUDE_DIRS})
|
|
99
|
+
|
|
100
|
+
IF(MSVC)
|
|
101
|
+
target_link_libraries(${PROJECT_NAME} PUBLIC wsock32 ws2_32)
|
|
102
|
+
ENDIF()
|
|
103
|
+
|
|
104
|
+
INSTALL(TARGETS ${PROJECT_NAME} EXPORT ndicapi
|
|
105
|
+
RUNTIME DESTINATION bin COMPONENT RuntimeLibraries
|
|
106
|
+
LIBRARY DESTINATION lib COMPONENT RuntimeLibraries
|
|
107
|
+
ARCHIVE DESTINATION lib COMPONENT Development
|
|
108
|
+
)
|
|
109
|
+
INSTALL(FILES ${${PROJECT_NAME}_HDRS}
|
|
110
|
+
DESTINATION include COMPONENT Development
|
|
111
|
+
)
|
|
112
|
+
GET_TARGET_PROPERTY(_library_type ndicapi TYPE)
|
|
113
|
+
IF(${_library_type} STREQUAL SHARED_LIBRARY AND MSVC)
|
|
114
|
+
INSTALL(FILES "$<TARGET_PDB_FILE:ndicapi>" OPTIONAL
|
|
115
|
+
DESTINATION "bin" COMPONENT RuntimeLibraries
|
|
116
|
+
)
|
|
117
|
+
ENDIF()
|
|
118
|
+
|
|
119
|
+
#-----------------------------------------------------------------------------
|
|
120
|
+
# CMake target details
|
|
121
|
+
SET(${PROJECT_NAME}_TARGETS_FILE "${CMAKE_CURRENT_BINARY_DIR}/ndicapiTargets.cmake")
|
|
122
|
+
SET(${PROJECT_NAME}_LIBRARIES ndicapi)
|
|
123
|
+
IF(BUILD_SHARED_LIBS)
|
|
124
|
+
SET(CLEAR ${PROJECT_NAME}_STATIC)
|
|
125
|
+
ELSE()
|
|
126
|
+
SET(${PROJECT_NAME}_STATIC ON)
|
|
127
|
+
ENDIF()
|
|
128
|
+
|
|
129
|
+
IF(ndicapi_BUILD_APPLICATIONS)
|
|
130
|
+
ADD_EXECUTABLE(ndiBasicExample Applications/ndiBasicExample.cxx)
|
|
131
|
+
TARGET_LINK_LIBRARIES(ndiBasicExample PUBLIC ndicapi)
|
|
132
|
+
SET_PROPERTY(TARGET ndiBasicExample PROPERTY CXX_STANDARD ${NDICAPI_CXX_STANDARD})
|
|
133
|
+
LIST(APPEND _targets ndiBasicExample)
|
|
134
|
+
ENDIF()
|
|
135
|
+
|
|
136
|
+
export(TARGETS ${_targets}
|
|
137
|
+
FILE ${ndicapi_TARGETS_FILE}
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
CONFIGURE_FILE(ndicapiConfig.cmake.in
|
|
141
|
+
"${CMAKE_CURRENT_BINARY_DIR}/ndicapiConfig.cmake" @ONLY)
|
|
142
|
+
|
|
143
|
+
CONFIGURE_FILE(ndicapiConfigVersion.cmake.in
|
|
144
|
+
"${CMAKE_CURRENT_BINARY_DIR}/ndicapiConfigVersion.cmake" @ONLY)
|
|
145
|
+
|
|
146
|
+
# Enable building of python module, configure the export file in the source directory as well
|
|
147
|
+
CONFIGURE_FILE(ndicapiExport.h.in
|
|
148
|
+
"${CMAKE_CURRENT_SOURCE_DIR}/ndicapiExport.h" @ONLY)
|
|
149
|
+
|
|
150
|
+
# Export the package for use from the build-tree
|
|
151
|
+
# (this registers the build-tree with a global CMake-registry)
|
|
152
|
+
export(PACKAGE ndicapi)
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017 PLUS Toolkit
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 PLUS Toolkit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
include *.cxx
|
|
2
|
-
include *.h
|
|
3
|
-
include README.pypi.md
|
|
4
|
-
include ndicapiExport.h.in
|
|
5
|
-
include CMakeLists.txt
|
|
6
|
-
include ndicapiConfig.cmake.in
|
|
7
|
-
include ndicapiConfigVersion.cmake.in
|
|
8
|
-
include ndicapiExport.h.in
|
|
1
|
+
include *.cxx
|
|
2
|
+
include *.h
|
|
3
|
+
include README.pypi.md
|
|
4
|
+
include ndicapiExport.h.in
|
|
5
|
+
include CMakeLists.txt
|
|
6
|
+
include ndicapiConfig.cmake.in
|
|
7
|
+
include ndicapiConfigVersion.cmake.in
|
|
8
|
+
include ndicapiExport.h.in
|
|
@@ -1,51 +1,60 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name: ndicapi
|
|
3
|
-
Version: 3.7.
|
|
4
|
-
Summary: This package allows interfacing with NDI tracking devices
|
|
5
|
-
Home-page: https://github.com/SciKit-Surgery/ndicapi
|
|
6
|
-
Maintainer: Stephen Thompson
|
|
7
|
-
Maintainer-email: s.thompson@ucl.ac.uk
|
|
8
|
-
License: MIT
|
|
9
|
-
Classifier: Development Status :: 3 - Alpha
|
|
10
|
-
Classifier: Environment :: Console
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Intended Audience :: Education
|
|
13
|
-
Classifier: Intended Audience :: Information Technology
|
|
14
|
-
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
-
Classifier: Operating System :: MacOS
|
|
17
|
-
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
-
Classifier: Operating System :: POSIX
|
|
19
|
-
Classifier: Operating System :: Unix
|
|
20
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
23
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
24
|
-
Classifier: Programming Language :: C
|
|
25
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
26
|
-
Classifier: Topic :: Scientific/Engineering
|
|
27
|
-
Classifier: Topic :: System :: Hardware
|
|
28
|
-
Description-Content-Type: text/markdown
|
|
29
|
-
License-File: LICENSE
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ndicapi
|
|
3
|
+
Version: 3.7.3
|
|
4
|
+
Summary: This package allows interfacing with NDI tracking devices
|
|
5
|
+
Home-page: https://github.com/SciKit-Surgery/ndicapi
|
|
6
|
+
Maintainer: Stephen Thompson
|
|
7
|
+
Maintainer-email: s.thompson@ucl.ac.uk
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Intended Audience :: Education
|
|
13
|
+
Classifier: Intended Audience :: Information Technology
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX
|
|
19
|
+
Classifier: Operating System :: Unix
|
|
20
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
24
|
+
Classifier: Programming Language :: C
|
|
25
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering
|
|
27
|
+
Classifier: Topic :: System :: Hardware
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: license
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
Dynamic: maintainer
|
|
37
|
+
Dynamic: maintainer-email
|
|
38
|
+
Dynamic: summary
|
|
39
|
+
|
|
40
|
+
# History
|
|
41
|
+
* Program: NDI Combined API C Interface Library
|
|
42
|
+
* Creator: David Gobbi
|
|
43
|
+
* Language: English
|
|
44
|
+
* Authors:
|
|
45
|
+
* David Gobbi
|
|
46
|
+
* Andras Lasso <lassoan@queensu.ca>
|
|
47
|
+
* Adam Rankin <arankin@robarts.ca>
|
|
48
|
+
* Stephen Thompson <s.thompson@ucl.ac.uk>
|
|
49
|
+
|
|
50
|
+
# Overview
|
|
51
|
+
These are binary python wheels of the PlusToolKits's ndicapi library (https://github.com/PlusToolkit/ndicapi).
|
|
52
|
+
The CI scripts where developed on and hosted by (https://github.com/scikit-surgery/ndicapi).
|
|
53
|
+
|
|
54
|
+
This package provides provides a straightforward Python interface to AURORA, POLARIS, and VEGA systems manufactured by Northern Digital Inc. This library is provided by the Plus library, and is not supported by Northern Digital Inc.
|
|
55
|
+
|
|
56
|
+
## Acknowledgments
|
|
57
|
+
|
|
58
|
+
The implementation of continuous integration and deployment was Supported by the [Wellcome Trust](https://wellcome.ac.uk/) and the [EPSRC](https://www.epsrc.ac.uk/) as part of the [Wellcome Centre for Interventional and Surgical Sciences](http://www.ucl.ac.uk/weiss).
|
|
59
|
+
The ndicapi library was developed as part of the [PLUS Toolkit](https://plustoolkit.github.io/).
|
|
60
|
+
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
-[](https://github.com/scikit-surgery/ndicapi/actions)
|
|
2
|
-
|
|
3
|
-
# History
|
|
4
|
-
* Program: NDI Combined API C Interface Library
|
|
5
|
-
* Creator: David Gobbi
|
|
6
|
-
* Language: English
|
|
7
|
-
* Authors:
|
|
8
|
-
* David Gobbi
|
|
9
|
-
* Andras Lasso <lassoan@queensu.ca>
|
|
10
|
-
* Adam Rankin <arankin@robarts.ca>
|
|
11
|
-
* Stephen Thompson <s.thompson@ucl.ac.uk>
|
|
12
|
-
|
|
13
|
-
# Overview
|
|
14
|
-
|
|
15
|
-
This package provides a portable C library that provides a straightforward interface to AURORA, POLARIS, and VEGA systems manufactured by Northern Digital Inc. This library is provided by the Plus library, and is not supported by Northern Digital Inc.
|
|
16
|
-
|
|
17
|
-
This fork implements continuous integration and deployment of binary Python wheels to PyPi. Otherwise it should remain identical to the upstream project.
|
|
18
|
-
|
|
19
|
-
## Building
|
|
20
|
-
Building and deployment should be handled automatically using github actions. For details see .github/workflows/ci.yml
|
|
21
|
-
|
|
22
|
-
## Contents
|
|
23
|
-
The main contents of this package are as follows:
|
|
24
|
-
|
|
25
|
-
1) A C library (libndicapi.a, ndicapi.lib/dll) that provides a set of C functions for communicating with an NDI device via the NDI Combined API. The documentation for this library is provided in the ndicapi_html directory.
|
|
26
|
-
|
|
27
|
-
2) Two C++ header files (ndicapi.h and ndicapi_math.h) that provide and interface, via libndicapi.a, to an NDI device via the NDICAPI Serial Communications API that predated the Combined API. Documentation is provided in the polaris_html directory.
|
|
28
|
-
|
|
29
|
-
4) A pythoninterface to the ndicapi library. However, only the original POLARIS API is supported through python. The full ndicapi interface is not yet supported.
|
|
30
|
-
|
|
31
|
-
## Acknowledgments
|
|
32
|
-
|
|
33
|
-
The implementation of continuous integration and deployment was Supported by the [Wellcome Trust](https://wellcome.ac.uk/) and the [EPSRC](https://www.epsrc.ac.uk/) as part of the [Wellcome Centre for Interventional and Surgical Sciences](http://www.ucl.ac.uk/weiss).
|
|
34
|
-
The ndicapi library was developed as part of the [PLUS Toolkit](https://plustoolkit.github.io/).
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
-[](https://github.com/scikit-surgery/ndicapi/actions)
|
|
2
|
+
|
|
3
|
+
# History
|
|
4
|
+
* Program: NDI Combined API C Interface Library
|
|
5
|
+
* Creator: David Gobbi
|
|
6
|
+
* Language: English
|
|
7
|
+
* Authors:
|
|
8
|
+
* David Gobbi
|
|
9
|
+
* Andras Lasso <lassoan@queensu.ca>
|
|
10
|
+
* Adam Rankin <arankin@robarts.ca>
|
|
11
|
+
* Stephen Thompson <s.thompson@ucl.ac.uk>
|
|
12
|
+
|
|
13
|
+
# Overview
|
|
14
|
+
|
|
15
|
+
This package provides a portable C library that provides a straightforward interface to AURORA, POLARIS, and VEGA systems manufactured by Northern Digital Inc. This library is provided by the Plus library, and is not supported by Northern Digital Inc.
|
|
16
|
+
|
|
17
|
+
This fork implements continuous integration and deployment of binary Python wheels to PyPi. Otherwise it should remain identical to the upstream project.
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
Building and deployment should be handled automatically using github actions. For details see .github/workflows/ci.yml
|
|
21
|
+
|
|
22
|
+
## Contents
|
|
23
|
+
The main contents of this package are as follows:
|
|
24
|
+
|
|
25
|
+
1) A C library (libndicapi.a, ndicapi.lib/dll) that provides a set of C functions for communicating with an NDI device via the NDI Combined API. The documentation for this library is provided in the ndicapi_html directory.
|
|
26
|
+
|
|
27
|
+
2) Two C++ header files (ndicapi.h and ndicapi_math.h) that provide and interface, via libndicapi.a, to an NDI device via the NDICAPI Serial Communications API that predated the Combined API. Documentation is provided in the polaris_html directory.
|
|
28
|
+
|
|
29
|
+
4) A pythoninterface to the ndicapi library. However, only the original POLARIS API is supported through python. The full ndicapi interface is not yet supported.
|
|
30
|
+
|
|
31
|
+
## Acknowledgments
|
|
32
|
+
|
|
33
|
+
The implementation of continuous integration and deployment was Supported by the [Wellcome Trust](https://wellcome.ac.uk/) and the [EPSRC](https://www.epsrc.ac.uk/) as part of the [Wellcome Centre for Interventional and Surgical Sciences](http://www.ucl.ac.uk/weiss).
|
|
34
|
+
The ndicapi library was developed as part of the [PLUS Toolkit](https://plustoolkit.github.io/).
|
|
35
|
+
|
|
36
|
+
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# History
|
|
2
|
-
* Program: NDI Combined API C Interface Library
|
|
3
|
-
* Creator: David Gobbi
|
|
4
|
-
* Language: English
|
|
5
|
-
* Authors:
|
|
6
|
-
* David Gobbi
|
|
7
|
-
* Andras Lasso <lassoan@queensu.ca>
|
|
8
|
-
* Adam Rankin <arankin@robarts.ca>
|
|
9
|
-
* Stephen Thompson <s.thompson@ucl.ac.uk>
|
|
10
|
-
|
|
11
|
-
# Overview
|
|
12
|
-
These are binary python wheels of the PlusToolKits's ndicapi library (https://github.com/PlusToolkit/ndicapi).
|
|
13
|
-
The CI scripts where developed on and hosted by (https://github.com/scikit-surgery/ndicapi).
|
|
14
|
-
|
|
15
|
-
This package provides provides a straightforward Python interface to AURORA, POLARIS, and VEGA systems manufactured by Northern Digital Inc. This library is provided by the Plus library, and is not supported by Northern Digital Inc.
|
|
16
|
-
|
|
17
|
-
## Acknowledgments
|
|
18
|
-
|
|
19
|
-
The implementation of continuous integration and deployment was Supported by the [Wellcome Trust](https://wellcome.ac.uk/) and the [EPSRC](https://www.epsrc.ac.uk/) as part of the [Wellcome Centre for Interventional and Surgical Sciences](http://www.ucl.ac.uk/weiss).
|
|
20
|
-
The ndicapi library was developed as part of the [PLUS Toolkit](https://plustoolkit.github.io/).
|
|
21
|
-
|
|
1
|
+
# History
|
|
2
|
+
* Program: NDI Combined API C Interface Library
|
|
3
|
+
* Creator: David Gobbi
|
|
4
|
+
* Language: English
|
|
5
|
+
* Authors:
|
|
6
|
+
* David Gobbi
|
|
7
|
+
* Andras Lasso <lassoan@queensu.ca>
|
|
8
|
+
* Adam Rankin <arankin@robarts.ca>
|
|
9
|
+
* Stephen Thompson <s.thompson@ucl.ac.uk>
|
|
10
|
+
|
|
11
|
+
# Overview
|
|
12
|
+
These are binary python wheels of the PlusToolKits's ndicapi library (https://github.com/PlusToolkit/ndicapi).
|
|
13
|
+
The CI scripts where developed on and hosted by (https://github.com/scikit-surgery/ndicapi).
|
|
14
|
+
|
|
15
|
+
This package provides provides a straightforward Python interface to AURORA, POLARIS, and VEGA systems manufactured by Northern Digital Inc. This library is provided by the Plus library, and is not supported by Northern Digital Inc.
|
|
16
|
+
|
|
17
|
+
## Acknowledgments
|
|
18
|
+
|
|
19
|
+
The implementation of continuous integration and deployment was Supported by the [Wellcome Trust](https://wellcome.ac.uk/) and the [EPSRC](https://www.epsrc.ac.uk/) as part of the [Wellcome Centre for Interventional and Surgical Sciences](http://www.ucl.ac.uk/weiss).
|
|
20
|
+
The ndicapi library was developed as part of the [PLUS Toolkit](https://plustoolkit.github.io/).
|
|
21
|
+
|