summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libappstream-glib/meson.build27
-rw-r--r--meson.build5
2 files changed, 14 insertions, 18 deletions
diff --git a/libappstream-glib/meson.build b/libappstream-glib/meson.build
index 3607dfe..04bb50a 100644
--- a/libappstream-glib/meson.build
+++ b/libappstream-glib/meson.build
@@ -103,20 +103,19 @@ sources = [
asresources,
]
-if gperf.found()
- astagpriv = custom_target(
- 'gperf as-tag',
- output : 'as-tag-private.h',
- input : 'as-tag.gperf',
- command : [
- gperf,
- '@INPUT@',
- '--output-file',
- '@OUTPUT@'
- ]
- )
- sources = sources + [astagpriv]
-endif
+# gperf sources
+astagpriv = custom_target(
+ 'gperf as-tag',
+ output : 'as-tag-private.h',
+ input : 'as-tag.gperf',
+ command : [
+ gperf,
+ '@INPUT@',
+ '--output-file',
+ '@OUTPUT@'
+ ]
+)
+sources = sources + [astagpriv]
install_headers(headers, subdir : 'libappstream-glib')
diff --git a/meson.build b/meson.build
index c88bbdc..4d468c2 100644
--- a/meson.build
+++ b/meson.build
@@ -98,10 +98,7 @@ if get_option('enable-stemmer')
endif
# use gperf for faster string -> enum matching
-gperf = find_program('gperf', required : false)
-if gperf.found()
- conf.set('HAVE_GPERF', 1)
-endif
+gperf = find_program('gperf', required : true)
gnome = import('gnome')
i18n = import('i18n')