GithubHelp home page GithubHelp logo

isabella232 / sys-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gtk-rs/sys

0.0 0.0 0.0 5.84 MB

DEPRECATED, each crate has its own sys folder now.

Home Page: http://gtk-rs.org/

License: MIT License

Makefile 0.03% Rust 99.53% C 0.44% C++ 0.01%

sys-2's Introduction

sys

Autogenerated FFI definitions for various GNOME libraries.

Building

This repository contains the "sys" crates โ€“ FFI definitions intended for use in the actual bindings (e.g. gtk).

Each crate expects the development files of the respective library to be installed on the system.

Library versions

The installed library version is detected via pkg-config in the build script, which controls conditional compilation so only the functions availiable in that library version are visible.

For instance, if the gdk-sys crate's build script detects libgdk3 version 3.12, it sets a number of cfg directives gdk_3_4, gdk_3_6, ..., up togdk_3_12. Correspondingly, the definitions of functions introduced in version x.y carry #[cfg(gdk_x_y)] attributes. (The build script actually contains a complete list of the versions it knows, 3.4 doesn't have any special meaning, it's just the first in that list in that crate). The build script passes that set of directives on to its dependencies, so a depenendent crate's build script will see

env::var("DEP_GDK_CFG").unwrap() == "gdk_3_4 gdk_3_6 gdk_3_8 gdk_3_10 gdk_3_12"

Generating

> make

will build the generator in gir and generate the crates using specifications from conf and GIR definitions from gir-files.

Currently gir-files is populated from the gnome-staging ppa. Using a single set of GIR definitions for all platforms and versions is considered good enough at this point.

sys-2's People

Contributors

guillaumegomez avatar gkoz avatar epashkin avatar sdroege avatar sfanxiang avatar xanathar avatar tmiasko avatar bilelmoussaoui avatar seungha-yang avatar brainblasted avatar kinnison avatar razrfalcon avatar ignatenkobrain avatar dvhaeren avatar mathieuduponchelle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.