https://github.com/unn4m3d/extbuilder
https://github.com/unn4m3d/extbuilder
crystal
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unn4m3d/extbuilder
- Owner: unn4m3d
- License: mit
- Created: 2017-03-04T12:06:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T13:17:22.000Z (about 9 years ago)
- Last Synced: 2025-02-09T06:32:17.463Z (about 1 year ago)
- Topics: crystal
- Language: Crystal
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# extbuilder
A macro tool that allows you to build C dependencies automatically
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
extbuilder:
github: unn4m3d/extbuilder
```
## Usage
```crystal
require "extbuilder"
ExtBuilder.ext "../../ext/staticlib", static: true, output: "./staticlib"
lib StaticLib
end
```
Cmake is supported, as well as plain makefiles. There is also a thing called "Extfile" : a crystal program compiled with [this file](src/extbuilder/ext_prelude/extbuilder_prelude.cr) as prelude.
See example in spec directory.
## Contributing
1. Fork it ( https://github.com/unn4m3d/extbuilder/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [unn4m3d](https://github.com/unn4m3d)- creator, maintainer