sernatur/lib/meson.build

57 lines
1.3 KiB
Meson
Raw Normal View History

2019-01-03 19:47:43 -03:00
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
pq_dep = dependency('libpq', version: '>=9.0')
lib_sources = files(
2019-01-13 19:53:13 -03:00
'db.vala',
2019-01-03 19:47:43 -03:00
'dbwrapper.vala',
2019-01-13 19:53:13 -03:00
'misc.vala',
'queries.vala',
2019-01-03 19:47:43 -03:00
'db/arrienda.vala',
'db/asociado.vala',
'db/categoria.vala',
'db/ciudad.vala',
'db/contacto_emergencia.vala',
'db/descuento.vala',
'db/empresa.vala',
'db/enfermedad.vala',
'db/especialidad.vala',
'db/guia.vala',
'db/lugar.vala',
'db/participa.vala',
'db/posee.vala',
'db/realiza.vala',
'db/region.vala',
2019-01-13 19:53:13 -03:00
'db/regiones_sin_descuento.vala',
2019-01-03 19:47:43 -03:00
'db/requerir_auto.vala',
'db/tiene_enfermedad.vala',
2019-01-15 13:12:38 -03:00
'db/total_arriendos.vala',
'db/total_coordinadores.vala',
'db/total_turistas.vala',
'db/total_vehiculos.vala',
2019-01-03 19:47:43 -03:00
'db/tour.vala',
'db/turista.vala',
2019-01-15 13:12:38 -03:00
'db/valores_tours.vala',
'db/vehiculo.vala',
'db/views.vala')
2019-01-03 19:47:43 -03:00
2019-01-05 00:28:18 -03:00
vala_args = ['--vapidir=' + join_paths(meson.source_root(), 'vapi')]
2019-01-03 19:47:43 -03:00
2019-01-05 00:28:18 -03:00
lib = library(meson.project_name(),
2019-01-03 19:47:43 -03:00
lib_sources,
2019-01-05 00:28:18 -03:00
vala_header: 'lib' + meson.project_name() + '.h',
vala_vapi: 'lib' + meson.project_name() + '.vapi',
# vala_gir: 'LibSernatur-1.0.0.gir',
2019-01-03 19:47:43 -03:00
vala_args: vala_args,
dependencies: [glib_dep, gobject_dep, pq_dep],
version: '1.0.0',
2019-01-05 00:28:18 -03:00
soversion: '0',
2019-01-03 19:47:43 -03:00
install: true,
install_dir: [true, true, true])
pkg_mod = import('pkgconfig')
2019-01-05 00:28:18 -03:00
pkg_mod.generate(lib)
lib_dep = declare_dependency(
link_with: lib)