Git Product home page Git Product logo

wrapdb's Introduction

Meson Wrap Database

This is a collection of projects that use Meson as their build system, or have a meson port maintained by the Meson team. They can be used as subproject to any Meson project that needs them as dependency.

How to test a wrap

Clone this repository locally, and set the wraps option with a comma separated list of wraps that needs to be built.

For example to test libjpeg-turbo and zlib:

meson setup builddir -Dwraps=libjpeg-turbo,zlib
meson compile -C builddir

How to contribute new wraps

Getting Started

  • Write my-project.wrap file and add it in subprojects/ directory.

  • If upstream project's build system is not Meson, a port can be added in subprojects/packagefiles/my-project/meson.build and patch_directory = my-subproject should be added into the wrap file. Note that the whole subprojects/packagefiles/my-project subtree will be copied onto the upstream's source tree, but it is generally not accepted to override upstream files.

  • It is often easier to develop in subprojects/my-project directory and update packagefiles directory at the end. This can be done using tools/update-packagefiles.py script.

Wrap Release Meta

Add your release information in releases.json. It is a dictionary where the key is the wrap name and the value is a dictionary containing with the following keys:

Option Description
versions Sorted list (newest first) of release tags in the format <upstream version>-<revision> where the revision starts at 1 and is incremented when a change is made in the meson port.
dependency_names (Optional) List of dependency names (e.g. pkg-config name such as glib-2.0) provided by the wrap. It must match information from wrap's [provide] section.
program_names (Optional) List of program names (e.g. glib-compile-resources) provided by the wrap. It must match information from wrap's [provide] section.

CI Configure Meta

Configure CI in ci_config.json. It is a dictionary where the key is the wrap name and the value is a dictionary containing with the following keys:

Option Description
build_options (Optional) List of <your subproject>:option=value strings that will be used to build the project on the CI.
debian_packages (Optional) List of extra packages that will be installed on debian-like CI runners. Dependencies that can be provided by other wraps should not be added here because it's better to test that fallbacks work. When running tools/sanity_checks.py locally, this list will be printed but not installed.
brew_packages (Optional) List of extra packages that will be installed on MacOS CI runners.
choco_packages (Optional) List of extra packages that will be installed on Windows CI runners.
linux_only (Optional) If set to true, indicates the wrap should be tested only on Linux CI.
fatal_warnings (Optional) If set to false removes --fatal-meson-warning. Use this only when there is no other way to fix the warning.
skip_dependency_check (Optional) List of platform-specific dependency names that are not always provided by the project.
test_options (Optional) List of arguments that will be passed to meson test command (e.g. --timeout-multiplier, --no-suite).
skip_tests (Optional) If set to true tests will not be run. This is useful when tests are known to fail because of upstream issues, or require a specific environment hard to set up.

Running sanity test locally

  • Test locally by running tools/sanity_checks.py script. It will be executed on the CI and must always return success before merging any PR.

  • Create Pull Request with your changes.

How to import one of those wraps into my project

Run meson wrap install <name> on the top source dir of your project. It will install subprojects/<name>.wrap file used by Meson to download the dependency. For more information on the wrap command refer to the documentation.

wrapdb's People

Contributors

amyspark avatar benoit-pierre avatar bgilbert avatar bitrunner avatar dcbaker avatar dnicolodi avatar eli-schwartz avatar hrxi avatar jan200101 avatar jmillan avatar jpakkane avatar kcgen avatar klokik avatar lazka avatar legeana avatar mattyclarkson avatar nazar-pc avatar neheb avatar nirbheek avatar noah1510 avatar sarum9in avatar shermp avatar stephanlachnit avatar talisein avatar tmayoff avatar totto16 avatar tristan957 avatar unixy2k avatar v1993 avatar xclaesse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wrapdb's Issues

meson subprojects update broken?

I am using the google-benchmark wrap which looks like this:

[wrap-file]
directory = benchmark-1.4.1
source_url = https://github.com/google/benchmark/archive/v1.4.1.zip
source_filename = benchmark-1.4.1.zip
source_hash = 61ae07eb5d4a0b02753419eb17a82b7d322786bb36ab62bd3df331a4d47c00a7

patch_url = https://wrapdb.mesonbuild.com/v1/projects/google-benchmark/1.4.1/1/get_zip
patch_filename = google-benchmark-1.4.1-1-wrap.zip
patch_hash = 4cc5fe02ebd4fc82e110919b7977d7463eb2a99e4ecb9feca920eab6fd911d67

Everything works fine except executing meson subprojects update fails with the following error:

ERROR: WrapDB connection failed to https://wrapdb.mesonbuild.com/v1/query/get_latest/benchmark with error HTTP Error 500: INTERNAL SERVER ERROR

Project proposal for WrapDB-UI

Hello everyone.

Iโ€™m planning on building an application for WrapDB dev tools to make it easier on developers that tend to understand graphical representation over terminal.

I have some questions about the Wrap systems tools such as following:

Questions:

  • Is wrapdev-tools the main kit for developing wraps?

  • Is there a plans to extend the tools?

  • Have all of the currently available commands been documented?

  • If so where can I find the documentation?

  • What is the usual process of creating a new wrap?

  • Is wrapdb the only wrap service available for wrap dependencies?

  • Are there some things I should know before I start building the application?

Incomplete dependencies in libpng's meson.build

The meson.build that wrapdb provides, for libpng (verified on libpng 1.6.34, seems to be the same on newer versions as well), seems to be missing a dependency:

The meson.build has got a zlib_dep which is set as a dependency for the libpng library itself. The meson.build file also contains png_test = executable('pngtest', 'pngtest.c', dependencies : png_dep), where pngtest.c directly includes zlib.h. If zlib.h isn't available in a compiler default include path, it isn't found for building the test executable.

Changing it into png_test = executable('pngtest', 'pngtest.c', dependencies : [png_dep, zlib_dep]) seems to work for me.

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.