Skip to content

Commit 34f31fb

Browse files
committed
Rename library from scylla-cpp-driver to scylladb
Change the library artifact name to 'scylladb', avoiding both hyphens and underscores. This eliminates the need for the underscore-to-hyphen rename that was causing issues on Windows. The Cargo [lib] name is now 'scylladb', producing libscylladb.so, libscylladb.a, scylladb.dll directly. The SONAME becomes libscylladb.so.<major>. The pkg-config module names change accordingly: scylla-cpp-driver -> scylladb scylla-cpp-driver_static -> scylladb_static Package names (DEB/RPM) remain 'scylla-cpp-driver' unchanged.
1 parent 7c17c04 commit 34f31fb

10 files changed

Lines changed: 66 additions & 68 deletions

File tree

.github/workflows/build-lint-and-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ env:
1111
RUST_BACKTRACE: full
1212
RUST_LOG: trace
1313
# Should include `INTEGRATION_TEST_BIN` from the `Makefile`
14-
# TODO: Remove `build/libscylla-cpp-driver.*` after https://github.com/scylladb/cpp-rs-driver/issues/164 is fixed.
15-
INTEGRATION_TEST_BIN: |
14+
# TODO: Remove `build/libscylladb.*` after https://github.com/scylladb/cpp-rs-driver/issues/164 is fixed.
1615
build/cassandra-integration-tests
17-
build/libscylla-cpp-driver.*
16+
build/libscylladb.*
1817
INTEGRATION_TEST_BIN_CACHE_KEY: integration-test-bin-${{ github.sha }}
1918
# Goes to `Makefile` to let it pickup cached binary
2019
DONT_REBUILD_INTEGRATION_BIN: true

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ if(CASS_BUILD_EXAMPLES)
105105
endif()
106106

107107
# Determine which driver target should be used as a dependency
108-
set(PROJECT_LIB_NAME_TARGET scylla-cpp-driver)
108+
set(PROJECT_LIB_NAME_TARGET scylladb)
109109
if(CASS_USE_STATIC_LIBS OR
110110
(WIN32 AND (CASS_BUILD_INTEGRATION_TESTS OR CASS_BUILD_UNIT_TESTS)))
111111
set(CASS_USE_STATIC_LIBS ON) # Not all driver internals are exported for test executable (e.g. CASS_EXPORT)
112112
set(CASS_BUILD_STATIC ON)
113-
set(PROJECT_LIB_NAME_TARGET scylla-cpp-driver_static)
113+
set(PROJECT_LIB_NAME_TARGET scylladb_static)
114114
endif()
115115

116116
# Ensure the driver is configured to build

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,12 +564,12 @@ test-package-rpm: build-package
564564
$(MAKE) -C $(SMOKE_TEST_DIR) remove-driver-dev-rpm || true; \
565565
$(MAKE) -C $(SMOKE_TEST_DIR) remove-driver-rpm || true; \
566566
$(MAKE) -C $(SMOKE_TEST_DIR) install-driver-dev-rpm; \
567-
pc_file=$$(find /usr -name "scylla-cpp-driver.pc" 2>/dev/null | head -1); \
567+
pc_file=$$(find /usr -name "scylladb.pc" 2>/dev/null | head -1); \
568568
if [ -n "$$pc_file" ]; then \
569569
pc_dir=$$(dirname "$$pc_file"); \
570570
export PKG_CONFIG_PATH="$${pc_dir}:$${PKG_CONFIG_PATH:-}"; \
571571
fi; \
572-
lib_dir=$$(find /usr -name "libscylla-cpp-driver.so*" 2>/dev/null | head -1 | xargs dirname 2>/dev/null || true); \
572+
lib_dir=$$(find /usr -name "libscylladb.so*" 2>/dev/null | head -1 | xargs dirname 2>/dev/null || true); \
573573
if [ -n "$$lib_dir" ]; then \
574574
export LD_LIBRARY_PATH="$${lib_dir}:$${LD_LIBRARY_PATH:-}"; \
575575
fi; \

