Extend .gitignore and update build setup for C++ integration

The .gitignore file now ignores C++ build artifacts alongside existing ones. In setup.py, the build configuration for 'limedriver' was modified to include a new C++ source file, indicating a shift to or expansion of C++ code usage within the project. This change prepares the build process to handle and compile C++ code, potentially for performance improvements or new functionality that leverages C++ capabilities.
This commit is contained in:
Kumi 2024-02-08 09:07:09 +01:00
parent fbf450e913
commit 261ccac1a0
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -59,6 +59,7 @@ __pycache__/
# Cython / Python build files
build/
*.c
*.cpp
src/limedriver.egg-info
# Data

View file

@ -32,9 +32,10 @@ class BuildExtCommand(build_ext):
ext_modules = [
Extension(
'limedriver',
sources=['src/limedriver/limedriver.pyx'],
sources=['src/limedriver/limedriver.pyx', 'extern/limedriver/src/limedriver.cpp'],
include_dirs=["extern/limedriver/src/"],
libraries=["LimeSuite"],
language="c++",
),
]