Giter Site home page Giter Site logo

glue's Introduction

Glue

C++ dependency management is hard, is it possible to make it easy?

Rationale

There's no easy way to manage dependencies in the C++ projects.

Existing solutions rely on customizations/patches applied to 3rd party code and/or some kind of central repository to pull pre-built binaries from.

The problem is that it is extreemely hard and time consuming to patch/pre-build each ever created C++ library.

Inspiration

There are some successful tools which provide OS-specific way to manage 'packages':

Philosophy

Build system should produce binaries from source code. Dependency manager should take care about dependencies. KISS FTW.

Key features

  • it should be able to pull source code from remote location
  • it should be able to drive build process for Makefile, GNU Autotools, CMake, Boost.Build, Meson, Scons -based projects
  • it should be able to install multiple versions of the same library
  • it should be able to provide dependencies integration for CMake, Meson, Boost.Build build systems
  • it should be able to deal with the dependencies of dependencies
  • it should work on Windows, Linux, OS X in a uniform way

dependencies.yml

boost:
  git: [email protected]:boostorg/boost.git
  tag: boost-1.62.0
  build:
    unix:
      - bootstrap.sh --prefix=<%= Glue.install_dir %>
    win:
      - bootstrap
  install:
    unix:
      - ./b2 install
    win:
      - b2

gstreamer:
  file: https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.10.1.tar.xz
  build:
    all:
      - ./configure --prefix=<%= Glue.install_dir %>
      - make
  install:
    all:
      - make install
  dependencies:
    - glib

glib:
  # ...

Usage

  • glue install to install dependencies specified in dependencies.yml
  • glue generate [cmake|boost|meson] to generate integration files for build system
  • glue vendor to copy binary dependencies to ./vendor for packaging

glue's People

Contributors

yuriyvolkov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.