cmake/CMakeCargo.cmake

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,30 @@
1919
# │ │ │ │
2020
# │ OUTPUT: │ │ OUTPUT: │
2121
# │ .../<profile>/ │ │ .../<profile>/ │
22-
#libscylla_cpp_driver.a │ │ libscylla_cpp_driver.so │
22+
#libscylladb.a │ │ libscylladb.so
2323
# └────────────┬─────────────┘ └──────────────┬───────────────┘
2424
# │ │
2525
# ┌────────────▼─────────────┐ ┌──────────────▼───────────────┐
26-
#scylla_cpp_driver │ │ scylla_cpp_driver
26+
#scylladb │ │ scylladb
2727
# │ _staticlib_target │ │ _cdylib_target │
2828
# │ (custom target, ALL) │ │ (custom target, ALL) │
2929
# └────────────┬─────────────┘ └──────────────┬───────────────┘
3030
# │ │
3131
# ┌────────────▼─────────────┐ ┌──────────────▼───────────────┐
32-
#scylla_cpp_driver │ │ scylla_cpp_driver
32+
#scylladb │ │ scylladb
3333
# │ _staticlib │ │ _cdylib │
3434
# │ (STATIC IMPORTED) │ │ (SHARED IMPORTED) │
3535
# │ │ │ │
3636
# │ IMPORTED_LOCATION: │ │ IMPORTED_LOCATION: │
3737
# │ .../<profile>/ │ │ .../<profile>/ │
38-
#libscylla_cpp_driver.a │ │ libscylla_cpp_driver.so │
38+
#libscylladb.a │ │ libscylladb.so
3939
# └────────────┬─────────────┘ └──────────────┬───────────────┘
4040
# │ │
4141
# $<TARGET_FILE:…> $<TARGET_FILE:…>
4242
# (used by create_copy) (used by create_copy)
4343
# │ │
4444
# ┌────────────▼─────────────┐ ┌──────────────▼───────────────┐
45-
#libscylla-cpp-driver │ │ libscylla-cpp-driver
45+
#libscylladb │ │ libscylladb
4646
# │ _static.a_copy │ │ .so.X.Y.Z_copy │
4747
# │ (custom target, ALL) │ │ (custom target, ALL) │
4848
# │ │ │ │
@@ -51,12 +51,12 @@
5151
# └────────────┬─────────────┘ └──────────────┬───────────────┘
5252
# │ │
5353
# ┌────────────▼─────────────┐ ┌──────────────▼───────────────┐
54-
#scylla-cpp-driver_static │ │ scylla-cpp-driver
54+
#scylladb_static │ │ scylladb
5555
# │ (STATIC IMPORTED) │ │ (SHARED IMPORTED) │
5656
# │ │ │ │
5757
# │ IMPORTED_LOCATION: │ │ IMPORTED_LOCATION: │
58-
# │ build/libscylla-cpp- │ │ build/libscylla-cpp-
59-
#driver_static.a │ │ driver.so.X.Y.Z │
58+
# │ build/libscylladb │ │ build/libscylladb
59+
#_static.a │ │ .so.X.Y.Z
6060
# └────────────┬─────────────┘ │ │
6161
# │ │ + symlinks: │
6262
# │ │ .so.X → .so.X.Y.Z │
@@ -80,19 +80,18 @@
8080
# _cdylib_target artifacts; give the build system a
8181
# (custom targets, ALL) named handle to order on.
8282
#
83-
# (3) scylla_cpp_driver_staticlib / IMPORTED targets wrapping the raw cargo
84-
# scylla_cpp_driver_cdylib output paths. Exist solely so that
83+
# (3) scylladb_staticlib / IMPORTED targets wrapping the raw cargo
84+
# scylladb_cdylib output paths. Exist solely so that
8585
# (IMPORTED libraries) create_copy can use $<TARGET_FILE:…>
8686
# generator expressions to get the path.
8787
#
88-
# (4) _copy targets Copy + rename from Cargo's underscore
89-
# (custom targets, ALL) naming (libscylla_cpp_driver.so) to
90-
# conventional C library naming
91-
# (libscylla-cpp-driver.so.X.Y.Z) in
92-
# the build root.
88+
# (4) _copy targets Copy + rename from Cargo's output
89+
# (custom targets, ALL) (libscylladb.so) to versioned naming
90+
# (libscylladb.so.X.Y.Z) in the build
91+
# root.
9392
#
94-
# (5) scylla-cpp-driver_static / Final IMPORTED targets pointing at the
95-
# scylla-cpp-driver renamed copies. These are what the
93+
# (5) scylladb_static / Final IMPORTED targets pointing at the
94+
# scylladb renamed copies. These are what the
9695
# (IMPORTED libraries) rest of the build system links against.
9796
#
9897
# ============================================================================

