Skip to content

Commit

Permalink
Remove references to cairo on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
xStrom committed May 15, 2020
1 parent 57a0c35 commit 169b6e3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 32 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/bloat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
# if it isn't an issue comment run every time, otherwise only run if the comment starts with '/bloat'
if: (!startsWith(github.event_name, 'issue_comment') || startsWith(github.event.comment.body, '/bloat'))
steps:
- name: install cairo (macOS)
run: brew install cairo

- name: checkout
uses: actions/checkout@v2

Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: install cairo
run: brew install cairo
if: contains(matrix.os, 'mac')

- name: install libgtk-3-dev libx11-dev
run: |
sudo apt update
Expand Down Expand Up @@ -236,10 +232,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: install cairo
run: brew install cairo
if: contains(matrix.os, 'mac')

- name: install libgtk-dev libx11-dev
run: |
sudo apt update
Expand Down Expand Up @@ -303,10 +295,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: install cairo
run: brew install cairo
if: contains(matrix.os, 'mac')

- name: install libgtk-dev
run: |
sudo apt update
Expand Down
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ While still incomplete this lays the foundation for running druid on Linux witho

#### Mostly complete Wasm backend for druid-shell. ([#759])

[@elrnv] continued the work of [@tedsta] and implemented a mostly complete Wasm backend and enabled all druid examples to [run in the browser](https://elrnv.github.io/druid-wasm-examples/).
[@elrnv] continued the work of [@tedsta] and implemented a mostly complete Wasm backend and enabled
all druid examples to [run in the browser](https://elrnv.github.io/druid-wasm-examples/).

While some features like the clipboard, menus or file dialogs are not yet available, all fundamental features are there.
While some features like the clipboard, menus or file dialogs are not yet available,
all fundamental features are there.

#### Using Core Graphics on macOS. ([#905])

[@cmyr] continued the work of [@jrmuizel] and implemented Core Graphics support for piet in
[piet#176](https://github.com/linebender/piet/pull/176).

Those changes made it into druid via [#905].

### Added

Expand Down Expand Up @@ -99,6 +108,7 @@ While some features like the clipboard, menus or file dialogs are not yet availa
- Added hot glow option to multiwin example. ([#845] by [@xStrom])
- Added new example for blocking functions. ([#840] by [@mastfissh])
- Added a changelog containing development since the 0.5 release. ([#889] by [@finnerale])
- Removed references to cairo on macOS. ([#943] by [@xStrom])

### Maintenance

Expand Down Expand Up @@ -166,13 +176,15 @@ While some features like the clipboard, menus or file dialogs are not yet availa
[#898]: https://github.com/xi-editor/druid/pull/898
[#900]: https://github.com/xi-editor/druid/pull/900
[#903]: https://github.com/xi-editor/druid/pull/903
[#905]: https://github.com/xi-editor/druid/pull/905
[#909]: https://github.com/xi-editor/druid/pull/909
[#917]: https://github.com/xi-editor/druid/pull/917
[#920]: https://github.com/xi-editor/druid/pull/920
[#924]: https://github.com/xi-editor/druid/pull/924
[#925]: https://github.com/xi-editor/druid/pull/925
[#928]: https://github.com/xi-editor/druid/pull/928
[#940]: https://github.com/xi-editor/druid/pull/940
[#943]: https://github.com/xi-editor/druid/pull/943

## [0.5.0] - 2020-04-01

Expand Down Expand Up @@ -203,6 +215,7 @@ Last release without a changelog :(
[@mastfissh]: https://github.com/mastfissh
[@Zarenor]: https://github.com/Zarenor
[@yrns]: https://github.com/yrns
[@jrmuizel]: https://github.com/jrmuizel

[Unreleased]: https://github.com/xi-editor/druid/compare/v0.5.0...master
[0.5.0]: https://github.com/xi-editor/druid/compare/v0.4.0...v0.5.0
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ couple of [non-druid examples].

### piet

Druid relies on the [piet library] for drawing and text layout. Piet is a 2D
graphics abstraction with multiple backends: `piet-direct2d`, `piet-cairo`, and
`piet-web` are currently available, and a GPU backend is planned. In terms of
OS support, macOS and Linux use `piet-cairo`, and Windows uses `piet-direct2d`.
Druid relies on the [piet library] for drawing and text layout. Piet is a 2D graphics
abstraction with multiple backends: `piet-direct2d`, `piet-coregraphics`, `piet-cairo`,
`piet-web`, and `piet-svg` are currently available, and a GPU backend is planned.
In terms of druid platform support via piet, macOS uses `piet-coregraphics`,
Linux uses `piet-cairo`, Windows uses `piet-direct2d`, and web uses `piet-web`.

```rust
use druid::kurbo::{BezPath, Point, Rect};
Expand Down Expand Up @@ -237,11 +238,6 @@ druid = { git = "https://github.com/xi-editor/druid.git", version = "0.5" }

### Platform notes

#### macOS

On macOS, druid requires [cairo]; if you use homebrew, `brew install cairo`
should be sufficient. Removing this dependency is on the roadmap.

#### Linux

On Linux, druid requires gtk+3; see [gtk-rs dependencies] for installation
Expand Down Expand Up @@ -283,7 +279,6 @@ active and friendly community.
[basic utility and layout widgets]: ./druid/src/widget
[Flutter's box layout model]: https://api.flutter.dev/flutter/rendering/BoxConstraints-class.html
[value types]: https://sinusoid.es/lager/model.html#id2
[cairo]: https://www.cairographics.org
[gtk-rs dependencies]: http://gtk-rs.org/docs/requirements.html
[Rust-native GUI experiments]: https://areweguiyet.com
[CONTRIBUTING.md]: ./CONTRIBUTING.md
Expand Down
5 changes: 0 additions & 5 deletions docs/src/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ application, then it will show you how to set up a basic application, build it a
## Setting up Druid dependencies
In addition to including the druid library in your project

### macOS
On macOS, druid requires [cairo]; if you use homebrew, `brew install cairo`
should be sufficient. Removing this dependency is on the roadmap.

### Linux
On Linux, druid requires gtk+3.

Expand Down Expand Up @@ -41,5 +37,4 @@ druid = "0.5.0"
druid = { git = "https://github.com/xi-editor/druid.git", branch = "master" }
```

[cairo]: https://www.cairographics.org
[gtk-rs dependencies]: http://gtk-rs.org/docs/requirements.html

0 comments on commit 169b6e3

Please sign in to comment.