quasardb 3.14.2.dev1__cp311-cp311-macosx_11_0_arm64.whl → 3.14.2.dev4__cp311-cp311-macosx_11_0_arm64.whl
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.
Potentially problematic release.
This version of quasardb might be problematic. Click here for more details.
- quasardb/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
- quasardb/Makefile +20 -20
- quasardb/__init__.py +33 -4
- quasardb/cmake_install.cmake +7 -1
- quasardb/date/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
- quasardb/date/CMakeFiles/Export/a52b05f964b070ee926bcad51d3288af/dateTargets.cmake +13 -13
- quasardb/date/Makefile +20 -20
- quasardb/date/cmake_install.cmake +7 -1
- quasardb/date/dateConfigVersion.cmake +9 -2
- quasardb/date/dateTargets.cmake +4 -8
- quasardb/libqdb_api.dylib +0 -0
- quasardb/numpy/__init__.py +58 -10
- quasardb/pandas/__init__.py +58 -102
- quasardb/pybind11/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
- quasardb/pybind11/Makefile +20 -20
- quasardb/pybind11/cmake_install.cmake +7 -1
- quasardb/quasardb.cpython-311-darwin.so +0 -0
- quasardb/range-v3/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
- quasardb/range-v3/CMakeFiles/Export/d94ef200eca10a819b5858b33e808f5b/range-v3-targets.cmake +13 -13
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/DependInfo.cmake +6 -2
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/build.make +7 -4
- quasardb/range-v3/Makefile +20 -20
- quasardb/range-v3/cmake_install.cmake +19 -1
- quasardb/range-v3/range-v3-config-version.cmake +9 -2
- quasardb/range-v3/range-v3-config.cmake +4 -8
- {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/METADATA +15 -10
- quasardb-3.14.2.dev4.dist-info/RECORD +45 -0
- {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/WHEEL +1 -1
- quasardb/CMakeLists.txt +0 -510
- quasardb/batch_column.hpp +0 -80
- quasardb/batch_inserter.hpp +0 -248
- quasardb/blob.hpp +0 -150
- quasardb/cluster.cpp +0 -89
- quasardb/cluster.hpp +0 -551
- quasardb/concepts.hpp +0 -278
- quasardb/continuous.cpp +0 -149
- quasardb/continuous.hpp +0 -106
- quasardb/convert/array.hpp +0 -282
- quasardb/convert/point.hpp +0 -330
- quasardb/convert/range.hpp +0 -282
- quasardb/convert/unicode.hpp +0 -598
- quasardb/convert/util.hpp +0 -22
- quasardb/convert/value.hpp +0 -711
- quasardb/convert.hpp +0 -38
- quasardb/detail/qdb_resource.hpp +0 -129
- quasardb/detail/ts_column.hpp +0 -224
- quasardb/direct_blob.hpp +0 -108
- quasardb/direct_handle.hpp +0 -83
- quasardb/direct_integer.hpp +0 -94
- quasardb/dispatch.hpp +0 -157
- quasardb/double.hpp +0 -87
- quasardb/entry.hpp +0 -273
- quasardb/error.hpp +0 -318
- quasardb/handle.cpp +0 -29
- quasardb/handle.hpp +0 -98
- quasardb/integer.hpp +0 -88
- quasardb/logger.cpp +0 -106
- quasardb/logger.hpp +0 -228
- quasardb/masked_array.hpp +0 -651
- quasardb/metrics.cpp +0 -103
- quasardb/metrics.hpp +0 -112
- quasardb/module.cpp +0 -76
- quasardb/module.hpp +0 -24
- quasardb/node.hpp +0 -123
- quasardb/numpy.cpp +0 -6
- quasardb/numpy.hpp +0 -489
- quasardb/object_tracker.hpp +0 -283
- quasardb/options.hpp +0 -244
- quasardb/perf.hpp +0 -336
- quasardb/pytypes.hpp +0 -221
- quasardb/query.cpp +0 -420
- quasardb/query.hpp +0 -92
- quasardb/reader/ts_row.hpp +0 -281
- quasardb/reader/ts_value.hpp +0 -245
- quasardb/remove_cvref.hpp +0 -31
- quasardb/string.hpp +0 -160
- quasardb/table.cpp +0 -289
- quasardb/table.hpp +0 -325
- quasardb/table_reader.hpp +0 -220
- quasardb/tag.hpp +0 -77
- quasardb/timestamp.hpp +0 -97
- quasardb/traits.hpp +0 -619
- quasardb/ts_iterator.hpp +0 -193
- quasardb/utils/blob_deque.hpp +0 -96
- quasardb/utils/ostream.hpp +0 -17
- quasardb/utils/permutation.hpp +0 -50
- quasardb/utils/stable_sort.hpp +0 -25
- quasardb/utils/unzip_view.hpp +0 -89
- quasardb/utils.cpp +0 -28
- quasardb/utils.hpp +0 -174
- quasardb/writer.cpp +0 -534
- quasardb/writer.hpp +0 -396
- quasardb-3.14.2.dev1.dist-info/RECORD +0 -109
- {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/LICENSE.md +0 -0
- {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/top_level.txt +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Generated by CMake
|
|
2
2
|
|
|
3
3
|
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
|
4
|
-
message(FATAL_ERROR "CMake >=
|
|
4
|
+
message(FATAL_ERROR "CMake >= 3.0.0 required")
|
|
5
5
|
endif()
|
|
6
|
-
if(CMAKE_VERSION VERSION_LESS "
|
|
7
|
-
message(FATAL_ERROR "CMake >=
|
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "3.0.0")
|
|
7
|
+
message(FATAL_ERROR "CMake >= 3.0.0 required")
|
|
8
8
|
endif()
|
|
9
9
|
cmake_policy(PUSH)
|
|
10
|
-
cmake_policy(VERSION
|
|
10
|
+
cmake_policy(VERSION 3.0.0...3.29)
|
|
11
11
|
#----------------------------------------------------------------
|
|
12
12
|
# Generated CMake target import file.
|
|
13
13
|
#----------------------------------------------------------------
|
|
@@ -15,10 +15,6 @@ cmake_policy(VERSION 2.8.3...3.22)
|
|
|
15
15
|
# Commands may need to know the format version.
|
|
16
16
|
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
17
17
|
|
|
18
|
-
if(CMAKE_VERSION VERSION_LESS 3.0.0)
|
|
19
|
-
message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
|
|
20
|
-
endif()
|
|
21
|
-
|
|
22
18
|
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
|
23
19
|
set(_cmake_targets_defined "")
|
|
24
20
|
set(_cmake_targets_not_defined "")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: quasardb
|
|
3
|
-
Version: 3.14.2.
|
|
3
|
+
Version: 3.14.2.dev4
|
|
4
4
|
Summary: Python API for quasardb
|
|
5
5
|
Home-page: https://www.quasardb.net/
|
|
6
6
|
Author: quasardb SAS
|
|
@@ -14,22 +14,27 @@ Classifier: Intended Audience :: Information Technology
|
|
|
14
14
|
Classifier: Intended Audience :: Other Audience
|
|
15
15
|
Classifier: Intended Audience :: System Administrators
|
|
16
16
|
Classifier: Intended Audience :: Telecommunications Industry
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.8
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
23
|
Classifier: Topic :: Database
|
|
24
24
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
25
|
Classifier: License :: OSI Approved :: BSD License
|
|
26
26
|
License-File: LICENSE.md
|
|
27
27
|
Requires-Dist: numpy
|
|
28
28
|
Provides-Extra: pandas
|
|
29
|
-
Requires-Dist: pandas
|
|
30
|
-
Provides-Extra:
|
|
31
|
-
Requires-Dist: pytest
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
Requires-Dist: pandas; extra == "pandas"
|
|
30
|
+
Provides-Extra: test
|
|
31
|
+
Requires-Dist: pytest; extra == "test"
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: author-email
|
|
34
|
+
Dynamic: classifier
|
|
35
|
+
Dynamic: home-page
|
|
36
|
+
Dynamic: keywords
|
|
37
|
+
Dynamic: license
|
|
38
|
+
Dynamic: provides-extra
|
|
39
|
+
Dynamic: requires-dist
|
|
40
|
+
Dynamic: summary
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
quasardb/Makefile,sha256=oP0j24MZzoGlPkFwkKmI4Om2aUEb7_kOPVFWYkTAFzQ,8317
|
|
2
|
+
quasardb/__init__.py,sha256=bUq3IUkC13rfB4SIGIScDevSJ1jwB3oJbuBZVPfKt1Q,4547
|
|
3
|
+
quasardb/cmake_install.cmake,sha256=1eQ_-X3IIcaewCISVEH2YoHt51NsGzuvC0enBpIEtaw,1999
|
|
4
|
+
quasardb/firehose.py,sha256=HO0GjCDg3x4cpzVSH3KZ1AJhV8lK2HJyXr9tpfnNSGI,3492
|
|
5
|
+
quasardb/libqdb_api.dylib,sha256=L0jBOELjHYuWSeM0Y_wT3NM14E2ATY1MYz1LEpZ445c,35708768
|
|
6
|
+
quasardb/pool.py,sha256=4IFwot-U8GEHo8h86264uVTWge44bOH_TUkoVy3Hjac,8449
|
|
7
|
+
quasardb/quasardb.cpython-311-darwin.so,sha256=BEBvMzJVGZ7yF09ZPRw0Gl7jTecqSiqoZ8AaKQ85u5o,917168
|
|
8
|
+
quasardb/stats.py,sha256=DKvurzur-4c5nVPjr29_Stu9mvwCynM5gGnw0gVQlt8,7387
|
|
9
|
+
quasardb/table_cache.py,sha256=RgLOYEcgmlc5fVeOBOyjZImtYKoM1UEdzyzPc8EriQI,1507
|
|
10
|
+
quasardb/CMakeFiles/CMakeDirectoryInformation.cmake,sha256=4uv-mw5JuGJlPRH640ZqzCL9U4MBJmXZMhGoYy8qm1M,732
|
|
11
|
+
quasardb/CMakeFiles/progress.marks,sha256=micfKpFrC27mzsskJvCzIG7wdFeL5V2byU9vP-Orhqo,2
|
|
12
|
+
quasardb/date/Makefile,sha256=NYzi9GFn4ODFzdC0VTHRQgl4ocIYGSAuwopLOdqoZoA,8342
|
|
13
|
+
quasardb/date/cmake_install.cmake,sha256=-QKKXA9_uXR7TdiFZRNF-E6xsz_FA_r1JDL0nF44zzE,3580
|
|
14
|
+
quasardb/date/dateConfigVersion.cmake,sha256=rL5Cp_r_23Yu8HmjowwKIH04sxxMwdBZ7no3tr4cx14,2762
|
|
15
|
+
quasardb/date/dateTargets.cmake,sha256=UTTH7zSPDb_tkscV25dahdEEX0Bw_t2SozDUBKy7mHI,2869
|
|
16
|
+
quasardb/date/CMakeFiles/CMakeDirectoryInformation.cmake,sha256=4uv-mw5JuGJlPRH640ZqzCL9U4MBJmXZMhGoYy8qm1M,732
|
|
17
|
+
quasardb/date/CMakeFiles/progress.marks,sha256=micfKpFrC27mzsskJvCzIG7wdFeL5V2byU9vP-Orhqo,2
|
|
18
|
+
quasardb/date/CMakeFiles/Export/a52b05f964b070ee926bcad51d3288af/dateTargets.cmake,sha256=rWNkRmrNRa8_x5hIZdFw8rJ_aLoigP5fUoRmXaKSyys,4211
|
|
19
|
+
quasardb/extensions/__init__.py,sha256=FUHR0i62qt5NkOXn7eiMZrzWXo9mQNr1xVz3VSCa9QU,112
|
|
20
|
+
quasardb/extensions/writer.py,sha256=ZH6ldQrbH-DimuQTyk3mXS1OyaJIhvCmZTzFtG4hRfY,5735
|
|
21
|
+
quasardb/numpy/__init__.py,sha256=F1gVvEH1ijnm-mG9nd1Co3bNwgO2Y_2RmsmWu3yCsYk,30050
|
|
22
|
+
quasardb/pandas/__init__.py,sha256=DkEPAgxIZNinOfFaQ2xMrLiAYdJn7I618HUUQUnvPYo,14884
|
|
23
|
+
quasardb/pybind11/Makefile,sha256=kVeN5ucCmHjKq6mouILX9Rg6zmt5YvMWTxikLah52vM,8362
|
|
24
|
+
quasardb/pybind11/cmake_install.cmake,sha256=fyUA5cx1zmNdhxXCZWvLNpu4LqNSmlXdC0R8BGk-HaU,1504
|
|
25
|
+
quasardb/pybind11/CMakeFiles/CMakeDirectoryInformation.cmake,sha256=4uv-mw5JuGJlPRH640ZqzCL9U4MBJmXZMhGoYy8qm1M,732
|
|
26
|
+
quasardb/pybind11/CMakeFiles/progress.marks,sha256=micfKpFrC27mzsskJvCzIG7wdFeL5V2byU9vP-Orhqo,2
|
|
27
|
+
quasardb/range-v3/Makefile,sha256=gmxOhtNgeZCsZwS0RMau1o2EieG7xE93A7bE_eUf4Ak,9731
|
|
28
|
+
quasardb/range-v3/cmake_install.cmake,sha256=jkf_Vb0LvJZ9ZH36VsbM4XXuqxRPyxK64e599WzaFII,4550
|
|
29
|
+
quasardb/range-v3/range-v3-config-version.cmake,sha256=xGi8nCg5dIl5VmCOtTEVVa-dwABxKxLEd1Mx-bUvLLM,3249
|
|
30
|
+
quasardb/range-v3/range-v3-config.cmake,sha256=iiZBJD9yisikJNYDR84f3siZY7xRddr6z48_0R5jj7c,3423
|
|
31
|
+
quasardb/range-v3/CMakeFiles/CMakeDirectoryInformation.cmake,sha256=4uv-mw5JuGJlPRH640ZqzCL9U4MBJmXZMhGoYy8qm1M,732
|
|
32
|
+
quasardb/range-v3/CMakeFiles/progress.marks,sha256=micfKpFrC27mzsskJvCzIG7wdFeL5V2byU9vP-Orhqo,2
|
|
33
|
+
quasardb/range-v3/CMakeFiles/Export/d94ef200eca10a819b5858b33e808f5b/range-v3-targets.cmake,sha256=V-vcw4htrvk0Sf8A5IKO2_meFGd26tUGbt-Y2R8kZk4,5265
|
|
34
|
+
quasardb/range-v3/CMakeFiles/range.v3.headers.dir/DependInfo.cmake,sha256=ssojOAtcndfwexIOMvsRoVek3vdNgBmUVZscjIj5L1U,585
|
|
35
|
+
quasardb/range-v3/CMakeFiles/range.v3.headers.dir/build.make,sha256=YtjtRK5LC7Vo7UX7STnb2CoKevHEteBS7vQMLolgDFE,4459
|
|
36
|
+
quasardb/range-v3/CMakeFiles/range.v3.headers.dir/cmake_clean.cmake,sha256=3b0pZoiofoRzAiY1l7OLw203ZXp-mm1FUlQHob6i7aU,160
|
|
37
|
+
quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.make,sha256=Oge9eptzOB-hllw_Tye4o5wiXsIsdq1xm1GGCe0oGFM,126
|
|
38
|
+
quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.ts,sha256=orKrKpvHulgFBjBgzdeRvCpv0fV7cTffTdaHNqijFJg,120
|
|
39
|
+
quasardb/range-v3/CMakeFiles/range.v3.headers.dir/progress.make,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
40
|
+
quasardb/range-v3/include/range/v3/version.hpp,sha256=d-ToEdR3GnC_p_0RAeS77xL-SVx6EKHgTlWJ9PUQlSQ,586
|
|
41
|
+
quasardb-3.14.2.dev4.dist-info/LICENSE.md,sha256=_drOadIrIX8mzUZcnTJBTpUQih5gwdRAGK8ZKanYD6k,1467
|
|
42
|
+
quasardb-3.14.2.dev4.dist-info/METADATA,sha256=MOul9ySjqlzlJStiyMrcGCemCXzKkhvA_k74bztHBQ8,1443
|
|
43
|
+
quasardb-3.14.2.dev4.dist-info/WHEEL,sha256=NW1RskY9zow1Y68W-gXg0oZyBRAugI1JHywIzAIai5o,109
|
|
44
|
+
quasardb-3.14.2.dev4.dist-info/top_level.txt,sha256=wlprix4hCywuF1PkgKWYdZeJKq_kgJOqkAvukm_sZQ8,9
|
|
45
|
+
quasardb-3.14.2.dev4.dist-info/RECORD,,
|
quasardb/CMakeLists.txt
DELETED
|
@@ -1,510 +0,0 @@
|
|
|
1
|
-
cmake_minimum_required(VERSION 3.9.4)
|
|
2
|
-
project(quasardb)
|
|
3
|
-
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
|
|
4
|
-
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
|
5
|
-
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
|
|
6
|
-
set(CMAKE_VERBOSE_MAKEFILE FALSE)
|
|
7
|
-
|
|
8
|
-
if(APPLE)
|
|
9
|
-
# Robustly get the SDK path using xcrun.
|
|
10
|
-
execute_process(
|
|
11
|
-
COMMAND xcrun --sdk macosx --show-sdk-path
|
|
12
|
-
OUTPUT_VARIABLE SDK_PATH
|
|
13
|
-
COMMAND_ERROR_IS_FATAL ANY
|
|
14
|
-
)
|
|
15
|
-
string(STRIP "${SDK_PATH}" CMAKE_OSX_SYSROOT)
|
|
16
|
-
endif()
|
|
17
|
-
|
|
18
|
-
include(CheckIPOSupported)
|
|
19
|
-
|
|
20
|
-
option(QDB_LINK_STATIC_LIB "Link qdb_api_static instead of dynamic qdb_api." OFF)
|
|
21
|
-
option(QDB_TESTS_ENABLED "Build quasardb test suite?" OFF)
|
|
22
|
-
|
|
23
|
-
set(PACKAGE_NAME quasardb)
|
|
24
|
-
|
|
25
|
-
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm"
|
|
26
|
-
OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64"
|
|
27
|
-
OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "cortex"
|
|
28
|
-
OR CMAKE_GENERATOR MATCHES "ARM"
|
|
29
|
-
OR CMAKE_GENERATOR_PLATFORM MATCHES "ARM")
|
|
30
|
-
set(QDB_CPU_IS_ARM ON)
|
|
31
|
-
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86"
|
|
32
|
-
OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64"
|
|
33
|
-
OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686"
|
|
34
|
-
OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64"
|
|
35
|
-
OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "amd64")
|
|
36
|
-
set(QDB_CPU_IS_X86 ON)
|
|
37
|
-
else()
|
|
38
|
-
message(FATAL_ERROR "Unknown CMAKE_SYSTEM_PROCESSOR = ${CMAKE_SYSTEM_PROCESSOR}")
|
|
39
|
-
endif()
|
|
40
|
-
|
|
41
|
-
###
|
|
42
|
-
#
|
|
43
|
-
# Discover QuasarDB api location, set QDB_API_DIR accordingly.
|
|
44
|
-
#
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
set(QDB_API_NAME qdb_api)
|
|
48
|
-
|
|
49
|
-
message(STATUS "[qdb-api-python] Using qdb api name ${QDB_API_NAME}")
|
|
50
|
-
|
|
51
|
-
if(DEFINED ENV{QDB_API_PATH})
|
|
52
|
-
message(STATUS "[qdb-api-python] Getting qdb API from environment variable QDB_API_PATH: $ENV{QDB_API_PATH}")
|
|
53
|
-
set(QDB_API_DIR $ENV{QDB_API_PATH})
|
|
54
|
-
else()
|
|
55
|
-
set(QDB_API_DIR "${CMAKE_SOURCE_DIR}/../qdb")
|
|
56
|
-
endif()
|
|
57
|
-
|
|
58
|
-
find_library(
|
|
59
|
-
QDB_API_LIB
|
|
60
|
-
NAMES ${QDB_API_NAME}
|
|
61
|
-
PATHS ${QDB_API_DIR}/lib
|
|
62
|
-
NO_DEFAULT_PATH)
|
|
63
|
-
|
|
64
|
-
if(QDB_API_LIB)
|
|
65
|
-
if(NOT IS_DIRECTORY "${QDB_API_DIR}/include")
|
|
66
|
-
message(FATAL_ERROR "[qdb-api-python] Please unzip qdb c-api into ${QDB_API_DIR}")
|
|
67
|
-
endif()
|
|
68
|
-
include_directories(SYSTEM ${QDB_API_DIR}/include)
|
|
69
|
-
else()
|
|
70
|
-
find_library(QDB_API_LIB NAMES ${QDB_API_NAME})
|
|
71
|
-
endif()
|
|
72
|
-
|
|
73
|
-
message(STATUS "[qdb-api-python] Resolved QDB API library location: ${QDB_API_LIB}")
|
|
74
|
-
|
|
75
|
-
if(NOT QDB_API_LIB)
|
|
76
|
-
message(
|
|
77
|
-
FATAL_ERROR
|
|
78
|
-
"\n\
|
|
79
|
-
************************************************************************** \n\
|
|
80
|
-
\n\
|
|
81
|
-
Unable to locate QuasarDB library: please install the QuasarDB API library. \n\
|
|
82
|
-
\n\
|
|
83
|
-
For more information, please consult the manual: \n\
|
|
84
|
-
https://doc.quasardb.net/master/api/c.html. \n\
|
|
85
|
-
\n\
|
|
86
|
-
**************************************************************************"
|
|
87
|
-
)
|
|
88
|
-
endif()
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
###
|
|
95
|
-
#
|
|
96
|
-
# High-level compiler/OS-independent cmake options
|
|
97
|
-
#
|
|
98
|
-
###
|
|
99
|
-
|
|
100
|
-
set(CMAKE_CXX_STANDARD 20)
|
|
101
|
-
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
###
|
|
105
|
-
#
|
|
106
|
-
# Probe compiler/OS
|
|
107
|
-
#
|
|
108
|
-
###
|
|
109
|
-
|
|
110
|
-
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
|
111
|
-
message(STATUS "[qdb-api-python] Detected: clang compiler")
|
|
112
|
-
set(CLANG TRUE)
|
|
113
|
-
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
114
|
-
message(STATUS "[qdb-api-python] Detected: gcc")
|
|
115
|
-
set(GNU TRUE)
|
|
116
|
-
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
|
117
|
-
message(STATUS "[qdb-api-python] Detected: msvc")
|
|
118
|
-
set(MSVC TRUE)
|
|
119
|
-
set(WINDOWS TRUE)
|
|
120
|
-
|
|
121
|
-
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
122
|
-
message(STATUS "[qdb-api-python] Detected: win64")
|
|
123
|
-
set(WIN64 TRUE)
|
|
124
|
-
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
125
|
-
message(STATUS "[qdb-api-python] Detected: win32")
|
|
126
|
-
set(WIN32 TRUE)
|
|
127
|
-
endif()
|
|
128
|
-
endif()
|
|
129
|
-
|
|
130
|
-
if (CMAKE_HOST_APPLE)
|
|
131
|
-
message(STATUS "[qdb-api-python] Detected: apple host")
|
|
132
|
-
set(APPLE TRUE)
|
|
133
|
-
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
134
|
-
message(STATUS "[qdb-api-python] Detected: freebsd")
|
|
135
|
-
set(FREEEBSD TRUE)
|
|
136
|
-
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
137
|
-
message(STATUS "[qdb-api-python] Detected: linux")
|
|
138
|
-
set(LINUX TRUE)
|
|
139
|
-
endif()
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
###
|
|
143
|
-
#
|
|
144
|
-
# Compile options based on compiler/OS
|
|
145
|
-
#
|
|
146
|
-
###
|
|
147
|
-
|
|
148
|
-
if(CLANG OR GNU)
|
|
149
|
-
if(CLANG AND NOT APPLE)
|
|
150
|
-
# Clang + Ninja eats colors
|
|
151
|
-
add_compile_options(
|
|
152
|
-
-fdiagnostics-color=always
|
|
153
|
-
-ftemplate-backtrace-limit=0
|
|
154
|
-
-fmacro-backtrace-limit=0)
|
|
155
|
-
endif()
|
|
156
|
-
|
|
157
|
-
if (LINUX)
|
|
158
|
-
add_compile_options(
|
|
159
|
-
-Wno-register
|
|
160
|
-
-Wall
|
|
161
|
-
-fconcepts-diagnostics-depth=3
|
|
162
|
-
|
|
163
|
-
$<$<CONFIG:Debug>:-Og>
|
|
164
|
-
$<$<CONFIG:Release>:-O3>
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
# Can we perhaps make different builds, one for core2 and another
|
|
168
|
-
# for haswell?
|
|
169
|
-
|
|
170
|
-
if(QDB_CPU_IS_X86)
|
|
171
|
-
add_compile_options(-march=core2)
|
|
172
|
-
endif()
|
|
173
|
-
endif()
|
|
174
|
-
|
|
175
|
-
if (CLANG)
|
|
176
|
-
add_compile_options(
|
|
177
|
-
-fcolor-diagnostics # force color output on ninja
|
|
178
|
-
-fmacro-backtrace-limit=0
|
|
179
|
-
$<$<CONFIG:Release>:-O3>
|
|
180
|
-
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:-g>
|
|
181
|
-
$<$<CONFIG:Release>:-ftree-vectorize>)
|
|
182
|
-
elseif (GNU)
|
|
183
|
-
add_compile_options(
|
|
184
|
-
-fdata-sections
|
|
185
|
-
-ffunction-sections
|
|
186
|
-
-fno-stack-protector
|
|
187
|
-
|
|
188
|
-
-fnon-call-exceptions
|
|
189
|
-
-ftrack-macro-expansion=0
|
|
190
|
-
$<$<CONFIG:Release>:-O3>
|
|
191
|
-
$<$<CONFIG:Debug>:-Og>
|
|
192
|
-
$<$<CONFIG:Debug>:-fno-eliminate-unused-debug-types>
|
|
193
|
-
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:-ggdb>)
|
|
194
|
-
endif()
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
elseif (MSVC)
|
|
198
|
-
message(STATUS "[qdb-api-python] Detected: msvc")
|
|
199
|
-
add_definitions(/DSTATIC_LINKED)
|
|
200
|
-
add_definitions(/D_CRT_SECURE_NO_WARNINGS=1)
|
|
201
|
-
|
|
202
|
-
add_compile_options(
|
|
203
|
-
/volatile:iso
|
|
204
|
-
/Gy
|
|
205
|
-
/Zc:wchar_t
|
|
206
|
-
/wd5033
|
|
207
|
-
/MT
|
|
208
|
-
/EHa
|
|
209
|
-
/GR
|
|
210
|
-
/GF
|
|
211
|
-
|
|
212
|
-
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:/Zi> # Produces a program database (PDB) that contains type information and symbolic debugging information for use with the debugger
|
|
213
|
-
|
|
214
|
-
# Debug: Turns off all optimizations in the program and speeds compilation.
|
|
215
|
-
# Non-debug: Selects full optimization.
|
|
216
|
-
$<IF:$<CONFIG:Debug>,/Od,/Ox>
|
|
217
|
-
$<$<CONFIG:Debug>:/RTC1> # Enable the run-time error checks feature, in conjunction with the runtime_checks pragma.
|
|
218
|
-
|
|
219
|
-
$<$<NOT:$<CONFIG:Debug>>:/Oi> # Replaces some function calls with intrinsic or otherwise special forms of the function that help your application run faster.
|
|
220
|
-
$<$<NOT:$<CONFIG:Debug>>:/Ot> # Maximizes the speed of EXEs and DLLs by instructing the compiler to favor speed over size.
|
|
221
|
-
$<$<NOT:$<CONFIG:Debug>>:/Oy> # Suppresses creation of frame pointers on the call stack.
|
|
222
|
-
$<$<NOT:$<CONFIG:Debug>>:/GS-> # Suppresses Buffer Security Check
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
)
|
|
226
|
-
if(QDB_CPU_IS_X86)
|
|
227
|
-
add_compile_options(
|
|
228
|
-
# Enable AVX as we target Core2 and later
|
|
229
|
-
/arch:AVX
|
|
230
|
-
)
|
|
231
|
-
endif()
|
|
232
|
-
endif()
|
|
233
|
-
|
|
234
|
-
###
|
|
235
|
-
#
|
|
236
|
-
# Link options based on compiler/OS
|
|
237
|
-
#
|
|
238
|
-
###
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
if (CLANG)
|
|
242
|
-
if(QDB_LINKER)
|
|
243
|
-
if(QDB_LINKER STREQUAL "lld")
|
|
244
|
-
if(APPLE)
|
|
245
|
-
message(STATUS "[qdb-api-python] Detected: clang + lld + apple")
|
|
246
|
-
add_link_options(--ld-path=ld64.lld)
|
|
247
|
-
elseif(WIN32)
|
|
248
|
-
message(STATUS "[qdb-api-python] Detected: clang + lld + win32")
|
|
249
|
-
add_link_options(--ld-path=lld-link)
|
|
250
|
-
else()
|
|
251
|
-
message(STATUS "[qdb-api-python] Detected: clang + lld (other)")
|
|
252
|
-
add_link_options(--ld-path=ld.lld)
|
|
253
|
-
endif()
|
|
254
|
-
else()
|
|
255
|
-
message(STATUS "[qdb-api-python] Detected: clang + qdb_linker (other)")
|
|
256
|
-
add_link_options(--ld-path=${QDB_LINKER})
|
|
257
|
-
endif()
|
|
258
|
-
endif()
|
|
259
|
-
|
|
260
|
-
# clang + anything not apple
|
|
261
|
-
if(NOT APPLE)
|
|
262
|
-
message(STATUS "[qdb-api-python] Detected: clang + not apple")
|
|
263
|
-
add_link_options(
|
|
264
|
-
-Qunused-arguments
|
|
265
|
-
-Wl,--gc-sections)
|
|
266
|
-
endif()
|
|
267
|
-
endif()
|
|
268
|
-
|
|
269
|
-
###
|
|
270
|
-
#
|
|
271
|
-
# Third-party libraries
|
|
272
|
-
#
|
|
273
|
-
###
|
|
274
|
-
|
|
275
|
-
message(STATUS "[qdb-api-python] Including thirdparty libraries with binary directory ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
|
|
276
|
-
include_directories(SYSTEM ../thirdparty/date/include)
|
|
277
|
-
include_directories(SYSTEM ../thirdparty/range-v3/include)
|
|
278
|
-
|
|
279
|
-
add_subdirectory(../thirdparty/ ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
|
|
280
|
-
|
|
281
|
-
include_directories(SYSTEM qdb/include)
|
|
282
|
-
include_directories(${CMAKE_SOURCE_DIR})
|
|
283
|
-
include_directories(../quasardb/)
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
#
|
|
287
|
-
# step 2: copy the libraries
|
|
288
|
-
#
|
|
289
|
-
# Based on the OS, we copy the relevant files into our output directory. This
|
|
290
|
-
# matches the `extdir` as defined in setup.py's CMakeBuild.build_extension().
|
|
291
|
-
|
|
292
|
-
# We need to detect the _actual_ location of the qdb api lib file, lest we
|
|
293
|
-
# accidentally copy the symlink instead of the file.
|
|
294
|
-
get_filename_component(QDB_API_LIB_REAL ${QDB_API_LIB} REALPATH)
|
|
295
|
-
get_filename_component(QDB_API_LIB_REAL_NAME ${QDB_API_LIB_REAL} NAME)
|
|
296
|
-
|
|
297
|
-
if(NOT QDB_LINK_STATIC_LIB)
|
|
298
|
-
set(FILES_TO_COPY)
|
|
299
|
-
|
|
300
|
-
if(WIN32)
|
|
301
|
-
list(APPEND FILES_TO_COPY "${QDB_API_DIR}/bin/${QDB_API_NAME}.dll")
|
|
302
|
-
elseif(APPLE)
|
|
303
|
-
file(
|
|
304
|
-
GLOB SO_LIBS
|
|
305
|
-
LIST_DIRECTORIES false
|
|
306
|
-
"${QDB_API_DIR}/lib/libc[x+][x+]*.dylib")
|
|
307
|
-
|
|
308
|
-
list(APPEND FILES_TO_COPY "${QDB_API_LIB_REAL}" ${SO_LIBS})
|
|
309
|
-
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
|
|
310
|
-
file(
|
|
311
|
-
GLOB SO_LIBS
|
|
312
|
-
LIST_DIRECTORIES false
|
|
313
|
-
"${QDB_API_DIR}/lib/libc[x+][x+]*.so*")
|
|
314
|
-
|
|
315
|
-
list(APPEND FILES_TO_COPY "${QDB_API_LIB_REAL}" ${SO_LIBS})
|
|
316
|
-
else()
|
|
317
|
-
list(APPEND FILES_TO_COPY "${QDB_API_LIB_REAL}")
|
|
318
|
-
# Is there a case where the C API library is not called libqdb_api.so?
|
|
319
|
-
# file(RENAME "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${QDB_API_LIB_REAL_NAME}"
|
|
320
|
-
# "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libqdb_api.so")
|
|
321
|
-
endif()
|
|
322
|
-
|
|
323
|
-
message(STATUS "[qdb-api-python] Files to copy: ${FILES_TO_COPY}")
|
|
324
|
-
file(COPY ${FILES_TO_COPY} DESTINATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
|
|
325
|
-
|
|
326
|
-
# for Apple we need to change the id otherwise we won't be able to load the
|
|
327
|
-
# extension
|
|
328
|
-
if(APPLE)
|
|
329
|
-
execute_process(COMMAND install_name_tool -id "@loader_path/lib${QDB_API_NAME}.dylib"
|
|
330
|
-
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/lib${QDB_API_NAME}.dylib)
|
|
331
|
-
endif()
|
|
332
|
-
endif()
|
|
333
|
-
|
|
334
|
-
set(QDB_FILES
|
|
335
|
-
batch_inserter.hpp
|
|
336
|
-
blob.hpp
|
|
337
|
-
cluster.hpp
|
|
338
|
-
cluster.cpp
|
|
339
|
-
concepts.hpp
|
|
340
|
-
continuous.cpp
|
|
341
|
-
continuous.hpp
|
|
342
|
-
convert.hpp
|
|
343
|
-
double.hpp
|
|
344
|
-
error.hpp
|
|
345
|
-
entry.hpp
|
|
346
|
-
handle.hpp
|
|
347
|
-
handle.cpp
|
|
348
|
-
logger.hpp
|
|
349
|
-
logger.cpp
|
|
350
|
-
masked_array.hpp
|
|
351
|
-
metrics.hpp
|
|
352
|
-
metrics.cpp
|
|
353
|
-
module.hpp
|
|
354
|
-
module.cpp
|
|
355
|
-
node.hpp
|
|
356
|
-
numpy.hpp
|
|
357
|
-
numpy.cpp
|
|
358
|
-
object_tracker.hpp
|
|
359
|
-
options.hpp
|
|
360
|
-
query.hpp
|
|
361
|
-
query.cpp
|
|
362
|
-
string.hpp
|
|
363
|
-
table.cpp
|
|
364
|
-
table.hpp
|
|
365
|
-
table_reader.hpp
|
|
366
|
-
tag.hpp
|
|
367
|
-
timestamp.hpp
|
|
368
|
-
traits.hpp
|
|
369
|
-
utils.cpp
|
|
370
|
-
utils.hpp
|
|
371
|
-
writer.cpp
|
|
372
|
-
writer.hpp
|
|
373
|
-
detail/qdb_resource.hpp
|
|
374
|
-
detail/ts_column.hpp
|
|
375
|
-
reader/ts_row.hpp
|
|
376
|
-
reader/ts_value.hpp
|
|
377
|
-
utils/blob_deque.hpp
|
|
378
|
-
utils/ostream.hpp
|
|
379
|
-
utils/permutation.hpp
|
|
380
|
-
utils/stable_sort.hpp
|
|
381
|
-
)
|
|
382
|
-
|
|
383
|
-
set(QDB_TEST_FILES "")
|
|
384
|
-
|
|
385
|
-
if(QDB_TESTS_ENABLED)
|
|
386
|
-
message(WARNING "\
|
|
387
|
-
------------------------------------------------------------------ \
|
|
388
|
-
[qdb-api-python] Tests enabled -- do not enable for release builds \
|
|
389
|
-
------------------------------------------------------------------ \ ")
|
|
390
|
-
set(QDB_TEST_FILES
|
|
391
|
-
|
|
392
|
-
../tests/conftest.cpp
|
|
393
|
-
../tests/conftest.hpp
|
|
394
|
-
../tests/test_convert.cpp)
|
|
395
|
-
endif()
|
|
396
|
-
|
|
397
|
-
# step 3: build
|
|
398
|
-
pybind11_add_module(
|
|
399
|
-
quasardb
|
|
400
|
-
|
|
401
|
-
${QDB_FILES}
|
|
402
|
-
${QDB_TEST_FILES})
|
|
403
|
-
|
|
404
|
-
target_compile_definitions(quasardb PUBLIC QDB_PY_VERSION="${QDB_PY_VERSION}")
|
|
405
|
-
if(QDB_LINK_STATIC_LIB)
|
|
406
|
-
add_definitions(-DQDB_API_STATIC_LINK=1)
|
|
407
|
-
|
|
408
|
-
set(LIB_DIR "${QDB_API_DIR}/lib_static")
|
|
409
|
-
if(WIN32)
|
|
410
|
-
set(LIB_PREFIX "")
|
|
411
|
-
set(LIB_SUFFIX "$<$<CONFIG:Debug>:d>.lib")
|
|
412
|
-
else()
|
|
413
|
-
set(LIB_PREFIX "lib")
|
|
414
|
-
set(LIB_SUFFIX "$<$<CONFIG:Debug>:d>.a")
|
|
415
|
-
endif()
|
|
416
|
-
|
|
417
|
-
target_link_libraries(quasardb
|
|
418
|
-
PUBLIC
|
|
419
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_api_static${LIB_SUFFIX}"
|
|
420
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_query_client${LIB_SUFFIX}"
|
|
421
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_client${LIB_SUFFIX}"
|
|
422
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_aggregation${LIB_SUFFIX}"
|
|
423
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_chord${LIB_SUFFIX}"
|
|
424
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_network${LIB_SUFFIX}"
|
|
425
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_protocol${LIB_SUFFIX}"
|
|
426
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_perf${LIB_SUFFIX}"
|
|
427
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_persistence${LIB_SUFFIX}"
|
|
428
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_application${LIB_SUFFIX}"
|
|
429
|
-
"${LIB_DIR}/${LIB_PREFIX}rocksdb${LIB_SUFFIX}"
|
|
430
|
-
"${LIB_DIR}/${LIB_PREFIX}zlibstatic${LIB_SUFFIX}"
|
|
431
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_query${LIB_SUFFIX}"
|
|
432
|
-
"${LIB_DIR}/${LIB_PREFIX}geohash${LIB_SUFFIX}"
|
|
433
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_timeseries${LIB_SUFFIX}"
|
|
434
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_query_dsl${LIB_SUFFIX}"
|
|
435
|
-
"${LIB_DIR}/${LIB_PREFIX}arrow${LIB_SUFFIX}"
|
|
436
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_metadata${LIB_SUFFIX}"
|
|
437
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_config${LIB_SUFFIX}"
|
|
438
|
-
"${LIB_DIR}/${LIB_PREFIX}boost_program_options${LIB_SUFFIX}"
|
|
439
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_serialization${LIB_SUFFIX}"
|
|
440
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_compression${LIB_SUFFIX}"
|
|
441
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_serialization${LIB_SUFFIX}"
|
|
442
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_compression${LIB_SUFFIX}"
|
|
443
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_auth${LIB_SUFFIX}"
|
|
444
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_crypto${LIB_SUFFIX}"
|
|
445
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_json${LIB_SUFFIX}"
|
|
446
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_id${LIB_SUFFIX}"
|
|
447
|
-
"${LIB_DIR}/${LIB_PREFIX}skein${LIB_SUFFIX}"
|
|
448
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_network_resolver${LIB_SUFFIX}"
|
|
449
|
-
"${LIB_DIR}/${LIB_PREFIX}libsodium${LIB_SUFFIX}"
|
|
450
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_io${LIB_SUFFIX}"
|
|
451
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_log${LIB_SUFFIX}"
|
|
452
|
-
"${LIB_DIR}/${LIB_PREFIX}lz4${LIB_SUFFIX}"
|
|
453
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_sys${LIB_SUFFIX}"
|
|
454
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_time${LIB_SUFFIX}"
|
|
455
|
-
"${LIB_DIR}/${LIB_PREFIX}brigand${LIB_SUFFIX}"
|
|
456
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_util${LIB_SUFFIX}"
|
|
457
|
-
"${LIB_DIR}/${LIB_PREFIX}boost_filesystem${LIB_SUFFIX}"
|
|
458
|
-
"${LIB_DIR}/${LIB_PREFIX}fmt${LIB_SUFFIX}"
|
|
459
|
-
"${LIB_DIR}/${LIB_PREFIX}robin_hood${LIB_SUFFIX}"
|
|
460
|
-
"${LIB_DIR}/${LIB_PREFIX}asio${LIB_SUFFIX}"
|
|
461
|
-
"${LIB_DIR}/${LIB_PREFIX}xxhash${LIB_SUFFIX}"
|
|
462
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_memory${LIB_SUFFIX}"
|
|
463
|
-
"${LIB_DIR}/${LIB_PREFIX}tbbmalloc${LIB_SUFFIX}"
|
|
464
|
-
"${LIB_DIR}/${LIB_PREFIX}tbb${LIB_SUFFIX}"
|
|
465
|
-
"${LIB_DIR}/${LIB_PREFIX}qdb_version${LIB_SUFFIX}"
|
|
466
|
-
)
|
|
467
|
-
|
|
468
|
-
if(WIN32)
|
|
469
|
-
target_link_libraries(quasardb
|
|
470
|
-
PUBLIC
|
|
471
|
-
"${LIB_DIR}/${LIB_PREFIX}zstd_static${LIB_SUFFIX}"
|
|
472
|
-
)
|
|
473
|
-
else()
|
|
474
|
-
target_link_libraries(quasardb
|
|
475
|
-
PUBLIC
|
|
476
|
-
"${LIB_DIR}/${LIB_PREFIX}boost_system${LIB_SUFFIX}"
|
|
477
|
-
"${LIB_DIR}/${LIB_PREFIX}zstd${LIB_SUFFIX}"
|
|
478
|
-
)
|
|
479
|
-
endif()
|
|
480
|
-
else()
|
|
481
|
-
target_link_libraries(quasardb PUBLIC ${QDB_API_LIB})
|
|
482
|
-
endif()
|
|
483
|
-
|
|
484
|
-
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
485
|
-
target_link_options(
|
|
486
|
-
quasardb
|
|
487
|
-
PUBLIC
|
|
488
|
-
-static-libgcc
|
|
489
|
-
-static-libstdc++
|
|
490
|
-
)
|
|
491
|
-
endif()
|
|
492
|
-
|
|
493
|
-
if(APPLE)
|
|
494
|
-
set_target_properties(quasardb PROPERTIES INSTALL_RPATH "@loader_path")
|
|
495
|
-
else()
|
|
496
|
-
set_target_properties(quasardb PROPERTIES INSTALL_RPATH "$ORIGIN/")
|
|
497
|
-
endif()
|
|
498
|
-
|
|
499
|
-
if (CLANG OR GNU)
|
|
500
|
-
if (NOT APPLE)
|
|
501
|
-
check_ipo_supported(RESULT LTO_SUPPORTED OUTPUT error)
|
|
502
|
-
if (LTO_SUPPORTED)
|
|
503
|
-
message(STATUS "[qdb-api-python] Enabling LTO")
|
|
504
|
-
set_target_properties(quasardb PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
505
|
-
else()
|
|
506
|
-
message(STATUS "[qdb-api-python] Disabling LTO")
|
|
507
|
-
set_target_properties(quasardb PROPERTIES INTERPROCEDURAL_OPTIMIZATION FALSE)
|
|
508
|
-
endif()
|
|
509
|
-
endif()
|
|
510
|
-
endif()
|