-
Notifications
You must be signed in to change notification settings - Fork 569
X11 implementation of druid-shell #599
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
Changes from 19 commits
650c23b
661111b
cfd1b5a
3dce469
2d39f48
3f51c1d
7d2c053
f3b3994
179f781
c6f43ce
4b3889c
a004f8e
835ebd4
13dbbc6
ed0d646
99b7188
d357581
f185e7a
be56617
d910860
6967fcc
5622ac0
f32c1c2
a71e593
566e3c5
f9c6b82
49d7670
d1ebf76
9abe0d2
47905b0
743afe6
080fc9d
f1a40af
bb407d3
fe1405d
c641a99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ members = [ | |
"druid-shell", | ||
"druid-derive", | ||
] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ edition = "2018" | |
|
||
[features] | ||
use_gtk = ["gtk", "gtk-sys", "gio", "gdk", "gdk-sys", "glib", "glib-sys", "cairo-rs"] | ||
use_x11 = ["xcb", "cairo-sys-rs"] | ||
|
||
[package.metadata.docs.rs] | ||
default-target = "x86_64-pc-windows-msvc" | ||
|
@@ -22,14 +23,16 @@ lazy_static = "1.0" | |
time = "0.2.4" | ||
cfg-if = "0.1.10" | ||
|
||
cairo-rs = { version = "0.8.0", default_features = false, optional = true } | ||
cairo-rs = { version = "0.8.0", default_features = false, optional = true } | ||
cairo-sys-rs = { version = "0.9.2", default_features = false, optional = true } | ||
gio = { version = "0.8.0", optional = true } | ||
gdk = { version = "0.12.0", optional = true } | ||
gdk-sys = { version = "0.9.0", optional = true } | ||
gtk = { version = "0.8.0", optional = true } | ||
glib = { version = "0.9.1", optional = true } | ||
glib-sys = { version = "0.9.0", optional = true } | ||
gtk-sys = { version = "0.9.0", optional = true } | ||
xcb = { version = "0.9.0", features = ["thread", "xlib_xcb", "randr"], optional = true } | ||
|
||
[target.'cfg(target_os="windows")'.dependencies] | ||
wio = "0.2" | ||
|
@@ -43,8 +46,9 @@ cocoa = "0.20.0" | |
objc = "0.2.5" | ||
cairo-rs = { version = "0.8.0", default_features = false } | ||
|
||
# TODO(x11/dependencies): only use feature "xcb" if using XCB | ||
[target.'cfg(target_os="linux")'.dependencies] | ||
cairo-rs = { version = "0.8.0", default_features = false } | ||
cairo-rs = { version = "0.8.0", default_features = false, features = ["xcb"] } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's annoying that we need to always have these on for linux; it means that our x11 backend depends on gtk. I'm not sure what the best solution is. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I guess we could technically just split that and make more-specific There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unfortunately you can't use feature targets in this way. :/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, dang. Sounds like it should be a feature. Wonder if there's a Rust / Cargo feature request laying around somewhere... |
||
gio = "0.8.0" | ||
gdk = "0.12.0" | ||
gdk-sys = "0.9.0" | ||
|
Uh oh!
There was an error while loading. Please reload this page.