Can you glob source code with meson?

Is it possible to glob source code files in a meson build?

In meson can you test for presence of a directory in your project?

Using meson build, is it possible to test for the existence of a directory in my project? For example, I typically put acceptance tests next to my unit tests in a folder structure like...

How to run meson build system on windows?

I would like to use meson build system on windows. I am python noob. It looks like I installed it, but I do not know how to run it. I have installed python 3.6. I have installed meson from...

JSON Parsing Error: Unexpected character (s) at position 226025

I saw similar question on Stackoverflow but none of them helped me to solve my issue. So, I am asking for help as I have tried to find out what is the reason behind the error I am getting but...

How to use OpenMP in a C project built with meson

I am quite new to meson and C, please forgive me if the answer to this question is trivial ... I want to use OpenMP in a C project, and I am using meson as a build tool. I want to compile the...

Can Meson read the contents of a file

Is it possible for Meson to read the contents of a file into an array or a string? From here a string can be split into an array, and an array can be looped over with foreach, but I haven't been...

How do I speed up Meson build when many targets use the same C++ sources

I have a new meson project with 58 targets. Many of them use the same *.cc files, and meson builds each *.cc file once for each target, which is much slower than autotools. Also, the compile...

Device tree compiler not recognizes C syntax for include files

I want to compile my board device tree manually. I have downloaded the latest version of dtc from its official source, but when I try to run the following command, I get an error advising me to...

How do I derive an executable name from a source file in Meson build?

I'm trying to create a list of unit test targets in Meson, with each test case built from a single source file. The source files are defined with a files() command in a subdirectory: my_test_files...

Modify install prefix from meson script

I need to modify install prefix option in meson build script... My idea is, when the user select some special option, the install prefix is getting from external tool (specifically, using...

How to install gstreamer 1.0 badplugin for opencv?

On a Ubuntu 18.04 machine I am trying to use opencv 4.1.2 facedetect in a gstreamer 1.14.5 pipeline but unfortunately the plugin is not installed. I downloaded the gstreamer bad plugin code and...

Can the meson project version be assigned dynamically?

I am new to Meson so please forgive me if this is a stupid question. Simple Version of the Question: I want to be able to assign a dynamic version number to the meson project version at build...

Generate Makefile using meson build file

In one of our projects we have used Gstreamer good plugins. I see that each element has a Makefile for building. Now I wanted to upgrade rtpmanager code...

Failed to compile Boilerplate Generated Based on GstPlugin

I have followed the instruction available in Gst Plugin Development Basics in constructing the boilerplate for my sample plugin which is HelloWorld in this case. I have created the sample plugin...

How to use config.h

I know that a lot of GNU applications use a config.h to set arguments for compile time options, like paths to resources with prefix from Autotools or Meson. For example, in some cases it is...

how to build gst-rtsp-server on windows?

i got source code form https://github.com/GStreamer/gst-rtsp-server%EF%BC%8C then i follow https://mesonbuild.com/Getting-meson.html to Installing Meson and Ninja with the MSI installer. but when...

how to set debug and optimization flag with meson

I use meson 0.53.2 on ubuntu 20.04. I would like to have a maximally optimized executable (-Ofast) but contain all debug symbols (-g3) If I use --buildtype=release it optimizes -O2 and the...

Vala + i18n + gtk, How to make a working app?

I am trying to create a small demo program to understand how it works, gtk3 + i18n + meson, i would like to translate the window title _ ("Settings") from the normal string from english to italian...

How to use android ndk to compile glib 2.66 with meson?

Enviroment: Compiler: android-ndk-r21b, api 24 Ubuntu 20.04 Glib 2.66 I have built iconv, and have built glib 2.56 with make successfully, now i try to build glib 2.66 with meson, i build i run...

Use the Meson buildsystem on Windows with external libraries

I am using the Meson buildsystem for a C++ project on Windows. I installed Meson, Ninja and MinGW (using a Windows package manager called Chocolatey). But I don't know where I should place...

How to run cached Docker image in Github Action?

I don't know how to run a cached Docker image in Github Actions. I've followed a tutorial about Publishing Docker images to implement a task that would cache, build and push Docker image to a...

Yoto: gstreamer1.0-plugins-bad_1.16.3.bb:do_configure in yocto

I am always facing a problem if i wanted to build yocto or the qt toolchain. for example in the first run i have give the following command where the issue occurs the first time: bitbake...

Debugging Vala in VSCode on Linux

There is really no good documentation on how Vala and Visual Studio Code work together for a newbie to Vala and VSCode. When trying to work with vala projects on the command line(Ubuntu 20.04),...

This happened while following the gstreamer plugin example

First I downloaded git via git clone https://gitlab.freedesktop.org/gstreamer/gst-template.git command And shell $ cd gst-template/gst-plugin/src Completed entering the shell $...

Does meson has a general function to print out any type variables's value?

I've encountered some projects which uses meson to organize their building system. But when I want to debug their building system, I found it's difficult. The most important task is observing the...

ninja appends its default installation path to my DESTDIR

I'm building a package "foo" which uses meson with the intent that it be followed by ninja. So, I meson setup build_dir; cd build_dir; ninja and this works fine. Now, I want to install the package...

This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93

ChromeDriver is giving an error about its version being too low: This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93. I've updated pip's packages...

How to compile DPDK application such as examples to support C++?

How should I modify Makefiles of DPDK to support c++ compilation? I tried by adding CFLAGS += -lstdc++ to the Makefile of the helloworld example but it seems not working. Is there a more standard...

Meson / Ninja build system - How to run custom script at Uninstall?

Meson/Ninja provide an easy method to run a script at install time. For example, this line will tell Meson to run the glib-compile-schemas command to compile the GSettings on Linux (system...

How to print all dependencies in meson?

I checked out a gtk project inside a docker and during meson build found many dependencies are missing eg. libwayland-dev, libxrandr-dev... Because meson fails at the first missing dependency, I...