fs = import('fs')

subdir('exceptions')

sources = files(
  'MTXClient.m',
  'MTXRequest.m',
  'MTXSQLite3Storage.m',
)

objmatrix = library('objmatrix',
  sources + exceptions_sources,
  include_directories: incdir,
  dependencies: objfw_dep,
  soversion: '0.0.0',
  install: true)

headers = ['MTXStorage.h', 'ObjMatrix.h']
foreach source: sources + exceptions_sources
  headers += fs.replace_suffix(source.full_path(), '.h')
endforeach

install_headers(headers, subdir: 'ObjMatrix')
<p class="generalError">
SQLITE_FULL(13): statement aborts at 27: [REPLACE INTO config(name,value,mtime)VALUES(&#39;baseurl:https://fl.nil.im/objmatrix&#39;,1,now())] database or disk is full
SQL: REPLACE INTO config(name,value,mtime)VALUES(&#39;baseurl:https://fl.nil.im/objmatrix&#39;,1,now())
</p>
