Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4

- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DTAP_DSP_WERROR=ON
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DTAP_DSP_WERROR=ON -DTAP_DSP_BUILD_CAPI=ON

- name: Build
run: cmake --build build --config Release
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ CMakeUserPresets.json
!.claude/settings.json
!.claude/hooks/
build_capi/
__pycache__/
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,14 @@ if(TAP_DSP_BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()

# C ABI shared library for FFI consumers (the notebooks drive the shipping C++
# through it via ctypes — see notebooks/dsptap_py.py). tools/capi also builds
# standalone (`cmake -B build_capi -S tools/capi`), which is what the ctypes
# bridge does on first import; this option exists so the root build can compile
# it too, matching the BUILD_CAPI option every sibling library carries. CI turns
# it on so the verification layer cannot rot unnoticed.
option(TAP_DSP_BUILD_CAPI "Build the C ABI shared library" OFF)
if(TAP_DSP_BUILD_CAPI)
add_subdirectory(tools/capi)
endif()
Binary file removed notebooks/__pycache__/dsptap_py.cpython-311.pyc
Binary file not shown.
Loading