jdai 0.1.0__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.
Files changed (173) hide show
  1. jdai-0.1.0/.gitattributes +2 -0
  2. jdai-0.1.0/.gitignore +12 -0
  3. jdai-0.1.0/CMakeLists.txt +156 -0
  4. jdai-0.1.0/LICENSE_BSD.txt +27 -0
  5. jdai-0.1.0/LICENSE_GPLv3.txt +699 -0
  6. jdai-0.1.0/PKG-INFO +126 -0
  7. jdai-0.1.0/README.md +550 -0
  8. jdai-0.1.0/bench/README.md +261 -0
  9. jdai-0.1.0/bench/bench_best.py +770 -0
  10. jdai-0.1.0/bench/bench_cxx_api.cpp +176 -0
  11. jdai-0.1.0/bench/bench_jdai.cpp +259 -0
  12. jdai-0.1.0/bench/bench_largebj.m +22 -0
  13. jdai-0.1.0/bench/bench_matlab.m +116 -0
  14. jdai-0.1.0/bench/bench_mmap.py +299 -0
  15. jdai-0.1.0/bench/bench_python.py +239 -0
  16. jdai-0.1.0/bench/bench_volume.py +246 -0
  17. jdai-0.1.0/bench/compare.sh +116 -0
  18. jdai-0.1.0/bench/run_best.sh +46 -0
  19. jdai-0.1.0/bench/summarize.py +103 -0
  20. jdai-0.1.0/bindings/python/CMakeLists.txt +32 -0
  21. jdai-0.1.0/bindings/python/README.md +110 -0
  22. jdai-0.1.0/bindings/python/jdai_python.cpp +2432 -0
  23. jdai-0.1.0/examples/README.md +44 -0
  24. jdai-0.1.0/examples/c/hello_jdata.c +90 -0
  25. jdai-0.1.0/examples/cpp/arrays.cpp +65 -0
  26. jdai-0.1.0/examples/cpp/hello_jdata.cpp +59 -0
  27. jdai-0.1.0/examples/cpp/user_types.cpp +69 -0
  28. jdai-0.1.0/examples/python/arrays.py +64 -0
  29. jdai-0.1.0/examples/python/hello_jdai.py +56 -0
  30. jdai-0.1.0/examples/python/tables.py +51 -0
  31. jdai-0.1.0/include/jdai/bjdata.hpp +120 -0
  32. jdai-0.1.0/include/jdai/codec.hpp +167 -0
  33. jdai-0.1.0/include/jdai/convert.hpp +821 -0
  34. jdai-0.1.0/include/jdai/jdai.h +348 -0
  35. jdai-0.1.0/include/jdai/jdai.hpp +233 -0
  36. jdai-0.1.0/include/jdai/jdata.hpp +136 -0
  37. jdai-0.1.0/include/jdai/json.hpp +84 -0
  38. jdai-0.1.0/include/jdai/mmap.hpp +93 -0
  39. jdai-0.1.0/include/jdai/stream.hpp +70 -0
  40. jdai-0.1.0/include/jdai/value.hpp +789 -0
  41. jdai-0.1.0/licensing.json +57 -0
  42. jdai-0.1.0/pyproject.toml +47 -0
  43. jdai-0.1.0/src/api.cpp +2278 -0
  44. jdai-0.1.0/src/bits.hpp +52 -0
  45. jdai-0.1.0/src/bjdata_read.cpp +1562 -0
  46. jdai-0.1.0/src/bjdata_write.cpp +1673 -0
  47. jdai-0.1.0/src/capi.cpp +697 -0
  48. jdai-0.1.0/src/capi_struct.c +75 -0
  49. jdai-0.1.0/src/chunks.cpp +293 -0
  50. jdai-0.1.0/src/chunks.hpp +61 -0
  51. jdai-0.1.0/src/deflate.cpp +2148 -0
  52. jdai-0.1.0/src/fileio.cpp +158 -0
  53. jdai-0.1.0/src/fileio.hpp +46 -0
  54. jdai-0.1.0/src/jdata.cpp +1852 -0
  55. jdai-0.1.0/src/jdata_class.cpp +544 -0
  56. jdai-0.1.0/src/json.cpp +1311 -0
  57. jdai-0.1.0/src/lzcodecs.cpp +388 -0
  58. jdai-0.1.0/src/mmap.cpp +867 -0
  59. jdai-0.1.0/src/mmap_internal.hpp +61 -0
  60. jdai-0.1.0/src/msgpack.cpp +521 -0
  61. jdai-0.1.0/src/ndops.cpp +379 -0
  62. jdai-0.1.0/src/ndops.hpp +46 -0
  63. jdai-0.1.0/src/threads.cpp +97 -0
  64. jdai-0.1.0/src/threads.hpp +22 -0
  65. jdai-0.1.0/src/value.cpp +1193 -0
  66. jdai-0.1.0/src/zmat.cpp +310 -0
  67. jdai-0.1.0/src/zstd.cpp +2572 -0
  68. jdai-0.1.0/tests/CMakeLists.txt +40 -0
  69. jdai-0.1.0/tests/check.hpp +101 -0
  70. jdai-0.1.0/tests/python/test_jdai.py +738 -0
  71. jdai-0.1.0/tests/test_api.cpp +335 -0
  72. jdai-0.1.0/tests/test_bjdata.cpp +546 -0
  73. jdai-0.1.0/tests/test_capi.c +183 -0
  74. jdai-0.1.0/tests/test_capi_jdata.c +143 -0
  75. jdai-0.1.0/tests/test_codec.cpp +418 -0
  76. jdai-0.1.0/tests/test_codec_more.cpp +739 -0
  77. jdai-0.1.0/tests/test_jdata.cpp +513 -0
  78. jdai-0.1.0/tests/test_jdata_class.cpp +484 -0
  79. jdai-0.1.0/tests/test_json.cpp +411 -0
  80. jdai-0.1.0/tests/test_mmap.cpp +299 -0
  81. jdai-0.1.0/tests/test_more.cpp +1154 -0
  82. jdai-0.1.0/tests/test_value.cpp +260 -0
  83. jdai-0.1.0/third_party/fast_float/LICENSE-APACHE +190 -0
  84. jdai-0.1.0/third_party/fast_float/LICENSE-BOOST +23 -0
  85. jdai-0.1.0/third_party/fast_float/LICENSE-MIT +27 -0
  86. jdai-0.1.0/third_party/fast_float/README.jdai.md +6 -0
  87. jdai-0.1.0/third_party/fast_float/include/fast_float/ascii_number.h +579 -0
  88. jdai-0.1.0/third_party/fast_float/include/fast_float/bigint.h +624 -0
  89. jdai-0.1.0/third_party/fast_float/include/fast_float/constexpr_feature_detect.h +46 -0
  90. jdai-0.1.0/third_party/fast_float/include/fast_float/decimal_to_binary.h +211 -0
  91. jdai-0.1.0/third_party/fast_float/include/fast_float/digit_comparison.h +455 -0
  92. jdai-0.1.0/third_party/fast_float/include/fast_float/fast_float.h +56 -0
  93. jdai-0.1.0/third_party/fast_float/include/fast_float/fast_table.h +708 -0
  94. jdai-0.1.0/third_party/fast_float/include/fast_float/float_common.h +802 -0
  95. jdai-0.1.0/third_party/fast_float/include/fast_float/parse_number.h +346 -0
  96. jdai-0.1.0/third_party/lz4/LICENSE +24 -0
  97. jdai-0.1.0/third_party/lz4/README.mima.md +6 -0
  98. jdai-0.1.0/third_party/lz4/lz4.c +2829 -0
  99. jdai-0.1.0/third_party/lz4/lz4.h +884 -0
  100. jdai-0.1.0/third_party/lz4/lz4hc.c +2192 -0
  101. jdai-0.1.0/third_party/lz4/lz4hc.h +414 -0
  102. jdai-0.1.0/third_party/lzma-sdk/7zBuf.h +35 -0
  103. jdai-0.1.0/third_party/lzma-sdk/7zCrc.c +420 -0
  104. jdai-0.1.0/third_party/lzma-sdk/7zCrc.h +28 -0
  105. jdai-0.1.0/third_party/lzma-sdk/7zCrcOpt.c +199 -0
  106. jdai-0.1.0/third_party/lzma-sdk/7zStream.c +199 -0
  107. jdai-0.1.0/third_party/lzma-sdk/7zTypes.h +597 -0
  108. jdai-0.1.0/third_party/lzma-sdk/7zVersion.h +27 -0
  109. jdai-0.1.0/third_party/lzma-sdk/7zWindows.h +107 -0
  110. jdai-0.1.0/third_party/lzma-sdk/Alloc.c +605 -0
  111. jdai-0.1.0/third_party/lzma-sdk/Alloc.h +76 -0
  112. jdai-0.1.0/third_party/lzma-sdk/Bra.c +709 -0
  113. jdai-0.1.0/third_party/lzma-sdk/Bra.h +105 -0
  114. jdai-0.1.0/third_party/lzma-sdk/Bra86.c +187 -0
  115. jdai-0.1.0/third_party/lzma-sdk/BraIA64.c +14 -0
  116. jdai-0.1.0/third_party/lzma-sdk/Compiler.h +246 -0
  117. jdai-0.1.0/third_party/lzma-sdk/CpuArch.c +970 -0
  118. jdai-0.1.0/third_party/lzma-sdk/CpuArch.h +703 -0
  119. jdai-0.1.0/third_party/lzma-sdk/Delta.c +169 -0
  120. jdai-0.1.0/third_party/lzma-sdk/Delta.h +19 -0
  121. jdai-0.1.0/third_party/lzma-sdk/LzFind.c +1746 -0
  122. jdai-0.1.0/third_party/lzma-sdk/LzFind.h +160 -0
  123. jdai-0.1.0/third_party/lzma-sdk/LzFindMt.c +1422 -0
  124. jdai-0.1.0/third_party/lzma-sdk/LzFindMt.h +114 -0
  125. jdai-0.1.0/third_party/lzma-sdk/LzFindOpt.c +578 -0
  126. jdai-0.1.0/third_party/lzma-sdk/LzHash.h +34 -0
  127. jdai-0.1.0/third_party/lzma-sdk/Lzma2Dec.c +493 -0
  128. jdai-0.1.0/third_party/lzma-sdk/Lzma2Dec.h +121 -0
  129. jdai-0.1.0/third_party/lzma-sdk/Lzma2DecMt.c +1095 -0
  130. jdai-0.1.0/third_party/lzma-sdk/Lzma2DecMt.h +81 -0
  131. jdai-0.1.0/third_party/lzma-sdk/Lzma2Enc.c +807 -0
  132. jdai-0.1.0/third_party/lzma-sdk/Lzma2Enc.h +58 -0
  133. jdai-0.1.0/third_party/lzma-sdk/LzmaDec.c +1363 -0
  134. jdai-0.1.0/third_party/lzma-sdk/LzmaDec.h +237 -0
  135. jdai-0.1.0/third_party/lzma-sdk/LzmaEnc.c +3150 -0
  136. jdai-0.1.0/third_party/lzma-sdk/LzmaEnc.h +85 -0
  137. jdai-0.1.0/third_party/lzma-sdk/MtCoder.c +604 -0
  138. jdai-0.1.0/third_party/lzma-sdk/MtCoder.h +144 -0
  139. jdai-0.1.0/third_party/lzma-sdk/MtDec.c +1124 -0
  140. jdai-0.1.0/third_party/lzma-sdk/MtDec.h +202 -0
  141. jdai-0.1.0/third_party/lzma-sdk/Precomp.h +127 -0
  142. jdai-0.1.0/third_party/lzma-sdk/README.mima.md +11 -0
  143. jdai-0.1.0/third_party/lzma-sdk/RotateDefs.h +50 -0
  144. jdai-0.1.0/third_party/lzma-sdk/Sha256.c +492 -0
  145. jdai-0.1.0/third_party/lzma-sdk/Sha256.h +86 -0
  146. jdai-0.1.0/third_party/lzma-sdk/Sha256Opt.c +451 -0
  147. jdai-0.1.0/third_party/lzma-sdk/SwapBytes.c +835 -0
  148. jdai-0.1.0/third_party/lzma-sdk/SwapBytes.h +17 -0
  149. jdai-0.1.0/third_party/lzma-sdk/Threads.c +812 -0
  150. jdai-0.1.0/third_party/lzma-sdk/Threads.h +260 -0
  151. jdai-0.1.0/third_party/lzma-sdk/Xz.c +92 -0
  152. jdai-0.1.0/third_party/lzma-sdk/Xz.h +542 -0
  153. jdai-0.1.0/third_party/lzma-sdk/XzCrc64.c +140 -0
  154. jdai-0.1.0/third_party/lzma-sdk/XzCrc64.h +26 -0
  155. jdai-0.1.0/third_party/lzma-sdk/XzCrc64Opt.c +261 -0
  156. jdai-0.1.0/third_party/lzma-sdk/XzDec.c +2876 -0
  157. jdai-0.1.0/third_party/lzma-sdk/XzEnc.c +1374 -0
  158. jdai-0.1.0/third_party/lzma-sdk/XzEnc.h +62 -0
  159. jdai-0.1.0/third_party/lzma-sdk/XzIn.c +385 -0
  160. jdai-0.1.0/third_party/ryu/LICENSE-Apache2 +201 -0
  161. jdai-0.1.0/third_party/ryu/LICENSE-Boost +23 -0
  162. jdai-0.1.0/third_party/ryu/README.jdai.md +7 -0
  163. jdai-0.1.0/third_party/ryu/ryu/common.h +114 -0
  164. jdai-0.1.0/third_party/ryu/ryu/d2s.c +509 -0
  165. jdai-0.1.0/third_party/ryu/ryu/d2s_full_table.h +367 -0
  166. jdai-0.1.0/third_party/ryu/ryu/d2s_intrinsics.h +357 -0
  167. jdai-0.1.0/third_party/ryu/ryu/d2s_small_table.h +186 -0
  168. jdai-0.1.0/third_party/ryu/ryu/digit_table.h +35 -0
  169. jdai-0.1.0/third_party/ryu/ryu/f2s.c +345 -0
  170. jdai-0.1.0/third_party/ryu/ryu/f2s_full_table.h +55 -0
  171. jdai-0.1.0/third_party/ryu/ryu/f2s_intrinsics.h +128 -0
  172. jdai-0.1.0/third_party/ryu/ryu/ryu.h +46 -0
  173. jdai-0.1.0/tools/jdaiconv.cpp +315 -0