packaging/smoke-test-app/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ get_filename_component(CPP_DRIVER_ROOT "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
99
get_filename_component(CPP_DRIVER_ROOT "${CPP_DRIVER_ROOT}/.." ABSOLUTE)
1010

1111
find_package(PkgConfig REQUIRED)
12-
pkg_check_modules(SCYLLA_CPP_DRIVER REQUIRED IMPORTED_TARGET scylla-cpp-driver)
12+
pkg_check_modules(SCYLLA_CPP_DRIVER REQUIRED IMPORTED_TARGET scylladb)
1313

1414
option(SCYLLA_SMOKE_BUILD_STATIC
1515
"Build statically linked smoke test executable" OFF)
@@ -19,7 +19,7 @@ if(DEFINED PKG_CONFIG_USE_STATIC_LIBS)
1919
set(_pkg_config_use_static_libs_saved "${PKG_CONFIG_USE_STATIC_LIBS}")
2020
endif()
2121
set(PKG_CONFIG_USE_STATIC_LIBS ON)
22-
pkg_check_modules(SCYLLA_CPP_DRIVER_STATIC IMPORTED_TARGET scylla-cpp-driver_static)
22+
pkg_check_modules(SCYLLA_CPP_DRIVER_STATIC IMPORTED_TARGET scylladb_static)
2323
if(_pkg_config_use_static_libs_saved)
2424
set(PKG_CONFIG_USE_STATIC_LIBS "${_pkg_config_use_static_libs_saved}")
2525
else()
@@ -191,13 +191,13 @@ if(SCYLLA_SMOKE_BUILD_STATIC)
191191
message(FATAL_ERROR "pkg-config executable not available for static linkage")
192192
endif()
193193
execute_process(
194-
COMMAND ${PKG_CONFIG_EXECUTABLE} --libs --static scylla-cpp-driver_static
194+
COMMAND ${PKG_CONFIG_EXECUTABLE} --libs --static scylladb_static
195195
OUTPUT_VARIABLE _smoke_static_libs_output
196196
RESULT_VARIABLE _smoke_static_libs_result
197197
OUTPUT_STRIP_TRAILING_WHITESPACE)
198198
if(NOT _smoke_static_libs_result EQUAL 0 OR _smoke_static_libs_output STREQUAL "")
199199
message(FATAL_ERROR
200-
"Unable to resolve static link flags from scylla-cpp-driver_static pkg-config metadata")
200+
"Unable to resolve static link flags from scylladb_static pkg-config metadata")
201201
endif()
202202
separate_arguments(_smoke_static_link_libraries UNIX_COMMAND "${_smoke_static_libs_output}")
203203
if(NOT WIN32)

packaging/smoke-test-app/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ install-driver-msi:
342342
install-driver-dev-msi: install-driver-msi
343343

344344
verify-driver-dev-msi:
345-
@pwsh.exe -NoProfile -Command "\$$ErrorActionPreference = 'Stop'; \$$installPath = '$(DRIVER_INSTALL_PATH)'; \$$headerPath = Join-Path \$$installPath 'include\cassandra.h'; if (-not (Test-Path \$$headerPath)) { throw 'ERROR: cassandra.h header not found at \$$headerPath - dev package may not be installed' }; \$$pkgConfigPath = Join-Path \$$installPath 'lib\pkgconfig\scylla-cpp-driver.pc'; if (-not (Test-Path \$$pkgConfigPath)) { throw 'ERROR: scylla-cpp-driver.pc not found at \$$pkgConfigPath - dev package may not be installed' }; Write-Host 'Dev package verification successful'"
345+
@pwsh.exe -NoProfile -Command "\$$ErrorActionPreference = 'Stop'; \$$installPath = '$(DRIVER_INSTALL_PATH)'; \$$headerPath = Join-Path \$$installPath 'include\cassandra.h'; if (-not (Test-Path \$$headerPath)) { throw 'ERROR: cassandra.h header not found at \$$headerPath - dev package may not be installed' }; \$$pkgConfigPath = Join-Path \$$installPath 'lib\pkgconfig\scylladb.pc'; if (-not (Test-Path \$$pkgConfigPath)) { throw 'ERROR: scylladb.pc not found at \$$pkgConfigPath - dev package may not be installed' }; Write-Host 'Dev package verification successful'"
346346

