File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Description
2+
3+ The clang-bind is a project to generate python bindings for C++ code using clang python bindings and pybind11.
4+
5+ # Dependencies
6+
7+ ** C++**
8+
9+ * libclang*
10+
11+ ```
12+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
13+ echo 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' | sudo tee -a /etc/apt/sources.list
14+ echo 'deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' | sudo tee -a /etc/apt/sources.list
15+ sudo apt-get update
16+ sudo apt-get install -y libclang-11-dev python3-clang-11
17+ ```
18+
19+ ** Python**
20+
21+ ` pip install -r requirements.txt `
22+
23+ # Demonstration
24+
25+ 1 . Go to ` clang-bind/bindings/python/tests/test_project/ ` folder
26+ 2 . Create a build folder
27+ 3 . Run ` cmake .. `
28+ 4 . Run ` make -j$(nproc) `
29+ 5 . Run ` python ../../scripts/parse.py --com ./ ../src/simple.cpp `
30+ 6 . Run ` python ../../scripts/generate.py --com json/src/simple.json `
31+
32+ The binding code will be available in ` pybind11-gen/src ` folder.
33+
Original file line number Diff line number Diff line change 1+ Mako == 1.1.3
2+ requests == 2.24.0
3+ conan == 1.31.0
4+ pybind11 == 2.6.0
5+ black == 20.8b1
6+ pytest == 6.1.2
7+ cmake == 3.18.2
You can’t perform that action at this time.
0 commit comments