Convert main source file from Vala to C
Bindings are incredible pain, this will be much easier.
This commit is contained in:
21
meson.build
21
meson.build
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user