Skip to content

Commit

Permalink
introduce single CMake script build all packages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
syuu1228 committed Jun 10, 2024
1 parent 805ef4c commit 31bd6cf
Show file tree
Hide file tree
Showing 40 changed files with 930 additions and 2,196 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install libssl1.1 libuv1-dev libkrb5-dev libc6-dbg
sudo apt -get install libssl-dev libclang-dev pkg-config openssl ca-certificates curl clang cmake
sudo snap install valgrind --classic
pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip
sudo sh -c "echo 2097152 >> /proc/sys/fs/aio-max-nr"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install libssl1.1 libuv1-dev libkrb5-dev libc6-dbg
sudo apt -get install libssl-dev libclang-dev pkg-config openssl ca-certificates curl clang cmake
sudo snap install valgrind --classic
pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip
sudo sh -c "echo 2097152 >> /proc/sys/fs/aio-max-nr"
Expand Down
Loading

0 comments on commit 31bd6cf

Please sign in to comment.