sernatur/src/meson.build

40 lines
1.1 KiB
Meson
Raw Normal View History

2018-11-01 21:52:30 -03:00
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
2018-10-18 16:31:50 -03:00
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')
2018-11-01 21:52:30 -03:00
pq_dep = dependency('libpq', version: '>=10.0')
posix_dep = meson.get_compiler('vala').find_library('posix')
2018-10-18 16:31:50 -03:00
# this is how to link against a c lib
#libsystemd_lib = meson.get_compiler('c').find_library('libsystemd')
2018-11-01 21:52:30 -03:00
#cc = meson.get_compiler('c')
2018-10-18 16:31:50 -03:00
# -no-pie so that the executable is double clickable in gui
2018-10-28 16:39:54 -03:00
#if cc.get_id() == 'gcc'
# c_args = ['-no-pie']
# link_args = ['-no-pie']
#else
# c_args ''
# link_args ''
#endif
2018-10-18 16:31:50 -03:00
vala_sources = files(
'sernatur.vala',
2018-10-20 16:38:33 -03:00
'sernatur-window.vala')
2018-10-18 16:31:50 -03:00
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,
vala_args: vala_args,
2018-12-23 15:52:08 -03:00
dependencies: [glib_dep, gobject_dep, gtk_dep, gmodule_dep, pq_dep, posix_dep],
2018-10-18 16:31:50 -03:00
install: true)