Fast FFT library package for Odin.
Core package path in this repository:
src(import as...:src)
Example project layout:
your_project/
third_party/
sleipnir-fft/ # clone this repository here
src/
main.odin
Build:
odin run src -collection:sleipnirfft=third_party/sleipnir-fftImport from code:
import fft "sleipnirfft:src"This repository also supports configure + make workflow:
./configure --prefix=$HOME/.local --mode=static --microarch=native
make -j
make installconfigure auto-detects odin from PATH (equivalent to which odin).
You can also override it with --odin=/path/to/odin (or ODIN=/path/to/odin ./configure).
After install, point Odin collection alias to the installed package root:
odin run src -collection:sleipnirfft=$HOME/.local/share/sleipnir-fftMain targets:
make build: build library artifact (build/libsleipnir_fft.aetc.)make test: runsrcpackage testsmake install: install source package + built librarymake install-src: install source package onlymake install-lib: install built library onlymake uninstall: remove installed package/library fromPREFIXmake print-config: show effective configuration
From this repository root:
./scripts/run_package_consumer_example.shSee:
src/README.md