2023-03-20 01:01:22 +00:00
|
|
|
dependencies = [
|
|
|
|
dep_gee,
|
|
|
|
dep_glib,
|
|
|
|
dep_sqlite3,
|
|
|
|
]
|
|
|
|
sources = files(
|
|
|
|
'src/column.vala',
|
|
|
|
'src/database.vala',
|
|
|
|
'src/delete_builder.vala',
|
|
|
|
'src/insert_builder.vala',
|
|
|
|
'src/query_builder.vala',
|
|
|
|
'src/row.vala',
|
|
|
|
'src/statement_builder.vala',
|
|
|
|
'src/table.vala',
|
|
|
|
'src/update_builder.vala',
|
|
|
|
'src/upsert_builder.vala',
|
|
|
|
)
|
|
|
|
c_args = [
|
|
|
|
'-DG_LOG_DOMAIN="qlite"',
|
|
|
|
]
|
2023-06-21 22:04:39 +00:00
|
|
|
vala_args = [
|
|
|
|
'--vapidir', meson.current_source_dir() / 'vapi',
|
|
|
|
]
|
|
|
|
lib_qlite = library('qlite', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, version: '0.1', install: true, install_dir: [true, true, true])
|
2023-03-20 01:01:22 +00:00
|
|
|
dep_qlite = declare_dependency(link_with: lib_qlite, include_directories: include_directories('.'))
|
2023-06-21 22:04:39 +00:00
|
|
|
|
|
|
|
install_data('qlite.deps', install_dir: get_option('datadir') / 'vala/vapi') # TODO: workaround for https://github.com/mesonbuild/meson/issues/9756
|