Add SQLiteCpp subproject
This commit is contained in:
parent
b4c9b013a0
commit
e94131ac32
5 changed files with 36 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -4,3 +4,6 @@
|
|||
[submodule "subprojects/date"]
|
||||
path = subprojects/date
|
||||
url = https://github.com/HowardHinnant/date.git
|
||||
[submodule "subprojects/SQLiteCpp/SQLiteCpp"]
|
||||
path = subprojects/SQLiteCpp/SQLiteCpp
|
||||
url = https://github.com/SRombauts/SQLiteCpp.git
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "oro/api.hpp"
|
||||
#include "orotool_config.hpp"
|
||||
#include "SQLiteCpp/SQLiteCpp.h"
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
|
|
@ -5,6 +5,10 @@ restc_cpp_dep = dependency('restc-cpp', version: '>=0.1.1',
|
|||
],
|
||||
)
|
||||
|
||||
sqlitecpp_dep = dependency('sqlitecpp', version: '>=3.0.0',
|
||||
fallback: ['SQLiteCpp', 'sqlitecpp_dep'],
|
||||
)
|
||||
|
||||
base_url = get_option('base_url').strip()
|
||||
if not base_url.endswith('/')
|
||||
base_url = base_url + '/'
|
||||
|
@ -27,6 +31,6 @@ executable(meson.project_name(),
|
|||
'oro/shops.cpp',
|
||||
project_config_file,
|
||||
install: true,
|
||||
dependencies: [restc_cpp_dep],
|
||||
dependencies: [restc_cpp_dep, sqlitecpp_dep],
|
||||
include_directories: date_incdir,
|
||||
)
|
||||
|
|
1
subprojects/SQLiteCpp/SQLiteCpp
Submodule
1
subprojects/SQLiteCpp/SQLiteCpp
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit f757b640b1a900544241346fe4711de7cb5c8ffd
|
26
subprojects/SQLiteCpp/meson.build
Normal file
26
subprojects/SQLiteCpp/meson.build
Normal file
|
@ -0,0 +1,26 @@
|
|||
project('SQLiteCpp', 'cpp',
|
||||
version: '3.0.0',
|
||||
meson_version: '>=0.49.2',
|
||||
default_options: ['cpp_std=gnu++11'],
|
||||
)
|
||||
|
||||
sqlite_dep = dependency('sqlite3', version: '>=3.7.15')
|
||||
|
||||
pub_incdir = include_directories('SQLiteCpp/include')
|
||||
|
||||
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',
|
||||
install: true,
|
||||
include_directories: [pub_incdir],
|
||||
dependencies: [sqlite_dep],
|
||||
)
|
||||
|
||||
sqlitecpp_dep = declare_dependency(
|
||||
link_with: sqlitecpp_target,
|
||||
include_directories: pub_incdir,
|
||||
)
|
Loading…
Add table
Reference in a new issue