summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml8
-rw-r--r--Cargo.toml12
-rw-r--r--README.txt3
-rw-r--r--build/Makefile4
4 files changed, 18 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index dff4eb1d..1055a131 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,10 @@
+language: rust
+
before_install:
- yes | sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main"
- yes | sudo add-apt-repository "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main"
- - yes | sudo add-apt-repository ppa:hansjorg/rust
- - yes | sudo add-apt-repository ppa:cmrx64/cargo
- sudo apt-get update
install:
- - sudo apt-get install --force-yes libclang-3.4-dev rust-nightly cargo
+ - sudo apt-get install --force-yes libclang-3.4-dev
script:
- - cargo build
+ - LIBCLANG_PATH=/usr/lib/llvm-3.4/lib cargo build --verbose
diff --git a/Cargo.toml b/Cargo.toml
index e2d5cd03..45af9ab4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,11 +1,17 @@
[package]
+
name = "rust-bindgen"
-version = "0.0.0"
-authors = [ "crabtw" ]
+version = "0.12.0"
+authors = ["Jyun-Yan You <jyyou.tw@gmail.com>"]
+
+build = ["make -e -C build"]
+
+[lib]
-[[lib]]
name = "bindgen"
path = "src/lib.rs"
+plugin = true
[[bin]]
+
name = "bindgen"
diff --git a/README.txt b/README.txt
index e1855433..0505b1ab 100644
--- a/README.txt
+++ b/README.txt
@@ -15,8 +15,7 @@ Note: The libclang.so has to be statically linked with LLVM
Building
--------
- $ rustc lib.rs
- $ rustc -L . bindgen.rs
+ $ cargo build
Note: If you want to use Apple's version of libclang on OS X, you will need
to add this to both commands:
diff --git a/build/Makefile b/build/Makefile
new file mode 100644
index 00000000..fd3a9182
--- /dev/null
+++ b/build/Makefile
@@ -0,0 +1,4 @@
+LIBCLANG_PATH=/usr/lib
+
+all:
+ ln -sf $(LIBCLANG_PATH)/libclang.so $(OUT_DIR)