summary refs log tree commit diff
path: root/pkgs/development/libraries/malcontent/better-separation.patch
blob: cd91760bff5940dee6f4fb1e6655da1c6ce8ef41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/meson.build b/meson.build
index a6c477d..f7b2f0a 100644
--- a/meson.build
+++ b/meson.build
@@ -125,8 +125,8 @@ test_env = [
   'LC_ALL=C.UTF-8',
 ]
 
-subdir('accounts-service')
 if not get_option('use_system_libmalcontent')
+  subdir('accounts-service')
   subdir('libmalcontent')
 else
   libmalcontent_api_version = '0'
@@ -137,11 +137,17 @@ endif
 if get_option('ui').enabled()
   subdir('libmalcontent-ui')
 endif
-subdir('malcontent-client')
+if not get_option('use_system_libmalcontent')
+  subdir('malcontent-client')
+endif
 if get_option('ui').enabled()
   subdir('malcontent-control')
 endif
-subdir('pam')
+if not get_option('use_system_libmalcontent')
+  subdir('pam')
+endif
 subdir('po')
 
-meson.add_install_script('build-aux/meson_post_install.py')
+if get_option('ui').enabled()
+  meson.add_install_script('build-aux/meson_post_install.py')
+endif