@@ -0,0 +1,2 @@
1
+ # reference files are compared byte for byte: no line-ending conversion on checkout (Windows)
2
+ tests/reference/** -text
jdai-0.1.0/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ build/
2
+ build-*/
3
+ .cache/
4
+ compile_commands.json
5
+ *.mex
6
+ *.mexa64
7
+ *.mexw64
8
+ *.mexmaci64
9
+ *.mexmaca64
10
+ octave-workspace
11
+ __pycache__/
12
+ *.whl
@@ -0,0 +1,156 @@
1
+ cmake_minimum_required(VERSION 3.10)
2
+ project(jdai VERSION 0.1.0 LANGUAGES C CXX)
3
+
4
+ set(CMAKE_CXX_STANDARD 11)
5
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6
+ set(CMAKE_CXX_EXTENSIONS OFF)
7
+ set(CMAKE_C_STANDARD 99)
8
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
9
+ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
10
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) # the shared library's C++ and C entry points on Windows
11
+
12
+ if(MSVC)
13
+ add_compile_options(/utf-8 /bigobj)
14
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
15
+ endif()
16
+
17
+ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
18
+ set(CMAKE_BUILD_TYPE Release CACHE STRING "" FORCE)
19
+ endif()
20
+
21
+ option(JDAI_BUILD_TESTS "Build the jdai tests" ON)
22
+ option(JDAI_BUILD_TOOLS "Build the jdaiconv command line tool" ON)
23
+ option(JDAI_BUILD_SHARED "Build libjdai as a shared library too" ON)
24
+ option(JDAI_BUILD_PYTHON "Build the Python module (needs pybind11)" OFF)
25
+ option(JDAI_BUILD_BENCH "Build the benchmark (bench/)" OFF)
26
+ option(JDAI_BUILD_EXAMPLES "Build the C++ examples (examples/cpp; run by ctest with the tests)" ON)
27
+
28
+ find_package(Threads REQUIRED)
29
+
30
+ # bundled third-party C code (licensing.json): LZ4 (BSD-2-Clause), LZMA SDK (public domain),
31
+ # Ryu (Apache-2.0 or BSL-1.0); fast_float (header-only) is included by src/json.cpp
32
+ file(GLOB JDAI_LZ4_SRC ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/*.c)
33
+ file(GLOB JDAI_LZMA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lzma-sdk/*.c)
34
+ # SwapBytes.c (the SDK's byte-swap utility) is not used by the codecs, and its SIMD code needs GCC 4.9+
35
+ list(FILTER JDAI_LZMA_SRC EXCLUDE REGEX "SwapBytes\\.c$")
36
+ set(JDAI_RYU_SRC third_party/ryu/ryu/d2s.c third_party/ryu/ryu/f2s.c)
37
+ add_library(jdai_thirdparty OBJECT ${JDAI_LZ4_SRC} ${JDAI_LZMA_SRC} ${JDAI_RYU_SRC})
38
+ target_include_directories(jdai_thirdparty PRIVATE third_party/lz4 third_party/lzma-sdk third_party/ryu)
39
+ if(NOT MSVC)
40
+ target_compile_options(jdai_thirdparty PRIVATE -w)
41
+ endif()
42
+
43
+ set(JDAI_SRC
44
+ src/deflate.cpp
45
+ src/zstd.cpp
46
+ src/lzcodecs.cpp
47
+ src/zmat.cpp
48
+ src/threads.cpp
49
+ src/value.cpp
50
+ src/ndops.cpp
51
+ src/bjdata_read.cpp
52
+ src/bjdata_write.cpp
53
+ src/fileio.cpp
54
+ src/msgpack.cpp
55
+ src/json.cpp
56
+ src/chunks.cpp
57
+ src/jdata.cpp
58
+ src/mmap.cpp
59
+ src/builder.cpp
60
+ src/api.cpp
61
+ src/capi.cpp
62
+ src/jdata_class.cpp
63
+ src/capi_struct.c
64
+ )
65
+
66
+ add_library(jdai_objs OBJECT ${JDAI_SRC})
67
+ target_include_directories(jdai_objs PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
68
+ target_include_directories(jdai_objs SYSTEM PRIVATE third_party/lz4 third_party/lzma-sdk third_party/ryu third_party/fast_float/include)
69
+ if(NOT MSVC)
70
+ target_compile_options(jdai_objs PRIVATE -Wall -Wextra -pedantic)
71
+ endif()
72
+
73
+ add_library(jdai_static STATIC $<TARGET_OBJECTS:jdai_objs> $<TARGET_OBJECTS:jdai_thirdparty>)
74
+ if(MSVC)
75
+ # MSVC names a static library and a DLL's import library both jdai.lib, in the same folder: the
76
+ # shared build's import library would replace the static one, and what links jdai_static
77
+ # would then need jdai.dll at run time
78
+ set_target_properties(jdai_static PROPERTIES OUTPUT_NAME jdai_static)
79
+ else()
80
+ set_target_properties(jdai_static PROPERTIES OUTPUT_NAME jdai)
81
+ endif()
82
+ target_include_directories(jdai_static PUBLIC
83
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
84
+ target_link_libraries(jdai_static PUBLIC Threads::Threads)
85
+ add_library(jdai::jdai ALIAS jdai_static)
86
+
87
+ if(JDAI_BUILD_SHARED)
88
+ add_library(jdai_shared SHARED $<TARGET_OBJECTS:jdai_objs> $<TARGET_OBJECTS:jdai_thirdparty>)
89
+ set_target_properties(jdai_shared PROPERTIES OUTPUT_NAME jdai VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
90
+ target_include_directories(jdai_shared PUBLIC
91
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
92
+ target_link_libraries(jdai_shared PUBLIC Threads::Threads)
93
+ if(WIN32)
94
+ # data (the C interface's JData struct) is exported only when marked: functions are
95
+ # exported by CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS, data needs dllexport here, dllimport in users
96
+ target_compile_definitions(jdai_objs PRIVATE JDAI_SHARED_BUILD)
97
+ target_compile_definitions(jdai_shared INTERFACE JDAI_SHARED)
98
+ endif()
99
+ endif()
100
+
101
+ if(JDAI_BUILD_TOOLS)
102
+ add_executable(jdaiconv tools/jdaiconv.cpp)
103
+ target_link_libraries(jdaiconv PRIVATE jdai_static)
104
+ install(TARGETS jdaiconv RUNTIME DESTINATION bin)
105
+ endif()
106
+
107
+ if(JDAI_BUILD_TESTS)
108
+ enable_testing()
109
+ add_subdirectory(tests)
110
+ endif()
111
+
112
+ if(JDAI_BUILD_EXAMPLES)
113
+ foreach(e hello_jdata arrays user_types)
114
+ add_executable(example_${e} examples/cpp/${e}.cpp)
115
+ target_link_libraries(example_${e} PRIVATE jdai_static)
116
+ if(JDAI_BUILD_TESTS)
117
+ add_test(NAME example_${e} COMMAND example_${e} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
118
+ endif()
119
+ endforeach()
120
+ # the C example, as C99 (JData) and C11 (JDAI_VAL too)
121
+ foreach(std 99 11)
122
+ add_executable(example_c_hello_jdata_c${std} examples/c/hello_jdata.c)
123
+ target_link_libraries(example_c_hello_jdata_c${std} PRIVATE jdai_static)
124
+ set_target_properties(example_c_hello_jdata_c${std} PROPERTIES LINKER_LANGUAGE CXX C_STANDARD ${std} C_STANDARD_REQUIRED ON C_EXTENSIONS OFF)
125
+ if(JDAI_BUILD_TESTS)
126
+ add_test(NAME example_c_hello_jdata_c${std} COMMAND example_c_hello_jdata_c${std} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
127
+ endif()
128
+ endforeach()
129
+ endif()
130
+
131
+ if(JDAI_BUILD_PYTHON)
132
+ add_subdirectory(bindings/python)
133
+ endif()
134
+
135
+ if(JDAI_BUILD_BENCH)
136
+ add_executable(bench_jdai bench/bench_jdai.cpp)
137
+ target_link_libraries(bench_jdai PRIVATE jdai_static)
138
+ # neurojson::jdata against nlohmann/json, when its header is found (-DJDAI_NLOHMANN_INCLUDE=dir)
139
+ add_executable(bench_cxx_api bench/bench_cxx_api.cpp)
140
+ target_link_libraries(bench_cxx_api PRIVATE jdai_static)
141
+ find_path(JDAI_NLOHMANN_INCLUDE nlohmann/json.hpp)
142
+ if(JDAI_NLOHMANN_INCLUDE)
143
+ target_include_directories(bench_cxx_api SYSTEM PRIVATE ${JDAI_NLOHMANN_INCLUDE})
144
+ target_compile_definitions(bench_cxx_api PRIVATE JDAI_WITH_NLOHMANN)
145
+ endif()
146
+ endif()
147
+
148
+ if(SKBUILD)
149
+ return() # a Python wheel holds only the module
150
+ endif()
151
+
152
+ install(DIRECTORY include/jdai DESTINATION include)
153
+ install(TARGETS jdai_static ARCHIVE DESTINATION lib)
154
+ if(JDAI_BUILD_SHARED)
155
+ install(TARGETS jdai_shared LIBRARY DESTINATION lib RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
156
+ endif()
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2026 Qianqian Fang <q.fang at neu.edu>. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are
4
+ permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this list of
7
+ conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list
10
+ of conditions and the following disclaimer in the documentation and/or other materials
11
+ provided with the distribution.
12
+
13
+ 3. Neither the name of the copyright holder nor the names of its contributors may be
14
+ used to endorse or promote products derived from this software without specific
15
+ prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
18
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20
+ COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
24
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ The bundled third-party code under third_party/ keeps its own license (see licensing.json).