Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
Missing:
- [ ] Cross compilation support
- [ ] Option override (e.g. `enable(foo, None).disable(foo, None)`)
- [ ] Easy pkg-config chaining for multiple dependencies
- [ ] Nonstandard options (not --enable and --disable)
- [ ] Option Compatibility probe
  - [ ] Mapping profile to --dis/enable-debug when available
  - [ ] Not hardwire --disable-shared --enable-static
  • Loading branch information
lu-zero committed Mar 11, 2018
0 parents commit 7a2e47f
Show file tree
Hide file tree
Showing 5 changed files with 398 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

/target
**/*.rs.bk
Cargo.lock
15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "autotools"
version = "0.1.0"
authors = ["Luca Barbato <[email protected]>"]
license = "MIT/Apache-2.0"
keywords = ["build-dependencies"]
repository = "https://github.com/lu_zero/autotools-rs"
homepage = "https://github.com/lu_zero/autotools-rs"
description = """
A build dependency to build native libraries that use configure&make-style build systems
"""
readme = "README.md"

[dependencies]
cc = "1"
25 changes: 25 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright (c) 2018 Luca Barbato

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# autotools/configure&make support for build.rs

[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

A build dependency to compile a native library that uses [autotools][1] or
a compatible `configure` script + `make`.

It is based on [cmake-rs](https://github.com/alexcrichton/cmake-rs) and
the API tries to be as similar as possible to it.

``` toml
# Cargo.toml
[build-dependencies]
autotools = "0.1"
```
Loading

0 comments on commit 7a2e47f

Please sign in to comment.