Fix SQLiteCpp meson scripts.
This commit is contained in:
parent
ada38348ee
commit
6b41e08403
2 changed files with 24 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ compile_commands.json
|
|||
links.txt
|
||||
*.bin
|
||||
subprojects/curlcpp/
|
||||
subprojects/SQLiteCpp/
|
||||
|
|
|
@ -6,7 +6,7 @@ project('SQLiteCpp', 'cpp',
|
|||
|
||||
sqlite_dep = dependency('sqlite3', version: '>=3.32.1')
|
||||
|
||||
pub_incdir = include_directories('SQLiteCpp/include')
|
||||
pub_incdir = include_directories('include')
|
||||
|
||||
compiler_opts = []
|
||||
if get_option('sqlite_enable_column_metadata')
|
||||
|
@ -23,12 +23,12 @@ if get_option('sqlite_use_legacy_struct')
|
|||
endif
|
||||
|
||||
sqlitecpp_target = library(meson.project_name(),
|
||||
'SQLiteCpp/src/Backup.cpp',
|
||||
'SQLiteCpp/src/Column.cpp',
|
||||
'SQLiteCpp/src/Database.cpp',
|
||||
'SQLiteCpp/src/Exception.cpp',
|
||||
'SQLiteCpp/src/Statement.cpp',
|
||||
'SQLiteCpp/src/Transaction.cpp',
|
||||
'src/Backup.cpp',
|
||||
'src/Column.cpp',
|
||||
'src/Database.cpp',
|
||||
'src/Exception.cpp',
|
||||
'src/Statement.cpp',
|
||||
'src/Transaction.cpp',
|
||||
install: true,
|
||||
include_directories: [pub_incdir],
|
||||
dependencies: [sqlite_dep],
|
||||
|
@ -40,4 +40,20 @@ sqlitecpp_dep = declare_dependency(
|
|||
link_with: sqlitecpp_target,
|
||||
include_directories: pub_incdir,
|
||||
compile_args: compiler_opts,
|
||||
dependencies: sqlite_dep.partial_dependency(includes: true),
|
||||
)
|
||||
|
||||
install_headers(
|
||||
'include/SQLiteCpp/Assertion.h',
|
||||
'include/SQLiteCpp/Backup.h',
|
||||
'include/SQLiteCpp/Column.h',
|
||||
'include/SQLiteCpp/Database.h',
|
||||
'include/SQLiteCpp/Exception.h',
|
||||
'include/SQLiteCpp/ExecuteMany.h',
|
||||
'include/SQLiteCpp/SQLiteCpp.h',
|
||||
'include/SQLiteCpp/Statement.h',
|
||||
'include/SQLiteCpp/Transaction.h',
|
||||
'include/SQLiteCpp/Utils.h',
|
||||
'include/SQLiteCpp/VariadicBind.h',
|
||||
subdir: meson.project_name(),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue