Bug 101686

Summary: meson build weirdness
Product: Wayland Reporter: Michi <woskimi>
Component: libinputAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: peter.hutterer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Michi 2017-07-04 09:42:11 UTC
Hi,

I've been trying to use the meson build system with not much success so far.

First of all, when running meson for the first time, i.e. initializing the build directory, meson tries to resolve all compulsory dependencies. This is weird, because the options in the meson_options.txt can only be changed in a second run, which makes the options almost useless.

And that's the second point. If I saw this correctly, the build did not pick up the fact that I ran mesonconf with -Dtests=false and -Ddocumentation=false respectively; despite these settings the respective targets are getting built.

I hope I was able to explain the problem properly

bye Michi
Comment 1 userwithuid 2017-07-04 13:20:10 UTC
The options can be used during first setup as well. So you would just do

mkdir builddir
cd builddir
meson -Ddocumentation=false -Dtests=false ..
Comment 2 Peter Hutterer 2017-07-05 01:14:33 UTC
added some explanations, doc is online now too. Thanks for the bug report

commit 7b98f8ef479fc1d370b0b2fe4d61fda7241cd76b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Wed Jul 5 09:39:29 2017 +1000

    doc: expand on the meson build instructions

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.