Coder Social home page Coder Social logo

vcpkg-ports's Introduction

vcpkg-ports

Chlorie's custom vcpkg ports.

How to use

The easiest way to use my custom port registry is to enable manifest mode for your project. An example is like this:

{
    "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
    "name": "my-awesome-project",
    "version-string": "0.1.0",
    "dependencies": ["clu", "fmt"]
}

Then, you also need to write a vcpkg-configuration.json file referencing this repository. An example:

{
    "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg-configuration.schema.json",
    "default-registry": {
        "kind": "builtin",
        "baseline": "cc97b4536ae749ec0e4f643488b600b217540fb3"
    },
    "registries": [
        {
            "kind": "git",
            "baseline": "482edae84a774f1d1994c9ce1b0e51277c0f785b",
            "repository": "https://github.com/Chlorie/vcpkg-ports",
            // You need to list all the *transitive* dependencies you need from my registry here
            "packages": ["clu"]
        }
    ]
}

Note: You need to list all the transitive dependencies from my custom registry in the packages field. For example, if you need the hikari library from my ports, since hikari depends on clu, which is also in my registry, you need to list both clu and hikari in the packages field.

Since vcpkg forces the use of exact baselines, you must fill in valid commit refs in the respective fields there (or just use the example above). To update the baselines to the latest commit, see the next part.

Updating packages

Open your favorite terminal in the project root directory, and then run

vcpkg x-update-baseline

This command will fetch the latest commit of all the registries specified in your vcpkg-configuration.json and update the refs accordingly.

vcpkg-ports's People

Contributors

chlorie avatar

Watchers

 avatar

vcpkg-ports's Issues

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.