Skip to content

Commit 64d3280

Browse files
committed
introduce single CMake script build all packages
This introduces single CMake script to build all packages and non-package build with same result, including shared library SONAME and versioning. Complicated shellscripting to build package build are no longer required, everything can be build with "cmake -S . -B build && cmake --build build". Note that there is a limitation, this requires a dummy C code to call libscylla-cpp-driver function. It is because this rebuild libraries with C Linker on CMake. The dummy C code is located at dummy/dummy.c. CMakeList.txt is now fully re-written without unrelated codes. And to build Rust code easier, imported CMakeRust project: https://github.com/Devolutions/CMakeRust And also FindLibClang.cmake from cpp2py: https://github.com/TRIQS/cpp2py/blob/master/cmake/FindLibClang.cmake Both included few patches since little bit outdated, and have few bugs.
1 parent 805ef4c commit 64d3280

40 files changed

+930
-2196
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup environment
2424
run: |
2525
sudo apt-get update
26-
sudo apt-get install libssl1.1 libuv1-dev libkrb5-dev libc6-dbg
26+
sudo apt -get install libssl-dev libclang-dev pkg-config openssl ca-certificates curl clang cmake
2727
sudo snap install valgrind --classic
2828
pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip
2929
sudo sh -c "echo 2097152 >> /proc/sys/fs/aio-max-nr"

.github/workflows/cassandra.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup environment
3030
run: |
3131
sudo apt-get update
32-
sudo apt-get install libssl1.1 libuv1-dev libkrb5-dev libc6-dbg
32+
sudo apt -get install libssl-dev libclang-dev pkg-config openssl ca-certificates curl clang cmake
3333
sudo snap install valgrind --classic
3434
pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip
3535
sudo sh -c "echo 2097152 >> /proc/sys/fs/aio-max-nr"

0 commit comments

Comments
 (0)