Use c-gaborator global installation

This commit is contained in:
DataHoarder 2022-01-25 12:04:35 +01:00
parent 147da335b6
commit 08f2e306d8
5 changed files with 14 additions and 7 deletions

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "c-gaborator"]
path = c-gaborator
url = https://git.gammaspectra.live/S.O.N.G/c-gaborator

12
README.md Normal file
View file

@ -0,0 +1,12 @@
# Goborator
Simple Gaborator cgo implementation.
Requires [c-gaborator](https://git.gammaspectra.live/S.O.N.G/c-gaborator) installed.
```shell
git clone https://git.gammaspectra.live/S.O.N.G/c-gaborator
cd c-gaborator && make build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX="/usr"
make
sudo make install
```

@ -1 +0,0 @@
Subproject commit 77ac6c1af9752d1e5afe9a826e4d155aa3a46776

View file

@ -1,8 +1,7 @@
package goborator
// #cgo CFLAGS: -I${SRCDIR}/c-gaborator
// #cgo LDFLAGS: -L${SRCDIR}/c-gaborator/build -L${SRCDIR} -lcgaborator -lm -lstdc++
// #include "cgaborator.h"
// #cgo pkg-config: cgaborator
// #include <cgaborator.h>
import "C"
import (
"encoding/binary"

Binary file not shown.