-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson: Add a Wrap subproject for xcb-keysyms
Add a Wrap subproject definition for the xcb-keysyms dependency. It is a very simple library with a single C source file, so it is easy to make Meson build definitions for it that get added on top of the tarball release fetched by Meson if xcb-keysyms is not available. This way it is guaranteed that there will be at least some support for keyboard input if the XKB extension is not available in the X server, or not enabled at build time.
- Loading branch information
Showing
5 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/subprojects/packagecache/ | ||
/subprojects/xcb-util-keysyms-0.4.1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
subprojects/packagefiles/xcb-util-keysyms-0.4.1/meson.build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
project('xcb-util-keysyms', 'c', | ||
version: '0.4.1', | ||
default_options: [ | ||
], | ||
) | ||
|
||
xcb_dep = dependency('xcb', version: '>=1.4') | ||
xcb_util_keysyms_dependencies = [xcb_dep, dependency('xproto', version: '>=7.0.8')] | ||
|
||
xcb_proto_version = xcb_dep.get_variable('xcbproto_version') | ||
assert(xcb_proto_version.version_compare('>=1.6'), | ||
'libxcb was compiled against xcb-proto @0@, it needs to be compiled against 1.6 or newer'.format(xcb_proto_version)) | ||
|
||
xcb_util_keysyms_lib = static_library('xcb-util-keysyms', | ||
'keysyms/keysyms.c', | ||
dependencies: xcb_util_keysyms_dependencies, | ||
pic: true, | ||
) | ||
|
||
xcb_util_keysyms_dep = declare_dependency( | ||
link_with: xcb_util_keysyms_lib, | ||
dependencies: xcb_util_keysyms_dependencies, | ||
include_directories: include_directories('keysyms'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[wrap-file] | ||
directory = xcb-util-keysyms-0.4.1 | ||
source_url = https://xcb.freedesktop.org/dist/xcb-util-keysyms-0.4.1.tar.xz | ||
source_filename = xcb-util-keysyms-0.4.1.tar.xz | ||
source_hash = 7c260a5294412aed429df1da2f8afd3bd07b7cba3fec772fba15a613a6d5c638 | ||
patch_directory = xcb-util-keysyms-0.4.1 | ||
|
||
[provide] | ||
xcb-keysyms = xcb_util_keysyms_dep |