Add LICENSE.BSD-3-Clause file
[platform/upstream/libxkbcommon.git] / meson.build
index 25ff32e..a8650c1 100644 (file)
@@ -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 = [