Commit 77e3a6ca authored by Kai Lüke's avatar Kai Lüke

build: Document custom build switches

The build option usage specific to GNOME Disks
may not be discoverable for people new to meson.

Show the option usage when printing their current
value during the build configuration.

https://bugzilla.gnome.org/show_bug.cgi?id=790303
parent 8a276326
......@@ -5,6 +5,17 @@ http://mesonbuild.com/Quick-guide.html
configure the build directory:
meson builddir
(skip if not needed:
configure the build directory with options:
meson -D libsystemd=true|false -D gsd_plugin=true|false builddir
list the available options and their current values:
meson configure builddir
reconfigure a value:
meson configure builddir -D libsystemd=true|false -D gsd_plugin=true|false
)
compile:
cd builddir
ninja
......@@ -13,6 +24,7 @@ run GNOME Disks:
builddir/src/disks/gnome-disks
produce a release tarball:
cd builddir
ninja dist
This will build against the system libraries.
......
......@@ -149,5 +149,6 @@ output += ' sysconfdir: ' + gdu_sysconfdir + '\n\n'
output += ' Use libsystemd: ' + enable_libsystemd.to_string() + '\n'
output += ' Build g-s-d plug-in: ' + enable_gsd_plugin.to_string() + '\n\n'
output += ' compiler: ' + cc.get_id() + '\n'
output += ' cflags: ' + ' '.join(compiler_flags) + '\n'
output += ' cflags: ' + ' '.join(compiler_flags) + '\n\n'
output += ' (Change with: meson configure BUILDDIR -D libsystemd=true|false -D gsd_plugin=true|false)\n\n'
message(output)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment