Convert main source file from Vala to C

Bindings are incredible pain, this will be much easier.
This commit is contained in:
2020-09-23 14:12:58 +02:00
parent 0d35950715
commit 60bfaa1a97
11 changed files with 556 additions and 690 deletions

View File

@@ -7,8 +7,8 @@ conf = configuration_data()
conf.set('CMAKE_PROJECT_NAME', meson.project_name())
conf.set('project_VERSION', meson.project_version())
configure_file(
input : 'config.vala.in',
output : 'config.vala',
input : 'config.h.in',
output : 'config.h',
configuration : conf,
)
@@ -20,18 +20,13 @@ dependencies = [
dependency('gee-0.8'),
dependency('sqlite3'),
dependency('x11'),
# Only because of flock
meson.get_compiler('vala').find_library('posix'),
# Ours
dependency('xext'),
dependency('xextproto'),
]
sources = files(
'wdmtg.vala',
meson.current_build_dir() / 'config.vala',
)
executable('wdmtg', sources,
install : true,
gui = static_library('gui', 'gui.vala', 'config.vapi',
install : false,
dependencies : dependencies)
executable('wdmtg', 'wdmtg.c',
install : true,
link_with : [gui],
dependencies : [dependencies])