|
@@ -28,10 +28,26 @@ if path_systemd_unit_dir == ''
|
|
|
path_systemd_unit_dir = pkgconfig_systemd.get_pkgconfig_variable('systemduserunitdir')
|
|
|
endif
|
|
|
|
|
|
+with_daemon = get_option('with-daemon')
|
|
|
+with_examples = get_option('with-examples')
|
|
|
+
|
|
|
+# Library is always required
|
|
|
subdir('lib')
|
|
|
-subdir('daemon')
|
|
|
-subdir('example')
|
|
|
-subdir('data')
|
|
|
+
|
|
|
+# The daemon can be disabled if necessary, allowing multilib builds of the
|
|
|
+# main library
|
|
|
+if with_daemon == true
|
|
|
+ subdir('daemon')
|
|
|
+
|
|
|
+ # All installed data is currently daemon specific
|
|
|
+ subdir('data')
|
|
|
+endif
|
|
|
+
|
|
|
+# Optionally allow building of examples
|
|
|
+if with_examples == true
|
|
|
+ subdir('example')
|
|
|
+endif
|
|
|
+
|
|
|
|
|
|
report = [
|
|
|
' Build configuration:',
|
|
@@ -43,6 +59,12 @@ report = [
|
|
|
' libdir: @0@'.format(path_libdir),
|
|
|
' includedir: @0@'.format(path_includedir),
|
|
|
' systemd user unit directory: @0@'.format(path_systemd_unit_dir),
|
|
|
+ '',
|
|
|
+ ' Options:',
|
|
|
+ ' ========',
|
|
|
+ '',
|
|
|
+ ' daemon: @0@'.format(with_daemon),
|
|
|
+ ' examples: @0@'.format(with_examples),
|
|
|
]
|
|
|
|
|
|
# Output some stuff to validate the build config
|