feat: build static lib from go-enry vendored subtree

This commit is contained in:
Roberto Alsina 2024-09-04 17:16:24 -03:00
parent e44f64a7df
commit 238a2115b3
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ venv/
.croupier
coverage/
run_tests
src/libenry.*

View File

@ -12,6 +12,7 @@ tasks:
- Hacefile.yml
- lexers/*xml
- styles/*xml
- go-enry
outputs:
- bin/{{NAME}}
commands: |
@ -113,3 +114,14 @@ tasks:
kcov --clean --include-path=./src ${PWD}/coverage ./bin/run_tests
outputs:
- coverage/index.html
go-enry:
cwd: go-enry
dependencies:
- go-enry
outputs:
- src/libenry.a
- src/libenry.h
commands: |
make static
cp .shared/* ../src