couchbase 3.5.4 → 3.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/CMakeLists.txt +8 -6
- data/ext/cache/cpm/{CPM_0.38.6.cmake → CPM_0.40.5.cmake} +152 -22
- data/ext/cache/extconf_include.rb +3 -3
- data/ext/cache/mozilla-ca-bundle.crt +32 -87
- data/ext/cache/mozilla-ca-bundle.sha256 +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/CMakeLists.txt +30 -6
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/utils.cmake +13 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async_logger-inl.h +5 -7
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/mpmc_blocking_q.h +3 -3
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/os-inl.h +3 -3
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/thread_pool-inl.h +3 -8
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/thread_pool.h +3 -14
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/base.h +47 -31
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/format-inl.h +32 -8
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/format.h +22 -14
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/ranges.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/mdc.h +4 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/pattern_formatter-inl.h +16 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ansicolor_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/base_sink.h +4 -4
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/callback_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/daily_file_sink.h +3 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/hourly_file_sink.h +2 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/msvc_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/syslog_sink.h +3 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +9 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/version.h +2 -2
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/format.cc → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/src/bundled_fmtlib_format.cpp} +10 -5
- data/ext/couchbase/CMakeLists.txt +3 -2
- data/ext/couchbase/cmake/APKBUILD.in +54 -0
- data/ext/couchbase/cmake/Backtrace.cmake +3 -1
- data/ext/couchbase/cmake/CPM.cmake +1 -1
- data/ext/couchbase/cmake/CompilerWarnings.cmake +0 -5
- data/ext/couchbase/cmake/Packaging.cmake +174 -11
- data/ext/couchbase/cmake/RPath.cmake +10 -0
- data/ext/couchbase/cmake/Testing.cmake +0 -4
- data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +7 -26
- data/ext/couchbase/cmake/VersionInfo.cmake +4 -0
- data/ext/couchbase/cmake/build_version.hxx.in +1 -0
- data/ext/couchbase/cmake/couchbase-cxx-client.spec.in +2 -2
- data/ext/couchbase/cmake/couchbase_cxx_client.pc.in +2 -2
- data/ext/couchbase/core/agent_config.cxx +1 -1
- data/ext/couchbase/core/agent_group_config.cxx +1 -1
- data/ext/couchbase/core/bucket.cxx +9 -9
- data/ext/couchbase/core/cluster.cxx +0 -2
- data/ext/couchbase/core/cluster_agent_config.cxx +1 -1
- data/ext/couchbase/core/collections_component.cxx +1 -1
- data/ext/couchbase/core/columnar/agent_config.cxx +2 -2
- data/ext/couchbase/core/columnar/error.hxx +0 -1
- data/ext/couchbase/core/columnar/query_component.cxx +2 -2
- data/ext/couchbase/core/config_profiles.cxx +1 -1
- data/ext/couchbase/core/core_sdk_shim.cxx +1 -1
- data/ext/couchbase/core/crud_component.cxx +1 -1
- data/ext/couchbase/core/design_document_namespace_fmt.hxx +1 -1
- data/ext/couchbase/core/diagnostics_fmt.hxx +1 -1
- data/ext/couchbase/core/document_id.cxx +1 -1
- data/ext/couchbase/core/document_id_fmt.hxx +1 -1
- data/ext/couchbase/core/error_context/analytics_json.hxx +3 -1
- data/ext/couchbase/core/error_context/key_value_json.hxx +1 -1
- data/ext/couchbase/core/error_context/query_public_json.hxx +1 -1
- data/ext/couchbase/core/error_context/subdocument_json.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_error_map_attribute.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_extended_error_info.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_status_code.hxx +1 -1
- data/ext/couchbase/core/http_component.cxx +3 -3
- data/ext/couchbase/core/impl/analytics.cxx +1 -0
- data/ext/couchbase/core/impl/best_effort_retry_strategy.cxx +1 -1
- data/ext/couchbase/core/impl/collection.cxx +28 -4
- data/ext/couchbase/core/impl/date_range.cxx +2 -2
- data/ext/couchbase/core/impl/date_range_query.cxx +2 -2
- data/ext/couchbase/core/impl/dns_srv_tracker.cxx +1 -1
- data/ext/couchbase/core/impl/error.cxx +27 -4
- data/ext/couchbase/core/impl/expiry.cxx +2 -2
- data/ext/couchbase/core/impl/fail_fast_retry_strategy.cxx +1 -2
- data/ext/couchbase/core/impl/get_replica.hxx +2 -0
- data/ext/couchbase/core/impl/key_value_error_context.cxx +6 -4
- data/ext/couchbase/core/impl/lookup_in_replica.hxx +2 -0
- data/ext/couchbase/core/impl/numeric_range.cxx +1 -1
- data/ext/couchbase/core/impl/observe_seqno.hxx +2 -0
- data/ext/couchbase/core/impl/query.cxx +1 -0
- data/ext/couchbase/core/impl/query_error_context.cxx +3 -2
- data/ext/couchbase/core/impl/scope.cxx +5 -6
- data/ext/couchbase/core/impl/search.cxx +3 -1
- data/ext/couchbase/core/io/config_tracker.cxx +1 -1
- data/ext/couchbase/core/io/dns_client.cxx +23 -8
- data/ext/couchbase/core/io/http_command.hxx +2 -2
- data/ext/couchbase/core/io/http_parser.cxx +1 -1
- data/ext/couchbase/core/io/http_session.cxx +4 -0
- data/ext/couchbase/core/io/http_session.hxx +4 -2
- data/ext/couchbase/core/io/mcbp_command.hxx +2 -2
- data/ext/couchbase/core/key_value_config.cxx +2 -2
- data/ext/couchbase/core/logger/logger.hxx +1 -1
- data/ext/couchbase/core/management/rbac_fmt.hxx +1 -1
- data/ext/couchbase/core/mcbp/operation_queue.cxx +1 -1
- data/ext/couchbase/core/mcbp/packet.cxx +1 -1
- data/ext/couchbase/core/meta/features.hxx +11 -0
- data/ext/couchbase/core/meta/version.cxx +48 -7
- data/ext/couchbase/core/operations/document_analytics.cxx +23 -17
- data/ext/couchbase/core/operations/document_analytics.hxx +1 -0
- data/ext/couchbase/core/operations/document_append.hxx +2 -0
- data/ext/couchbase/core/operations/document_decrement.hxx +2 -0
- data/ext/couchbase/core/operations/document_exists.hxx +2 -0
- data/ext/couchbase/core/operations/document_get.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_all_replicas.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_and_lock.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_and_touch.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_any_replica.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_projected.hxx +2 -0
- data/ext/couchbase/core/operations/document_increment.hxx +2 -0
- data/ext/couchbase/core/operations/document_insert.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in_any_replica.hxx +2 -0
- data/ext/couchbase/core/operations/document_mutate_in.hxx +2 -0
- data/ext/couchbase/core/operations/document_prepend.hxx +2 -0
- data/ext/couchbase/core/operations/document_query.hxx +1 -0
- data/ext/couchbase/core/operations/document_remove.hxx +2 -0
- data/ext/couchbase/core/operations/document_replace.hxx +2 -0
- data/ext/couchbase/core/operations/document_search.hxx +1 -0
- data/ext/couchbase/core/operations/document_touch.hxx +2 -0
- data/ext/couchbase/core/operations/document_unlock.hxx +2 -0
- data/ext/couchbase/core/operations/document_upsert.hxx +2 -0
- data/ext/couchbase/core/operations/document_view.hxx +1 -0
- data/ext/couchbase/core/operations/http_noop.hxx +2 -0
- data/ext/couchbase/core/operations/management/CMakeLists.txt +0 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_index_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_index_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_connect.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_connect.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_get_all.cxx +24 -16
- data/ext/couchbase/core/operations/management/analytics_link_get_all.hxx +4 -3
- data/ext/couchbase/core/operations/management/analytics_link_replace.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_utils.hxx +4 -3
- data/ext/couchbase/core/operations/management/bucket_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_describe.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_describe.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_flush.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_flush.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_update.hxx +1 -0
- data/ext/couchbase/core/operations/management/change_password.cxx +1 -1
- data/ext/couchbase/core/operations/management/change_password.hxx +1 -0
- data/ext/couchbase/core/operations/management/cluster_describe.hxx +1 -0
- data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.hxx +1 -0
- data/ext/couchbase/core/operations/management/collection_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/collection_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/collection_update.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_update.hxx +2 -0
- data/ext/couchbase/core/operations/management/collections_manifest_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_deploy_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_deploy_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_drop_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_drop_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_all_functions.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_get_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_status.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_pause_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_pause_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_resume_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_resume_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_upsert_function.cxx +1 -2
- data/ext/couchbase/core/operations/management/eventing_upsert_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/freeform.hxx +2 -0
- data/ext/couchbase/core/operations/management/group_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/group_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/group_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_build.hxx +7 -5
- data/ext/couchbase/core/operations/management/query_index_build_deferred.hxx +3 -0
- data/ext/couchbase/core/operations/management/query_index_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/query_index_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/query_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/query_index_get_all_deferred.hxx +3 -0
- data/ext/couchbase/core/operations/management/role_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_get_stats.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_analyze_document.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_analyze_document.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_ingest.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_ingest.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_query.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_query.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_get_stats.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_stats.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_upsert.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_upsert.cxx +3 -3
- data/ext/couchbase/core/operations/management/user_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/view_index_upsert.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_upsert.hxx +1 -0
- data/ext/couchbase/core/origin.cxx +3 -2
- data/ext/couchbase/core/platform/base64.h +8 -8
- data/ext/couchbase/core/protocol/client_opcode_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/client_response.hxx +1 -1
- data/ext/couchbase/core/protocol/frame_info_id_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/hello_feature_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/magic_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/server_opcode_fmt.hxx +1 -1
- data/ext/couchbase/core/query_context.hxx +7 -6
- data/ext/couchbase/core/retry_orchestrator.cxx +1 -1
- data/ext/couchbase/core/sasl/CMakeLists.txt +0 -1
- data/ext/couchbase/core/sasl/error_fmt.h +1 -1
- data/ext/couchbase/core/seed_config.cxx +2 -2
- data/ext/couchbase/core/service_type_fmt.hxx +1 -1
- data/ext/couchbase/core/topology/capabilities_fmt.hxx +1 -1
- data/ext/couchbase/core/topology/collections_manifest_fmt.hxx +2 -1
- data/ext/couchbase/core/topology/configuration_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/async_attempt_context.cxx +1 -1
- data/ext/couchbase/core/transactions/async_attempt_context.hxx +9 -22
- data/ext/couchbase/core/transactions/attempt_context.cxx +1 -1
- data/ext/couchbase/core/transactions/attempt_context.hxx +6 -33
- data/ext/couchbase/core/transactions/attempt_context_impl.cxx +41 -41
- data/ext/couchbase/core/transactions/attempt_context_impl.hxx +15 -16
- data/ext/couchbase/core/transactions/exceptions_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/atr_cleanup_entry.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/client_record.hxx +4 -3
- data/ext/couchbase/core/transactions/internal/doc_record_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/exceptions_internal.hxx +0 -2
- data/ext/couchbase/core/transactions/internal/exceptions_internal_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/logging.hxx +2 -0
- data/ext/couchbase/core/transactions/internal/transaction_context.hxx +3 -0
- data/ext/couchbase/core/transactions/result_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/transaction_context.cxx +12 -2
- data/ext/couchbase/core/transactions/transaction_get_result.hxx +0 -20
- data/ext/couchbase/core/transactions/transaction_links.hxx +1 -1
- data/ext/couchbase/core/utils/join_strings.hxx +2 -2
- data/ext/couchbase/core/utils/keyspace.hxx +2 -1
- data/ext/couchbase/core/utils/url_codec.cxx +1 -1
- data/ext/couchbase/couchbase/common_options.hxx +16 -1
- data/ext/couchbase/couchbase/fmt/analytics_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/analytics_status.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/cas.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/durability_level.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/error.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/error_context.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/mutation_token.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_profile.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_status.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/retry_reason.hxx +5 -1
- data/ext/couchbase/couchbase/fmt/search_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/tls_verify_mode.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/transaction_keyspace.hxx +0 -2
- data/ext/couchbase/couchbase/metrics/otel_meter.hxx +16 -20
- data/ext/extconf.rb +1 -0
- data/ext/rcb_analytics.cxx +7 -7
- data/ext/rcb_backend.cxx +6 -1
- data/ext/rcb_buckets.cxx +1 -1
- data/ext/rcb_collections.cxx +1 -1
- data/ext/rcb_crud.cxx +51 -30
- data/ext/rcb_diagnostics.cxx +1 -1
- data/ext/rcb_exceptions.cxx +3 -2
- data/ext/rcb_extras.cxx +1 -1
- data/ext/rcb_range_scan.cxx +1 -1
- data/ext/rcb_search.cxx +1 -1
- data/ext/rcb_users.cxx +2 -2
- data/ext/rcb_utils.hxx +32 -0
- data/lib/couchbase/logger.rb +3 -3
- data/lib/couchbase/options.rb +48 -0
- data/lib/couchbase/version.rb +1 -1
- metadata +131 -153
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/CMakeLists.txt +0 -520
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/ChangeLog.md +0 -2598
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/LICENSE +0 -27
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/README.md +0 -484
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/fmt.cc +0 -135
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/os.cc +0 -403
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/FindSetEnv.cmake +0 -7
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/JoinPaths.cmake +0 -26
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/fmt-config.cmake.in +0 -7
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/fmt.pc.in +0 -11
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/args.h +0 -235
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/chrono.h +0 -2240
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/color.h +0 -643
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/compile.h +0 -535
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/core.h +0 -2969
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/format-inl.h +0 -1678
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/format.h +0 -4535
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/os.h +0 -455
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/ostream.h +0 -245
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/printf.h +0 -675
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/ranges.h +0 -738
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/std.h +0 -537
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/xchar.h +0 -259
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/src/bundled_fmtlib_format.cpp +0 -46
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/LICENSE +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/ide.cmake +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/pch.h.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlog.pc.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlogCPack.cmake +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlogConfig.cmake.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/version.rc.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async_logger.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/argv.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/env.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/helpers-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/helpers.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/common-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/common.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/backtracer-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/backtracer.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/circular_q.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/console_globals.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/file_helper-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/file_helper.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/fmt_helper.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg_buffer-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg_buffer.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/null_mutex.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/os.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/periodic_worker-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/periodic_worker.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/registry-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/registry.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/synchronous_factory.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/tcp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/tcp_client.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/udp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/udp_client.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/windows_include.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bin_to_hex.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/args.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/chrono.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/color.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/compile.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/core.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bundled/fmt.license.rst +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bundled/locale.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/os.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/ostream.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/printf.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/std.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/xchar.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/chrono.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/compile.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/fmt.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/ostr.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/ranges.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/std.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/xchar.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/formatter.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fwd.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/logger-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/logger.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/pattern_formatter.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/android_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/base_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/basic_file_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/dist_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/dup_filter_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/kafka_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/mongo_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/null_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ostream_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/qt_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ringbuffer_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/rotating_file_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_color_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/systemd_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/tcp_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/udp_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/win_eventlog_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/wincolor_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/spdlog-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/spdlog.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/stopwatch.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/tweakme.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/async.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/cfg.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/color_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/file_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/spdlog.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/stdout_sinks.cpp +0 -0
@@ -1,520 +0,0 @@
|
|
1
|
-
cmake_minimum_required(VERSION 3.8...3.28)
|
2
|
-
|
3
|
-
# Fallback for using newer policies on CMake <3.12.
|
4
|
-
if (${CMAKE_VERSION} VERSION_LESS 3.12)
|
5
|
-
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
6
|
-
endif ()
|
7
|
-
|
8
|
-
# Determine if fmt is built as a subproject (using add_subdirectory)
|
9
|
-
# or if it is the master project.
|
10
|
-
if (NOT DEFINED FMT_MASTER_PROJECT)
|
11
|
-
set(FMT_MASTER_PROJECT OFF)
|
12
|
-
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
13
|
-
set(FMT_MASTER_PROJECT ON)
|
14
|
-
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
15
|
-
endif ()
|
16
|
-
endif ()
|
17
|
-
|
18
|
-
# Joins arguments and places the results in ${result_var}.
|
19
|
-
function(join result_var)
|
20
|
-
set(result "")
|
21
|
-
foreach (arg ${ARGN})
|
22
|
-
set(result "${result}${arg}")
|
23
|
-
endforeach ()
|
24
|
-
set(${result_var} "${result}" PARENT_SCOPE)
|
25
|
-
endfunction()
|
26
|
-
|
27
|
-
# DEPRECATED! Should be merged into add_module_library.
|
28
|
-
function(enable_module target)
|
29
|
-
if (MSVC)
|
30
|
-
set(BMI ${CMAKE_CURRENT_BINARY_DIR}/${target}.ifc)
|
31
|
-
target_compile_options(${target}
|
32
|
-
PRIVATE /interface /ifcOutput ${BMI}
|
33
|
-
INTERFACE /reference fmt=${BMI})
|
34
|
-
set_target_properties(${target} PROPERTIES ADDITIONAL_CLEAN_FILES ${BMI})
|
35
|
-
set_source_files_properties(${BMI} PROPERTIES GENERATED ON)
|
36
|
-
endif ()
|
37
|
-
endfunction()
|
38
|
-
|
39
|
-
set(FMT_USE_CMAKE_MODULES FALSE)
|
40
|
-
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.28 AND
|
41
|
-
CMAKE_GENERATOR STREQUAL "Ninja")
|
42
|
-
set(FMT_USE_CMAKE_MODULES TRUE)
|
43
|
-
endif ()
|
44
|
-
|
45
|
-
# Adds a library compiled with C++20 module support.
|
46
|
-
# `enabled` is a CMake variables that specifies if modules are enabled.
|
47
|
-
# If modules are disabled `add_module_library` falls back to creating a
|
48
|
-
# non-modular library.
|
49
|
-
#
|
50
|
-
# Usage:
|
51
|
-
# add_module_library(<name> [sources...] FALLBACK [sources...] [IF enabled])
|
52
|
-
function(add_module_library name)
|
53
|
-
cmake_parse_arguments(AML "" "IF" "FALLBACK" ${ARGN})
|
54
|
-
set(sources ${AML_UNPARSED_ARGUMENTS})
|
55
|
-
|
56
|
-
add_library(${name})
|
57
|
-
set_target_properties(${name} PROPERTIES LINKER_LANGUAGE CXX)
|
58
|
-
|
59
|
-
if (NOT ${${AML_IF}})
|
60
|
-
# Create a non-modular library.
|
61
|
-
target_sources(${name} PRIVATE ${AML_FALLBACK})
|
62
|
-
set_target_properties(${name} PROPERTIES CXX_SCAN_FOR_MODULES OFF)
|
63
|
-
return()
|
64
|
-
endif ()
|
65
|
-
|
66
|
-
# Modules require C++20.
|
67
|
-
target_compile_features(${name} PUBLIC cxx_std_20)
|
68
|
-
if (CMAKE_COMPILER_IS_GNUCXX)
|
69
|
-
target_compile_options(${name} PUBLIC -fmodules-ts)
|
70
|
-
endif ()
|
71
|
-
|
72
|
-
target_compile_definitions(${name} PRIVATE FMT_MODULE)
|
73
|
-
|
74
|
-
if (FMT_USE_CMAKE_MODULES)
|
75
|
-
target_sources(${name} PUBLIC FILE_SET fmt TYPE CXX_MODULES
|
76
|
-
FILES ${sources})
|
77
|
-
else()
|
78
|
-
# `std` is affected by CMake options and may be higher than C++20.
|
79
|
-
get_target_property(std ${name} CXX_STANDARD)
|
80
|
-
|
81
|
-
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
82
|
-
set(pcms)
|
83
|
-
foreach (src ${sources})
|
84
|
-
get_filename_component(pcm ${src} NAME_WE)
|
85
|
-
set(pcm ${pcm}.pcm)
|
86
|
-
|
87
|
-
# Propagate -fmodule-file=*.pcm to targets that link with this library.
|
88
|
-
target_compile_options(
|
89
|
-
${name} PUBLIC -fmodule-file=${CMAKE_CURRENT_BINARY_DIR}/${pcm})
|
90
|
-
|
91
|
-
# Use an absolute path to prevent target_link_libraries prepending -l
|
92
|
-
# to it.
|
93
|
-
set(pcms ${pcms} ${CMAKE_CURRENT_BINARY_DIR}/${pcm})
|
94
|
-
add_custom_command(
|
95
|
-
OUTPUT ${pcm}
|
96
|
-
COMMAND ${CMAKE_CXX_COMPILER}
|
97
|
-
-std=c++${std} -x c++-module --precompile -c
|
98
|
-
-o ${pcm} ${CMAKE_CURRENT_SOURCE_DIR}/${src}
|
99
|
-
"-I$<JOIN:$<TARGET_PROPERTY:${name},INCLUDE_DIRECTORIES>,;-I>"
|
100
|
-
# Required by the -I generator expression above.
|
101
|
-
COMMAND_EXPAND_LISTS
|
102
|
-
DEPENDS ${src})
|
103
|
-
endforeach ()
|
104
|
-
|
105
|
-
# Add .pcm files as sources to make sure they are built before the library.
|
106
|
-
set(sources)
|
107
|
-
foreach (pcm ${pcms})
|
108
|
-
get_filename_component(pcm_we ${pcm} NAME_WE)
|
109
|
-
set(obj ${pcm_we}.o)
|
110
|
-
# Use an absolute path to prevent target_link_libraries prepending -l.
|
111
|
-
set(sources ${sources} ${pcm} ${CMAKE_CURRENT_BINARY_DIR}/${obj})
|
112
|
-
add_custom_command(
|
113
|
-
OUTPUT ${obj}
|
114
|
-
COMMAND ${CMAKE_CXX_COMPILER} $<TARGET_PROPERTY:${name},COMPILE_OPTIONS>
|
115
|
-
-c -o ${obj} ${pcm}
|
116
|
-
DEPENDS ${pcm})
|
117
|
-
endforeach ()
|
118
|
-
endif ()
|
119
|
-
target_sources(${name} PRIVATE ${sources})
|
120
|
-
endif()
|
121
|
-
endfunction()
|
122
|
-
|
123
|
-
include(CMakeParseArguments)
|
124
|
-
|
125
|
-
# Sets a cache variable with a docstring joined from multiple arguments:
|
126
|
-
# set(<variable> <value>... CACHE <type> <docstring>...)
|
127
|
-
# This allows splitting a long docstring for readability.
|
128
|
-
function(set_verbose)
|
129
|
-
# cmake_parse_arguments is broken in CMake 3.4 (cannot parse CACHE) so use
|
130
|
-
# list instead.
|
131
|
-
list(GET ARGN 0 var)
|
132
|
-
list(REMOVE_AT ARGN 0)
|
133
|
-
list(GET ARGN 0 val)
|
134
|
-
list(REMOVE_AT ARGN 0)
|
135
|
-
list(REMOVE_AT ARGN 0)
|
136
|
-
list(GET ARGN 0 type)
|
137
|
-
list(REMOVE_AT ARGN 0)
|
138
|
-
join(doc ${ARGN})
|
139
|
-
set(${var} ${val} CACHE ${type} ${doc})
|
140
|
-
endfunction()
|
141
|
-
|
142
|
-
# Set the default CMAKE_BUILD_TYPE to Release.
|
143
|
-
# This should be done before the project command since the latter can set
|
144
|
-
# CMAKE_BUILD_TYPE itself (it does so for nmake).
|
145
|
-
if (FMT_MASTER_PROJECT AND NOT CMAKE_BUILD_TYPE)
|
146
|
-
set_verbose(CMAKE_BUILD_TYPE Release CACHE STRING
|
147
|
-
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or "
|
148
|
-
"CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
149
|
-
endif ()
|
150
|
-
|
151
|
-
project(FMT CXX)
|
152
|
-
include(GNUInstallDirs)
|
153
|
-
set_verbose(FMT_INC_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE STRING
|
154
|
-
"Installation directory for include files, a relative path that "
|
155
|
-
"will be joined with ${CMAKE_INSTALL_PREFIX} or an absolute path.")
|
156
|
-
|
157
|
-
option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF)
|
158
|
-
option(FMT_WERROR "Halt the compilation with an error on compiler warnings."
|
159
|
-
OFF)
|
160
|
-
|
161
|
-
# Options that control generation of various targets.
|
162
|
-
option(FMT_DOC "Generate the doc target." ${FMT_MASTER_PROJECT})
|
163
|
-
option(FMT_INSTALL "Generate the install target." ON)
|
164
|
-
option(FMT_TEST "Generate the test target." ${FMT_MASTER_PROJECT})
|
165
|
-
option(FMT_FUZZ "Generate the fuzz target." OFF)
|
166
|
-
option(FMT_CUDA_TEST "Generate the cuda-test target." OFF)
|
167
|
-
option(FMT_OS "Include OS-specific APIs." ON)
|
168
|
-
option(FMT_MODULE "Build a module instead of a traditional library." OFF)
|
169
|
-
option(FMT_SYSTEM_HEADERS "Expose headers with marking them as system." OFF)
|
170
|
-
option(FMT_UNICODE "Enable Unicode support." ON)
|
171
|
-
|
172
|
-
if (FMT_TEST AND FMT_MODULE)
|
173
|
-
# The tests require {fmt} to be compiled as traditional library
|
174
|
-
message(STATUS "Testing is incompatible with build mode 'module'.")
|
175
|
-
endif ()
|
176
|
-
set(FMT_SYSTEM_HEADERS_ATTRIBUTE "")
|
177
|
-
if (FMT_SYSTEM_HEADERS)
|
178
|
-
set(FMT_SYSTEM_HEADERS_ATTRIBUTE SYSTEM)
|
179
|
-
endif ()
|
180
|
-
if (CMAKE_SYSTEM_NAME STREQUAL "MSDOS")
|
181
|
-
set(FMT_TEST OFF)
|
182
|
-
message(STATUS "MSDOS is incompatible with gtest")
|
183
|
-
endif ()
|
184
|
-
|
185
|
-
# Get version from base.h
|
186
|
-
file(READ include/fmt/base.h base_h)
|
187
|
-
if (NOT base_h MATCHES "FMT_VERSION ([0-9]+)([0-9][0-9])([0-9][0-9])")
|
188
|
-
message(FATAL_ERROR "Cannot get FMT_VERSION from base.h.")
|
189
|
-
endif ()
|
190
|
-
# Use math to skip leading zeros if any.
|
191
|
-
math(EXPR CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_MATCH_1})
|
192
|
-
math(EXPR CPACK_PACKAGE_VERSION_MINOR ${CMAKE_MATCH_2})
|
193
|
-
math(EXPR CPACK_PACKAGE_VERSION_PATCH ${CMAKE_MATCH_3})
|
194
|
-
join(FMT_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.
|
195
|
-
${CPACK_PACKAGE_VERSION_PATCH})
|
196
|
-
message(STATUS "{fmt} version: ${FMT_VERSION}")
|
197
|
-
|
198
|
-
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
|
199
|
-
|
200
|
-
if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
201
|
-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
202
|
-
endif ()
|
203
|
-
|
204
|
-
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
|
205
|
-
"${CMAKE_CURRENT_SOURCE_DIR}/support/cmake")
|
206
|
-
|
207
|
-
include(CheckCXXCompilerFlag)
|
208
|
-
include(JoinPaths)
|
209
|
-
|
210
|
-
if (FMT_MASTER_PROJECT AND NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET)
|
211
|
-
set_verbose(CMAKE_CXX_VISIBILITY_PRESET hidden CACHE STRING
|
212
|
-
"Preset for the export of private symbols")
|
213
|
-
set_property(CACHE CMAKE_CXX_VISIBILITY_PRESET PROPERTY STRINGS
|
214
|
-
hidden default)
|
215
|
-
endif ()
|
216
|
-
|
217
|
-
if (FMT_MASTER_PROJECT AND NOT DEFINED CMAKE_VISIBILITY_INLINES_HIDDEN)
|
218
|
-
set_verbose(CMAKE_VISIBILITY_INLINES_HIDDEN ON CACHE BOOL
|
219
|
-
"Whether to add a compile flag to hide symbols of inline functions")
|
220
|
-
endif ()
|
221
|
-
|
222
|
-
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
223
|
-
set(PEDANTIC_COMPILE_FLAGS -pedantic-errors -Wall -Wextra -pedantic
|
224
|
-
-Wold-style-cast -Wundef
|
225
|
-
-Wredundant-decls -Wwrite-strings -Wpointer-arith
|
226
|
-
-Wcast-qual -Wformat=2 -Wmissing-include-dirs
|
227
|
-
-Wcast-align
|
228
|
-
-Wctor-dtor-privacy -Wdisabled-optimization
|
229
|
-
-Winvalid-pch -Woverloaded-virtual
|
230
|
-
-Wconversion -Wundef
|
231
|
-
-Wno-ctor-dtor-privacy -Wno-format-nonliteral)
|
232
|
-
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.6)
|
233
|
-
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS}
|
234
|
-
-Wno-dangling-else -Wno-unused-local-typedefs)
|
235
|
-
endif ()
|
236
|
-
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
|
237
|
-
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS} -Wdouble-promotion
|
238
|
-
-Wtrampolines -Wzero-as-null-pointer-constant -Wuseless-cast
|
239
|
-
-Wvector-operation-performance -Wsized-deallocation -Wshadow)
|
240
|
-
endif ()
|
241
|
-
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
|
242
|
-
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS} -Wshift-overflow=2
|
243
|
-
-Wnull-dereference -Wduplicated-cond)
|
244
|
-
endif ()
|
245
|
-
set(WERROR_FLAG -Werror)
|
246
|
-
endif ()
|
247
|
-
|
248
|
-
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
249
|
-
set(PEDANTIC_COMPILE_FLAGS -Wall -Wextra -pedantic -Wconversion -Wundef
|
250
|
-
-Wdeprecated -Wweak-vtables -Wshadow
|
251
|
-
-Wno-gnu-zero-variadic-macro-arguments)
|
252
|
-
check_cxx_compiler_flag(-Wzero-as-null-pointer-constant HAS_NULLPTR_WARNING)
|
253
|
-
if (HAS_NULLPTR_WARNING)
|
254
|
-
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS}
|
255
|
-
-Wzero-as-null-pointer-constant)
|
256
|
-
endif ()
|
257
|
-
set(WERROR_FLAG -Werror)
|
258
|
-
endif ()
|
259
|
-
|
260
|
-
if (MSVC)
|
261
|
-
set(PEDANTIC_COMPILE_FLAGS /W3)
|
262
|
-
set(WERROR_FLAG /WX)
|
263
|
-
endif ()
|
264
|
-
|
265
|
-
if (FMT_MASTER_PROJECT AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
266
|
-
# If Microsoft SDK is installed create script run-msbuild.bat that
|
267
|
-
# calls SetEnv.cmd to set up build environment and runs msbuild.
|
268
|
-
# It is useful when building Visual Studio projects with the SDK
|
269
|
-
# toolchain rather than Visual Studio.
|
270
|
-
include(FindSetEnv)
|
271
|
-
if (WINSDK_SETENV)
|
272
|
-
set(MSBUILD_SETUP "call \"${WINSDK_SETENV}\"")
|
273
|
-
endif ()
|
274
|
-
# Set FrameworkPathOverride to get rid of MSB3644 warnings.
|
275
|
-
join(netfxpath
|
276
|
-
"C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\"
|
277
|
-
".NETFramework\\v4.0")
|
278
|
-
file(WRITE run-msbuild.bat "
|
279
|
-
${MSBUILD_SETUP}
|
280
|
-
${CMAKE_MAKE_PROGRAM} -p:FrameworkPathOverride=\"${netfxpath}\" %*")
|
281
|
-
endif ()
|
282
|
-
|
283
|
-
function(add_headers VAR)
|
284
|
-
set(headers ${${VAR}})
|
285
|
-
foreach (header ${ARGN})
|
286
|
-
set(headers ${headers} include/fmt/${header})
|
287
|
-
endforeach()
|
288
|
-
set(${VAR} ${headers} PARENT_SCOPE)
|
289
|
-
endfunction()
|
290
|
-
|
291
|
-
# Define the fmt library, its includes and the needed defines.
|
292
|
-
add_headers(FMT_HEADERS args.h base.h chrono.h color.h compile.h core.h format.h
|
293
|
-
format-inl.h os.h ostream.h printf.h ranges.h std.h
|
294
|
-
xchar.h)
|
295
|
-
set(FMT_SOURCES src/format.cc)
|
296
|
-
|
297
|
-
add_module_library(fmt src/fmt.cc FALLBACK
|
298
|
-
${FMT_SOURCES} ${FMT_HEADERS} README.md ChangeLog.md
|
299
|
-
IF FMT_MODULE)
|
300
|
-
add_library(fmt::fmt ALIAS fmt)
|
301
|
-
if (FMT_MODULE)
|
302
|
-
enable_module(fmt)
|
303
|
-
elseif (FMT_OS)
|
304
|
-
target_sources(fmt PRIVATE src/os.cc)
|
305
|
-
else()
|
306
|
-
target_compile_definitions(fmt PRIVATE FMT_OS=0)
|
307
|
-
endif ()
|
308
|
-
|
309
|
-
if (FMT_WERROR)
|
310
|
-
target_compile_options(fmt PRIVATE ${WERROR_FLAG})
|
311
|
-
endif ()
|
312
|
-
if (FMT_PEDANTIC)
|
313
|
-
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
|
314
|
-
endif ()
|
315
|
-
|
316
|
-
if (cxx_std_11 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
317
|
-
target_compile_features(fmt PUBLIC cxx_std_11)
|
318
|
-
else ()
|
319
|
-
message(WARNING "Feature cxx_std_11 is unknown for the CXX compiler")
|
320
|
-
endif ()
|
321
|
-
|
322
|
-
target_include_directories(fmt ${FMT_SYSTEM_HEADERS_ATTRIBUTE} PUBLIC
|
323
|
-
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
324
|
-
$<INSTALL_INTERFACE:${FMT_INC_DIR}>)
|
325
|
-
|
326
|
-
set(FMT_DEBUG_POSTFIX d CACHE STRING "Debug library postfix.")
|
327
|
-
|
328
|
-
set_target_properties(fmt PROPERTIES
|
329
|
-
VERSION ${FMT_VERSION} SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}
|
330
|
-
PUBLIC_HEADER "${FMT_HEADERS}"
|
331
|
-
DEBUG_POSTFIX "${FMT_DEBUG_POSTFIX}"
|
332
|
-
|
333
|
-
# Workaround for Visual Studio 2017:
|
334
|
-
# Ensure the .pdb is created with the same name and in the same directory
|
335
|
-
# as the .lib. Newer VS versions already do this by default, but there is no
|
336
|
-
# harm in setting it for those too. Ignored by other generators.
|
337
|
-
COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
338
|
-
COMPILE_PDB_NAME "fmt"
|
339
|
-
COMPILE_PDB_NAME_DEBUG "fmt${FMT_DEBUG_POSTFIX}")
|
340
|
-
|
341
|
-
# Set FMT_LIB_NAME for pkg-config fmt.pc. We cannot use the OUTPUT_NAME target
|
342
|
-
# property because it's not set by default.
|
343
|
-
set(FMT_LIB_NAME fmt)
|
344
|
-
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
345
|
-
set(FMT_LIB_NAME ${FMT_LIB_NAME}${FMT_DEBUG_POSTFIX})
|
346
|
-
endif ()
|
347
|
-
|
348
|
-
if (BUILD_SHARED_LIBS)
|
349
|
-
target_compile_definitions(fmt PRIVATE FMT_LIB_EXPORT INTERFACE FMT_SHARED)
|
350
|
-
endif ()
|
351
|
-
if (FMT_SAFE_DURATION_CAST)
|
352
|
-
target_compile_definitions(fmt PUBLIC FMT_SAFE_DURATION_CAST)
|
353
|
-
endif ()
|
354
|
-
|
355
|
-
add_library(fmt-header-only INTERFACE)
|
356
|
-
add_library(fmt::fmt-header-only ALIAS fmt-header-only)
|
357
|
-
|
358
|
-
if (NOT MSVC)
|
359
|
-
# Unicode is always supported on compilers other than MSVC.
|
360
|
-
elseif (FMT_UNICODE)
|
361
|
-
# Unicode support requires compiling with /utf-8.
|
362
|
-
target_compile_options(fmt PUBLIC $<$<COMPILE_LANGUAGE:CXX>:/utf-8>)
|
363
|
-
target_compile_options(fmt-header-only INTERFACE $<$<COMPILE_LANGUAGE:CXX>:/utf-8>)
|
364
|
-
else ()
|
365
|
-
target_compile_definitions(fmt PUBLIC FMT_UNICODE=0)
|
366
|
-
endif ()
|
367
|
-
|
368
|
-
target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1)
|
369
|
-
target_compile_features(fmt-header-only INTERFACE cxx_std_11)
|
370
|
-
|
371
|
-
target_include_directories(fmt-header-only
|
372
|
-
${FMT_SYSTEM_HEADERS_ATTRIBUTE} INTERFACE
|
373
|
-
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
374
|
-
$<INSTALL_INTERFACE:${FMT_INC_DIR}>)
|
375
|
-
|
376
|
-
# Install targets.
|
377
|
-
if (FMT_INSTALL)
|
378
|
-
include(CMakePackageConfigHelpers)
|
379
|
-
set_verbose(FMT_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/fmt CACHE STRING
|
380
|
-
"Installation directory for cmake files, a relative path that "
|
381
|
-
"will be joined with ${CMAKE_INSTALL_PREFIX} or an absolute "
|
382
|
-
"path.")
|
383
|
-
set(version_config ${PROJECT_BINARY_DIR}/fmt-config-version.cmake)
|
384
|
-
set(project_config ${PROJECT_BINARY_DIR}/fmt-config.cmake)
|
385
|
-
set(pkgconfig ${PROJECT_BINARY_DIR}/fmt.pc)
|
386
|
-
set(targets_export_name fmt-targets)
|
387
|
-
|
388
|
-
set_verbose(FMT_LIB_DIR ${CMAKE_INSTALL_LIBDIR} CACHE STRING
|
389
|
-
"Installation directory for libraries, a relative path that "
|
390
|
-
"will be joined to ${CMAKE_INSTALL_PREFIX} or an absolute path.")
|
391
|
-
|
392
|
-
set_verbose(FMT_PKGCONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig CACHE STRING
|
393
|
-
"Installation directory for pkgconfig (.pc) files, a relative "
|
394
|
-
"path that will be joined with ${CMAKE_INSTALL_PREFIX} or an "
|
395
|
-
"absolute path.")
|
396
|
-
|
397
|
-
# Generate the version, config and target files into the build directory.
|
398
|
-
write_basic_package_version_file(
|
399
|
-
${version_config}
|
400
|
-
VERSION ${FMT_VERSION}
|
401
|
-
COMPATIBILITY AnyNewerVersion)
|
402
|
-
|
403
|
-
join_paths(libdir_for_pc_file "\${exec_prefix}" "${FMT_LIB_DIR}")
|
404
|
-
join_paths(includedir_for_pc_file "\${prefix}" "${FMT_INC_DIR}")
|
405
|
-
|
406
|
-
configure_file(
|
407
|
-
"${PROJECT_SOURCE_DIR}/support/cmake/fmt.pc.in"
|
408
|
-
"${pkgconfig}"
|
409
|
-
@ONLY)
|
410
|
-
configure_package_config_file(
|
411
|
-
${PROJECT_SOURCE_DIR}/support/cmake/fmt-config.cmake.in
|
412
|
-
${project_config}
|
413
|
-
INSTALL_DESTINATION ${FMT_CMAKE_DIR})
|
414
|
-
|
415
|
-
set(INSTALL_TARGETS fmt fmt-header-only)
|
416
|
-
|
417
|
-
set(INSTALL_FILE_SET)
|
418
|
-
if (FMT_USE_CMAKE_MODULES)
|
419
|
-
set(INSTALL_FILE_SET FILE_SET fmt DESTINATION "${FMT_INC_DIR}/fmt")
|
420
|
-
endif()
|
421
|
-
|
422
|
-
# Install the library and headers.
|
423
|
-
install(TARGETS ${INSTALL_TARGETS} EXPORT ${targets_export_name}
|
424
|
-
LIBRARY DESTINATION ${FMT_LIB_DIR}
|
425
|
-
ARCHIVE DESTINATION ${FMT_LIB_DIR}
|
426
|
-
PUBLIC_HEADER DESTINATION "${FMT_INC_DIR}/fmt"
|
427
|
-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
428
|
-
${INSTALL_FILE_SET})
|
429
|
-
|
430
|
-
# Use a namespace because CMake provides better diagnostics for namespaced
|
431
|
-
# imported targets.
|
432
|
-
export(TARGETS ${INSTALL_TARGETS} NAMESPACE fmt::
|
433
|
-
FILE ${PROJECT_BINARY_DIR}/${targets_export_name}.cmake)
|
434
|
-
|
435
|
-
# Install version, config and target files.
|
436
|
-
install(
|
437
|
-
FILES ${project_config} ${version_config}
|
438
|
-
DESTINATION ${FMT_CMAKE_DIR})
|
439
|
-
install(EXPORT ${targets_export_name} DESTINATION ${FMT_CMAKE_DIR}
|
440
|
-
NAMESPACE fmt::)
|
441
|
-
|
442
|
-
install(FILES "${pkgconfig}" DESTINATION "${FMT_PKGCONFIG_DIR}")
|
443
|
-
endif ()
|
444
|
-
|
445
|
-
function(add_doc_target)
|
446
|
-
find_program(DOXYGEN doxygen
|
447
|
-
PATHS "$ENV{ProgramFiles}/doxygen/bin"
|
448
|
-
"$ENV{ProgramFiles\(x86\)}/doxygen/bin")
|
449
|
-
if (NOT DOXYGEN)
|
450
|
-
message(STATUS "Target 'doc' disabled because doxygen not found")
|
451
|
-
return ()
|
452
|
-
endif ()
|
453
|
-
|
454
|
-
find_program(MKDOCS mkdocs)
|
455
|
-
if (NOT MKDOCS)
|
456
|
-
message(STATUS "Target 'doc' disabled because mkdocs not found")
|
457
|
-
return ()
|
458
|
-
endif ()
|
459
|
-
|
460
|
-
set(sources )
|
461
|
-
foreach (source api.md index.md syntax.md get-started.md fmt.css fmt.js)
|
462
|
-
set(sources ${sources} doc/${source})
|
463
|
-
endforeach()
|
464
|
-
|
465
|
-
add_custom_target(
|
466
|
-
doc
|
467
|
-
COMMAND
|
468
|
-
${CMAKE_COMMAND}
|
469
|
-
-E env PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/support/python
|
470
|
-
${MKDOCS} build -f ${CMAKE_CURRENT_SOURCE_DIR}/support/mkdocs.yml
|
471
|
-
# MkDocs requires the site dir to be outside of the doc dir.
|
472
|
-
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc-html
|
473
|
-
--no-directory-urls
|
474
|
-
SOURCES ${sources})
|
475
|
-
|
476
|
-
include(GNUInstallDirs)
|
477
|
-
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/
|
478
|
-
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt OPTIONAL)
|
479
|
-
endfunction()
|
480
|
-
|
481
|
-
if (FMT_DOC)
|
482
|
-
add_doc_target()
|
483
|
-
endif ()
|
484
|
-
|
485
|
-
if (FMT_TEST)
|
486
|
-
enable_testing()
|
487
|
-
add_subdirectory(test)
|
488
|
-
endif ()
|
489
|
-
|
490
|
-
# Control fuzzing independent of the unit tests.
|
491
|
-
if (FMT_FUZZ)
|
492
|
-
add_subdirectory(test/fuzzing)
|
493
|
-
|
494
|
-
# The FMT_FUZZ macro is used to prevent resource exhaustion in fuzzing
|
495
|
-
# mode and make fuzzing practically possible. It is similar to
|
496
|
-
# FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION but uses a different name to
|
497
|
-
# avoid interfering with fuzzing of projects that use {fmt}.
|
498
|
-
# See also https://llvm.org/docs/LibFuzzer.html#fuzzer-friendly-build-mode.
|
499
|
-
target_compile_definitions(fmt PUBLIC FMT_FUZZ)
|
500
|
-
endif ()
|
501
|
-
|
502
|
-
set(gitignore ${PROJECT_SOURCE_DIR}/.gitignore)
|
503
|
-
if (FMT_MASTER_PROJECT AND EXISTS ${gitignore})
|
504
|
-
# Get the list of ignored files from .gitignore.
|
505
|
-
file (STRINGS ${gitignore} lines)
|
506
|
-
list(REMOVE_ITEM lines /doc/html)
|
507
|
-
foreach (line ${lines})
|
508
|
-
string(REPLACE "." "[.]" line "${line}")
|
509
|
-
string(REPLACE "*" ".*" line "${line}")
|
510
|
-
set(ignored_files ${ignored_files} "${line}$" "${line}/")
|
511
|
-
endforeach ()
|
512
|
-
set(ignored_files ${ignored_files} /.git /build/doxyxml .vagrant)
|
513
|
-
|
514
|
-
set(CPACK_SOURCE_GENERATOR ZIP)
|
515
|
-
set(CPACK_SOURCE_IGNORE_FILES ${ignored_files})
|
516
|
-
set(CPACK_SOURCE_PACKAGE_FILE_NAME fmt-${FMT_VERSION})
|
517
|
-
set(CPACK_PACKAGE_NAME fmt)
|
518
|
-
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.md)
|
519
|
-
include(CPack)
|
520
|
-
endif ()
|