https://github.com/nasso/epine-tek
Epine module for Epitech projects
https://github.com/nasso/epine-tek
Last synced: 2 months ago
JSON representation
Epine module for Epitech projects
- Host: GitHub
- URL: https://github.com/nasso/epine-tek
- Owner: nasso
- License: mit
- Created: 2021-02-01T21:02:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T13:52:09.000Z (over 5 years ago)
- Last Synced: 2025-03-02T13:14:52.534Z (over 1 year ago)
- Language: Lua
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# epine-tek
Simple Epine module for C/C++ projects at [Epitech].
## Example usage
```lua
local tek = require "@nasso/epine-tek/v0.2.0-alpha"
-- project name//default targets
tek:project "libjzon" {"libjzon.a"}
-- binary name ("$(NAME)" in the generated Makefile)
tek:name "libjzon.a"
-- a static library (the .a suffix is added automatically)
tek:static "libjzon" {
libs = {tek:ref "libmy"}
}
-- the unit tests binary
tek:binary "unit_tests" {
srcs = {find "./tests/*.c"},
libs = {tek:ref "libjzon", tek:ref "libmy", "criterion"}
}
-- a target for a library that is pulled from a git repository
tek:pull "libmy" {
git = "git@github.com:nasso/libmy"
}
return tek:make()
```
[Epitech]: https://www.epitech.eu