1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
|
fs = import('fs')
objsqlite3 = library('objsqlite3',
[
'SL3Connection.m',
'SL3PreparedStatement.m',
'exceptions/SL3BindObjectFailedException.m',
subdir('exceptions')
sources = files(
'SL3Connection.m',
'SL3PreparedStatement.m',
)
'exceptions/SL3ClearBindingsFailedException.m',
'exceptions/SL3Exception.m',
objsqlite3 = library('objsqlite3',
sources + exceptions_sources,
'exceptions/SL3ExecuteStatementFailedException.m',
'exceptions/SL3OpenFailedException.m',
'exceptions/SL3PrepareStatementFailedException.m',
'exceptions/SL3ResetStatementFailedException.m',
],
include_directories: incdir,
objc_args: ['-DSL3_PUBLIC_IVARS'],
dependencies: [objfw_dep, sqlite3_dep],
install: true)
install_headers(
[
headers = ['ObjSQLite3.h']
foreach source: sources + exceptions_sources
headers += fs.replace_suffix(source.full_path(), '.h')
endforeach
'ObjSQLite3.h',
'SL3Connection.h',
'SL3PreparedStatement.h',
'exceptions/SL3BindObjectFailedException.h',
'exceptions/SL3ClearBindingsFailedException.h',
'exceptions/SL3Exception.h',
'exceptions/SL3ExecuteStatementFailedException.h',
'exceptions/SL3OpenFailedException.h',
'exceptions/SL3PrepareStatementFailedException.h',
'exceptions/SL3ResetStatementFailedException.h',
],
subdir: 'ObjSQLite3')
install_headers(headers, subdir: 'ObjSQLite3')
|