projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
text.c: use strncpy instead of strcpy for better security
[platform/upstream/libxkbcommon.git]
/
meson.build
diff --git
a/meson.build
b/meson.build
index
eaef4fb
..
a8650c1
100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-245,6
+245,7
@@
elif cc.get_argument_syntax() == 'msvc'
libxkbcommon_link_deps += libxkbcommon_def
libxkbcommon_link_args += '/DEF:' + libxkbcommon_def.full_path()
endif
libxkbcommon_link_deps += libxkbcommon_def
libxkbcommon_link_args += '/DEF:' + libxkbcommon_def.full_path()
endif
+
libxkbcommon = library(
'xkbcommon',
'include/xkbcommon/xkbcommon.h',
libxkbcommon = library(
'xkbcommon',
'include/xkbcommon/xkbcommon.h',
@@
-415,7
+416,12
@@
endif
man_pages = []
# Tools
man_pages = []
# Tools
+if get_option('enable-tools')
build_tools = get_option('enable-tools') and cc.has_header_symbol('getopt.h', 'getopt_long', prefix: '#define _GNU_SOURCE')
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 = [
if build_tools
# Common resources
libxkbcommon_tools_internal_sources = [