Change-Id: Ie6fad921bb51cf8ae52359096ea9e425dd4e2c2c
man_pages = []
# Tools
-#build_tools = have_getopt_long
+if get_option('enable-tools')
+build_tools = have_getopt_long
+else
build_tools = false
+endif
+
if build_tools
libxkbcommon_tools_internal = static_library(
'tools-internal',
value: true,
description: 'Enable building libxkbregistry',
)
-
+option(
+ 'enable-tools',
+ type: 'boolean',
+ value: true,
+ description: 'Building libxkbcommon tools',
+)
-Denable-docs=false \
-Denable-wayland=false \
-Denable-xkbregistry=false \
+ -Denable-tools=false \
--prefix /usr \
--libdir %{_libdir} \
builddir
## disable xkbregistry ##
#%{_libdir}/libxkbregistry.so.0*
+## diable tools ##
+#%{_bindir}/*
+#/usr/libexec/xkbcommon/*
+#%doc %{_mandir}/man?/*
+
%files devel
%manifest %{name}.manifest
%defattr(-,root,root)