347347
ifeq ($(OS_TYPE),macos)
348348
install-driver: install-driver-pkg
@@ -420,10 +420,10 @@ remove-driver-pkg:
420420

421421
remove-driver-dev-dmg:
422422
sudo rm -f /usr/local/include/cassandra.h 2>/dev/null || true
423-
sudo rm -f /usr/local/lib/pkgconfig/scylla-cpp-driver.pc 2>/dev/null || true
423+
sudo rm -f /usr/local/lib/pkgconfig/scylladb.pc 2>/dev/null || true
424424

425425
remove-driver-dmg:
426-
sudo rm -f /usr/local/lib/libscylla-cpp-driver.* 2>/dev/null || true
426+
sudo rm -f /usr/local/lib/libscylladb.* 2>/dev/null || true
427427

428428
remove-app-dmg:
429429
sudo rm -f /usr/local/bin/scylla-cpp-driver-smoke-test 2>/dev/null || true

scylla-rust-wrapper/CMakeLists.txt

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -32,41 +32,41 @@ if(CASS_BUILD_INTEGRATION_TESTS OR CASS_BUILD_EXAMPLES)
3232
endif()
3333

3434
if(APPLE)
35-
set(INSTALL_NAME_SHARED "libscylla-cpp-driver.${PROJECT_VERSION_STRING}.dylib")
36-
set(INSTALL_NAME_SHARED_SYMLINK_VERSION "libscylla-cpp-driver.${PROJECT_VERSION_MAJOR}.dylib")
37-
set(INSTALL_NAME_SHARED_SYMLINK_NO_VERSION "libscylla-cpp-driver.dylib")
38-
set(CMAKE_Rust_FLAGS_SONAME "-Clink-arg=-Wl,-install_name,@rpath/libscylla-cpp-driver.${PROJECT_VERSION_MAJOR}.dylib -Clink-arg=-Wl,-current_version,${PROJECT_VERSION_STRING} -Clink-arg=-Wl,-compatibility_version,${PROJECT_VERSION_MAJOR}")
35+
set(INSTALL_NAME_SHARED "libscylladb.${PROJECT_VERSION_STRING}.dylib")
36+
set(INSTALL_NAME_SHARED_SYMLINK_VERSION "libscylladb.${PROJECT_VERSION_MAJOR}.dylib")
37+
set(INSTALL_NAME_SHARED_SYMLINK_NO_VERSION "libscylladb.dylib")
38+
set(CMAKE_Rust_FLAGS_SONAME "-Clink-arg=-Wl,-install_name,@rpath/libscylladb.${PROJECT_VERSION_MAJOR}.dylib -Clink-arg=-Wl,-current_version,${PROJECT_VERSION_STRING} -Clink-arg=-Wl,-compatibility_version,${PROJECT_VERSION_MAJOR}")
3939
elseif(WIN32)
40-
set(INSTALL_NAME_SHARED "scylla-cpp-driver.dll")
41-
set(INSTALL_NAME_SHARED_IMPLIB "scylla-cpp-driver.lib")
40+
set(INSTALL_NAME_SHARED "scylladb.dll")
41+
set(INSTALL_NAME_SHARED_IMPLIB "scylladb.lib")
4242
set(CMAKE_Rust_FLAGS_SONAME "")
4343
else()
44-
set(INSTALL_NAME_SHARED "libscylla-cpp-driver.so.${PROJECT_VERSION_STRING}")
45-
set(INSTALL_NAME_SHARED_SYMLINK_VERSION "libscylla-cpp-driver.so.${PROJECT_VERSION_MAJOR}")
46-
set(INSTALL_NAME_SHARED_SYMLINK_NO_VERSION "libscylla-cpp-driver.so")
47-
set(CMAKE_Rust_FLAGS_SONAME "-Clink-arg=-Wl,-soname=libscylla-cpp-driver.so.${PROJECT_VERSION_MAJOR}")
44+
set(INSTALL_NAME_SHARED "libscylladb.so.${PROJECT_VERSION_STRING}")
45+
set(INSTALL_NAME_SHARED_SYMLINK_VERSION "libscylladb.so.${PROJECT_VERSION_MAJOR}")
46+
set(INSTALL_NAME_SHARED_SYMLINK_NO_VERSION "libscylladb.so")
47+
set(CMAKE_Rust_FLAGS_SONAME "-Clink-arg=-Wl,-soname=libscylladb.so.${PROJECT_VERSION_MAJOR}")
4848
endif()
4949
if(WIN32)
50-
set(INSTALL_NAME_STATIC "scylla-cpp-driver_static.lib")
50+
set(INSTALL_NAME_STATIC "scylladb_static.lib")
5151
else()
52-
set(INSTALL_NAME_STATIC "libscylla-cpp-driver_static.a")
52+
set(INSTALL_NAME_STATIC "libscylladb_static.a")
5353
endif()
5454
if(DEFINED CMAKE_Rust_FLAGS)
5555
set(CMAKE_Rust_FLAGS "${CMAKE_Rust_FLAGS} ${CMAKE_Rust_FLAGS_SONAME}")
5656
else()
5757
set(CMAKE_Rust_FLAGS "${CMAKE_Rust_FLAGS_SONAME}")
5858
endif()
5959
if(CASS_BUILD_SHARED)
60-
cargo_build(NAME scylla_cpp_driver CRATE_TYPE cdylib)
61-
create_copy($<TARGET_FILE:scylla_cpp_driver_cdylib> ${INSTALL_NAME_SHARED})
62-
add_library(scylla-cpp-driver SHARED IMPORTED GLOBAL)
63-
add_dependencies(scylla-cpp-driver ${INSTALL_NAME_SHARED}_copy)
64-
set_target_properties(scylla-cpp-driver PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/${INSTALL_NAME_SHARED})
60+
cargo_build(NAME scylladb CRATE_TYPE cdylib)
61+
create_copy($<TARGET_FILE:scylladb_cdylib> ${INSTALL_NAME_SHARED})
62+
add_library(scylladb SHARED IMPORTED GLOBAL)
63+
add_dependencies(scylladb ${INSTALL_NAME_SHARED}_copy)
64+
set_target_properties(scylladb PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/${INSTALL_NAME_SHARED})
6565
if(WIN32)
66-
get_target_property(SCYLLA_CPP_DRIVER_IMPLIB scylla_cpp_driver_cdylib IMPORTED_IMPLIB)
67-
if(SCYLLA_CPP_DRIVER_IMPLIB)
68-
create_copy(${SCYLLA_CPP_DRIVER_IMPLIB} ${INSTALL_NAME_SHARED_IMPLIB})
69-
set_target_properties(scylla-cpp-driver PROPERTIES IMPORTED_IMPLIB ${CMAKE_BINARY_DIR}/${INSTALL_NAME_SHARED_IMPLIB})
66+
get_target_property(SCYLLADB_IMPLIB scylladb_cdylib IMPORTED_IMPLIB)
67+
if(SCYLLADB_IMPLIB)
68+
create_copy(${SCYLLADB_IMPLIB} ${INSTALL_NAME_SHARED_IMPLIB})
69+
set_target_properties(scylladb PROPERTIES IMPORTED_IMPLIB ${CMAKE_BINARY_DIR}/${INSTALL_NAME_SHARED_IMPLIB})
7070
endif()
7171
endif()
7272
if(NOT WIN32)
@@ -75,11 +75,11 @@ if(CASS_BUILD_SHARED)
7575
endif()
7676
endif()
7777
if(CASS_BUILD_STATIC)
78-
cargo_build(NAME scylla_cpp_driver CRATE_TYPE staticlib)
79-
create_copy($<TARGET_FILE:scylla_cpp_driver_staticlib> ${INSTALL_NAME_STATIC})
80-
add_library(scylla-cpp-driver_static STATIC IMPORTED GLOBAL)
81-
add_dependencies(scylla-cpp-driver_static ${INSTALL_NAME_STATIC}_copy)
82-
set_target_properties(scylla-cpp-driver_static PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/${INSTALL_NAME_STATIC})
78+
cargo_build(NAME scylladb CRATE_TYPE staticlib)
79+
create_copy($<TARGET_FILE:scylladb_staticlib> ${INSTALL_NAME_STATIC})
80+
add_library(scylladb_static STATIC IMPORTED GLOBAL)
81+
add_dependencies(scylladb_static ${INSTALL_NAME_STATIC}_copy)
82+
set_target_properties(scylladb_static PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/${INSTALL_NAME_STATIC})
8383
endif()
8484

