diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-11-04 15:40:40 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-11-08 11:49:50 -0800 |
commit | c0888158e30bfcd0ae6881b9d78c8122ce2d5f4e (patch) | |
tree | ea790d63960d82b68ae3013c074d007fd78b9907 /src | |
parent | 752d9cbc0efc51bdef2ea25fba2b92974327f6a6 (diff) |
Add a meson build system
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/meson.build | 46 |
2 files changed, 47 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 647359b..bd22c54 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -31,4 +31,4 @@ libxkbfileinclude_HEADERS = \ $(top_srcdir)/include/X11/extensions/XKMformat.h\ $(top_srcdir)/include/X11/extensions/XKBfile.h -EXTRA_DIST = magic +EXTRA_DIST = magic meson.build diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..30f405f --- /dev/null +++ b/src/meson.build @@ -0,0 +1,46 @@ +libxkbfile_sources = [ + 'cout.c', + 'maprules.c', + 'srvmisc.c', + 'xkbatom.c', + 'xkbbells.c', + 'xkbconfig.c', + 'xkbdraw.c', + 'xkberrs.c', + 'XKBfileInt.h', + 'xkbmisc.c', + 'xkbout.c', + 'xkbtext.c', + 'xkmout.c', + 'xkmread.c' +] + +deps = [ + dependency('kbproto'), + dependency('x11') +] + +includes = include_directories( + '../include/', + '../include/X11/extensions/' +) + +library('xkbfile', + dependencies: deps, + include_directories: includes, + install: true, + sources: libxkbfile_sources, + version: '1.0.2' +) + +libxkbfile_headers = [ + '../include/X11/extensions/XKM.h', + '../include/X11/extensions/XKBrules.h', + '../include/X11/extensions/XKBbells.h', + '../include/X11/extensions/XKBconfig.h', + '../include/X11/extensions/XKMformat.h', + '../include/X11/extensions/XKBfile.h' +] +install_headers(libxkbfile_headers, + subdir: 'X11' / 'extensions') + |