File: bootstrap-cmake-linux-with-pyhthon.sh

package info (click to toggle)
tinyobjloader 2.0.0~rc13%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,524 kB
  • sloc: cpp: 7,030; python: 120; sh: 57; makefile: 45
file content (20 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
curdir=`pwd`

builddir=${curdir}/build_python_module

rm -rf ${builddir}
mkdir ${builddir}

# set path to pybind11
# If you install pybind11 through pip, its usually installed to <site-package path>/pybind11.
pybind11_path=`python -c "import site; print (site.getsitepackages()[0])"`
echo ${pybind11_path}

CC=clang CXX=clang++ \
  pybind11_DIR=${pybind11_path}/pybind11 \
  cmake \
  -B${builddir} \
  -DCMAKE_VERBOSE_MAKEFILE=1 \
  -DTINYOBJLOADER_WITH_PYTHON=1 

cd ${curdir}