Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove references to cairo on macOS. #943

Merged
merged 2 commits into from
May 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,19 @@ 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).
luleyleo marked this conversation as resolved.
Show resolved Hide resolved

Those changes made it into druid via [#905].
This means that druid no longer requires cairo on macOS and uses Core Graphics instead.

### Added

Expand Down Expand Up @@ -99,6 +109,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 @@ -167,6 +178,7 @@ 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
Expand All @@ -175,6 +187,7 @@ While some features like the clipboard, menus or file dialogs are not yet availa
[#928]: https://github.com/xi-editor/druid/pull/928
[#940]: https://github.com/xi-editor/druid/pull/940
[#942]: https://github.com/xi-editor/druid/pull/942
[#943]: https://github.com/xi-editor/druid/pull/943

## [0.5.0] - 2020-04-01

Expand Down Expand Up @@ -205,6 +218,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