From: jeon Date: Fri, 15 Jan 2021 04:11:41 +0000 (+0900) Subject: packaging: make a option to select enable/disable tools X-Git-Tag: accepted/tizen/unified/20240109.155348~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b3774ace991a396752ff0a846fdfb5c38424551;p=platform%2Fupstream%2Flibxkbcommon.git packaging: make a option to select enable/disable tools Change-Id: Ie6fad921bb51cf8ae52359096ea9e425dd4e2c2c --- diff --git a/meson.build b/meson.build index 25ff32e..a8650c1 100644 --- a/meson.build +++ b/meson.build @@ -416,8 +416,12 @@ endif man_pages = [] # Tools -#build_tools = get_option('enable-tools') and cc.has_header_symbol('getopt.h', 'getopt_long', prefix: '#define _GNU_SOURCE') +if get_option('enable-tools') +build_tools = get_option('enable-tools') and cc.has_header_symbol('getopt.h', 'getopt_long', prefix: '#define _GNU_SOURCE') +else build_tools = false +endif + if build_tools # Common resources libxkbcommon_tools_internal_sources = [ diff --git a/packaging/libxkbcommon.spec b/packaging/libxkbcommon.spec index ced4a49..186a061 100644 --- a/packaging/libxkbcommon.spec +++ b/packaging/libxkbcommon.spec @@ -58,6 +58,7 @@ meson setup \ -Denable-docs=false \ -Denable-wayland=false \ -Denable-xkbregistry=false \ + -Denable-tools=false \ --prefix /usr \ --libdir %{_libdir} \ builddir @@ -80,6 +81,11 @@ ninja -C builddir install ## disable xkbregistry ## #%{_libdir}/libxkbregistry.so.0* +## diable tools ## +#%{_bindir}/* +#/usr/libexec/xkbcommon/* +#%doc %{_mandir}/man?/* + %files devel %manifest %{name}.manifest %defattr(-,root,root)