8585
#-------------------------------------
@@ -156,7 +156,7 @@ if(CASS_BUILD_SHARED)
156156
COMPONENT ${SCYLLA_DRIVER_DEV_COMPONENT_NAME})
157157
endif()
158158
else()
159-
install(FILES $<TARGET_FILE:scylla-cpp-driver>
159+
install(FILES $<TARGET_FILE:scylladb>
160160
DESTINATION ${CMAKE_INSTALL_LIBDIR}
161161
COMPONENT ${SCYLLA_DRIVER_RUNTIME_COMPONENT_NAME}
162162
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ)
@@ -172,8 +172,8 @@ if(CASS_BUILD_SHARED)
172172
# pkg-config file goes to dev package
173173
if(CASS_INSTALL_PKG_CONFIG)
174174
if(PKG_CONFIG_FOUND)
175-
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scylla-cpp-driver.pc.in" "scylla-cpp-driver.pc" @ONLY)
176-
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/scylla-cpp-driver.pc"
175+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scylladb.pc.in" "scylladb.pc" @ONLY)
176+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/scylladb.pc"
177177
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
178178
COMPONENT ${SCYLLA_DRIVER_DEV_COMPONENT_NAME})
179179
endif()
@@ -182,14 +182,14 @@ endif()
182182

183183
# Static library goes to dev package
184184
if(CASS_BUILD_STATIC)
185-
install(FILES $<TARGET_FILE:scylla-cpp-driver_static>
185+
install(FILES $<TARGET_FILE:scylladb_static>
186186
DESTINATION ${CMAKE_INSTALL_LIBDIR}
187187
COMPONENT ${SCYLLA_DRIVER_DEV_COMPONENT_NAME})
188188
# Static library pkg-config file goes to dev package
189189
if(CASS_INSTALL_PKG_CONFIG)
190190
if(PKG_CONFIG_FOUND)
191-
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scylla-cpp-driver_static.pc.in" "scylla-cpp-driver_static.pc" @ONLY)
192-
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/scylla-cpp-driver_static.pc"
191+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scylladb_static.pc.in" "scylladb_static.pc" @ONLY)
192+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/scylladb_static.pc"
193193
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
194194
COMPONENT ${SCYLLA_DRIVER_DEV_COMPONENT_NAME})
195195
endif()

