-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
4,337 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "sdl3-ttf-src" | ||
version = "2.20.0-release-401-gec2271b" | ||
edition = "2021" | ||
authors = ["SDL developers"] | ||
license = "Zlib" | ||
description = "Source code of the SDL3_ttf library" | ||
repository = "https://github.com/maia-s/sdl3-sys-rs" | ||
# documentation = "https://docs.rs/sdl3-ttf-src" | ||
keywords = ["sdl"] | ||
categories = ["no-std"] | ||
exclude = [ | ||
"/SDL_ttf/external/harfbuzz/test", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This crate contains the source code of the SDL3_ttf library. It's used by the | ||
`sdl3-ttf-sys` crate when building from source. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#![no_std] | ||
#![doc = include_str!("../README.md")] | ||
|
||
/// Location of the SDL3_ttf source code | ||
#[cfg(not(windows))] | ||
pub const SOURCE_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/SDL_ttf"); | ||
#[cfg(windows)] | ||
pub const SOURCE_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "\\SDL_ttf"); | ||
|
||
/// Revision | ||
pub const REVISION: &str = "SDL3_ttf-release-2.20.0-401-gec2271b"; | ||
|
||
/// Version part of the revision | ||
pub const VERSION: &str = "2.20.0"; | ||
|
||
/// Tag part of the revision | ||
pub const REVISION_TAG: &str = "release-2.20.0"; | ||
|
||
/// Tag part of the revision without version | ||
pub const REVISION_TAG_BASE: &str = "release"; | ||
|
||
/// Offset from tag part of the revision | ||
pub const REVISION_OFFSET: &str = "401"; | ||
|
||
/// Hash part of the revision | ||
pub const REVISION_HASH: &str = "gec2271b"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[package] | ||
name = "sdl3-ttf-sys" | ||
version = "0.0.0" | ||
edition = "2021" | ||
authors = ["Maia S. R."] | ||
license = "Zlib" | ||
description = "Low level Rust bindings for SDL3_ttf" | ||
repository = "https://github.com/maia-s/sdl3-sys-rs" | ||
documentation = "https://docs.rs/sdl3-ttf-sys" | ||
keywords = ["sdl", "font"] | ||
categories = ["external-ffi-bindings", "no-std"] | ||
links = "SDL3_ttf" | ||
|
||
[features] | ||
default = [] | ||
|
||
# Build and link SDL3_ttf from source instead of linking a pre-existing library | ||
build-from-source = ["dep:cmake", "dep:rpkg-config", "dep:sdl3-ttf-src"] | ||
|
||
# Build and link a static SDL3_ttf library from source | ||
build-from-source-static = ["build-from-source", "link-static"] | ||
|
||
# Link SDL3_ttf as a static library. The default is to link a shared/dynamic library. | ||
link-static = [] | ||
|
||
# Use pkg-config to get link flags for SDL3_ttf. Only used when not building from source. | ||
# This has no effect if the link-framework feature is enabled. | ||
use-pkg-config = ["dep:pkg-config"] | ||
|
||
# Use vcpkg to get link flags for SDL3_ttf. Only used when not building from source. | ||
# The link-static feature has no effect when using vcpkg. | ||
# This has no effect if the link-framework feature is enabled. | ||
use-vcpkg = ["dep:vcpkg"] | ||
|
||
# Implement the Debug trait for applicable types | ||
debug-impls = ["sdl3-sys/debug-impls"] | ||
|
||
[dependencies] | ||
sdl3-sys = { version = "0.4", path = "../sdl3-sys" } | ||
|
||
[build-dependencies.cmake] | ||
version = "0.1" | ||
optional = true | ||
|
||
[build-dependencies.pkg-config] | ||
version = "0.3" | ||
optional = true | ||
|
||
[build-dependencies.rpkg-config] | ||
version = "0.1.2" | ||
optional = true | ||
|
||
[build-dependencies.sdl3-ttf-src] | ||
version = "2.20.0-release-401-gec2271b" | ||
path = "../sdl3-ttf-src" | ||
optional = true | ||
|
||
[build-dependencies.vcpkg] | ||
version = "0.2" | ||
optional = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# sdl3-ttf-sys | ||
|
||
This version of `sdl3-ttf-sys` has bindings for SDL_ttf version `2.20.0-release-401-gec2271b` and earlier. |
Oops, something went wrong.