sernatur/src/meson.build

40 lines
1014 B
Meson

gtk_dep = dependency('gtk+-3.0', version: '>=3.0.0')
# gmodule-export-2.0 is needed to connect the handlers
gmodule_dep = dependency('gmodule-2.0', version: '>=2.0')
libpq_dep = dependency('libpq')
# this is how to link against a c lib
#libsystemd_lib = meson.get_compiler('c').find_library('libsystemd')
cc = meson.get_compiler('c')
# -no-pie so that the executable is double clickable in gui
if cc.get_id() == 'gcc'
c_args = ['-no-pie']
link_args = ['-no-pie']
else
c_args = ''
link_args = ''
endif
vala_sources = files(
'sernatur.vala',
'sernatur-window.vala'
)
sources = vala_sources
c_sources = [sernatur_gresource_c]
sources = vala_sources
sources += c_sources
vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapi')]
vala_args += ['--gresources='+join_paths(meson.source_root(),'data/ui/sernatur.gresource.xml')]
exe = executable('sernatur',
sources,
c_args: c_args,
link_args: link_args,
vala_args: vala_args,
dependencies: [gtk_dep, gmodule_dep, libpq_dep],
install: true)