scylla-rust-wrapper/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ntest = "0.9.3"
4747
rusty-fork = "0.3.0"
4848

4949
[lib]
50-
name = "scylla_cpp_driver"
50+
name = "scylladb"
5151
crate-type = ["cdylib", "staticlib", "lib"]
5252

5353
[profile.dev]

scylla-rust-wrapper/scylla-cpp-driver.pc.in renamed to scylla-rust-wrapper/scylladb.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
33
libdir=@libdir@
44
includedir=@includedir@
55

6-
Name: scylla-cpp-rs-driver
6+
Name: scylladb
77
Description: ScyllaDB CPP RS Driver
88
Version: @version@
9-
Libs: -L${libdir} -lscylla-cpp-driver
9+
Libs: -L${libdir} -lscylladb
1010
Cflags: -I${includedir}
1111
URL: https://github.com/scylladb/cpp-rs-driver/

scylla-rust-wrapper/scylla-cpp-driver_static.pc.in renamed to scylla-rust-wrapper/scylladb_static.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ exec_prefix=@exec_prefix@
33
libdir=@libdir@
44
includedir=@includedir@
55

6-
Name: scylla-cpp-rs-driver
6+
Name: scylladb
77
Description: ScyllaDB CPP RS Driver
88
Version: @version@
99
Requires: openssl
10-
Libs: -L${libdir} -lscylla-cpp-driver_static
10+
Libs: -L${libdir} -lscylladb_static
1111
Cflags: -I${includedir}
1212
URL: https://github.com/scylladb/cpp-rs-driver/

0 commit comments

Comments
 (0)