Skip to content

Commit f99afd4

Browse files
authored
Merge pull request #86 from xobs/remove-cmake-dep
Remove cmake dependency
2 parents 6846252 + 3f754e7 commit f99afd4

File tree

6 files changed

+296
-43
lines changed

6 files changed

+296
-43
lines changed

.travis.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
language: rust
2-
rust:
3-
- stable
4-
- beta
5-
- nightly
6-
matrix:
2+
jobs:
73
allow_failures:
84
- rust: nightly
9-
before_install:
10-
- sudo apt-get -qq update
11-
- sudo apt-get install -y cmake
12-
- sudo apt-get install -y libgtk-3-dev
5+
include:
6+
- env: TEST_CMD=xvfb-run
7+
rust: nightly
8+
- env: TEST_CMD=xvfb-run
9+
rust: beta
10+
- env: TEST_CMD=xvfb-run
11+
rust: stable
12+
- env: MACOSX_DEPLOYMENT_TARGET=10.7 SKIP_INSTALL=1
13+
rust: stable
14+
os: osx
15+
before_install: |
16+
[ "x$SKIP_INSTALL" != "x" ] || sudo apt-get -qq update
17+
[ "x$SKIP_INSTALL" != "x" ] || sudo apt-get install -y libgtk-3-dev
18+
1319
script:
1420
- cd ui-sys
1521
- cargo build --verbose --tests --examples
16-
- xvfb-run cargo test
22+
- $TEST_CMD cargo test
1723
- cd ../iui
1824
- cargo build --verbose --tests --examples
19-
- xvfb-run cargo test
25+
- $TEST_CMD cargo test
2026
after_success: |
2127
[ $TRAVIS_BRANCH = master ] &&
2228
[ $TRAVIS_PULL_REQUEST = false ] &&

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Check out the [`examples/`](https://github.com/rust-native-ui/libui-rs/tree/0.3.
4848
This repository contains multiple Rust crates:
4949

5050
* `iui` is the safe Rust wrapper, to be used by most users.
51-
* `ui-sys` is the raw unsafe bindings to the `libui` C code. Requires `cmake` so it can build `libui`. `libui` is included as a submodule.
51+
* `ui-sys` is the raw unsafe bindings to the `libui` C code. `libui` is included as a submodule.
5252

5353
Also be sure to look at our [changelog](CHANGELOG.md) and learn [how to contribute](CONTRIBUTING.md).
5454

@@ -60,8 +60,7 @@ default features `fetch` and `build`. With `fetch` disabled, it will simply buil
6060
existing sources without updating them, and with `build` disabled it will build nothing,
6161
assuming either a system or local (in `./lib/`) version of `libui` is available.
6262

63-
Note that _most of the time_, building `libui` on the fly is what you want. It does however
64-
require a copy of cmake, essential build tools, et cetera.
63+
Note that _most of the time_, building `libui` on the fly is what you want.
6564

6665
## Acknowledgments
6766

iui/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ maintenance = { status = "actively-developed" }
4141
bitflags = "1.0"
4242
libc = "0.2"
4343
failure = "0.1.1"
44-
ui-sys = { path = "../ui-sys", version = "0.2.1" }
45-
44+
ui-sys = { path = "../ui-sys", version = "0.2.1" }

iui/src/controls/progressbar.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use ui_sys::{self, uiControl, uiProgressBar};
2020
/// # use iui::prelude::*;
2121
/// # use iui::controls::{ProgressBar, ProgressBarValue};
2222
/// # let ui = UI::init().unwrap();
23+
/// # if cfg!(target_os = "macos") { return; }
2324
/// # let mut window = Window::new(&ui, "Test Window", 0, 0, WindowType::NoMenubar);
2425
/// let mut progressbar = ProgressBar::indeterminate(&ui);
2526
/// progressbar.set_value(&ui, 54);

ui-sys/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ build = []
4848
libc = "0.2"
4949

5050
[build-dependencies]
51-
cmake = "0.1"
5251
bindgen = "0.31"
53-
52+
cc = "1.0"
53+
embed-resource = "1.3"
54+
pkg-config = "0.3"

0 commit comments

Comments
 (0)