mirror of
https://github.com/wez/wezterm.git
synced 2024-11-25 21:07:39 +03:00
58a2a30623
I'm experimenting with using cairo's 2D graphics for glyph related drawing operations, and perhaps more stuff in the UI in the future. The challenge is that no one has yet encapsulated its build in a cargo-friendly way. This commit is that attempt. The strategy is this: * `deps/cairo` is ostensibly the same thing as https://github.com/gtk-rs/gtk-rs-core/tree/master/cairo/sys which is the cairo-sys-rs crate * Its build.rs has been replaced with a version that builds from the C sources that are found in-tree; it will never look for the system cairo library * A pair of scripts to import pixman (a required dep of cairo) and cairo itself in a repeatable way are include, for if/when we need to update the vendored sources Cairo is a mature library and doesn't release very often. * The workspace sets a patch for crates.io so that cairo-rs has its cairo-sys-rs dep redirected to the local build. I'm not planning to upstream this stuff to gtk-rs-core as full cairo depends on a lot more things than are dealt with here, so it would be a PITA to handle that generally. This vendoring strips out things that are not used, so the cairo library that remains: * Is not internally thread safe; no TLS or mutex support is enabled in either of them. That's fine because the high level cairo-rs wrapper is not Send+Sync, which means that rust will only allow it to be used single threaded anyway. * Only has the basic recording and image surfaces * No platform support for win32/xlib/xcb and so on
43 lines
2.0 KiB
Plaintext
43 lines
2.0 KiB
Plaintext
The following is the MIT license, agreed upon by most contributors.
|
|
Copyright holders of new code should use this license statement where
|
|
possible. They may also add themselves to the list below.
|
|
|
|
/*
|
|
* Copyright 1987, 1988, 1989, 1998 The Open Group
|
|
* Copyright 1987, 1988, 1989 Digital Equipment Corporation
|
|
* Copyright 1999, 2004, 2008 Keith Packard
|
|
* Copyright 2000 SuSE, Inc.
|
|
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
|
|
* Copyright 2004, 2005, 2007, 2008, 2009, 2010 Red Hat, Inc.
|
|
* Copyright 2004 Nicholas Miell
|
|
* Copyright 2005 Lars Knoll & Zack Rusin, Trolltech
|
|
* Copyright 2005 Trolltech AS
|
|
* Copyright 2007 Luca Barbato
|
|
* Copyright 2008 Aaron Plattner, NVIDIA Corporation
|
|
* Copyright 2008 Rodrigo Kumpera
|
|
* Copyright 2008 André Tupinambá
|
|
* Copyright 2008 Mozilla Corporation
|
|
* Copyright 2008 Frederic Plourde
|
|
* Copyright 2009, Oracle and/or its affiliates. All rights reserved.
|
|
* Copyright 2009, 2010 Nokia Corporation
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice (including the next
|
|
* paragraph) shall be included in all copies or substantial portions of the
|
|
* Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|