build a static obelisk library for easier linking with other software #16
@ -30,4 +30,5 @@ if docs_enabled
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
subdir('sqlite')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
20
sqlite/meson.build
Normal file
20
sqlite/meson.build
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
sqlite_sources = files(
|
||||||
|
'sqlite3.c'
|
||||||
|
)
|
||||||
|
|
||||||
|
sqlite_include_directories = include_directories(['.'])
|
||||||
|
|
||||||
|
sqlite_args = [
|
||||||
|
'-DSQLITE_OMIT_DESERIALIZE',
|
||||||
|
'-DSQLITE_OMIT_DEPRECATED',
|
||||||
|
'-DSQLITE_OMIT_JSON',
|
||||||
|
'-DSQLITE_OMIT_LOAD_EXTENSION',
|
||||||
|
'-DSQLITE_OMIT_PROGRESS_CALLBACK',
|
||||||
|
'-DSQLITE_DEFAULT_FOREIGN_KEYS=1',
|
||||||
|
'-DSQLITE_DEFAULT_AUTOVACUUM=1',
|
||||||
|
'-DSQLITE_DISABLE_LFS',
|
||||||
|
'-DSQLITE_OMIT_TEMPDB',
|
||||||
|
'-DSQLITE_OMIT_GET_TABLE',
|
||||||
|
'-DSQLITE_OMIT_COMPLETE',
|
||||||
|
'-DSQLITE_OMIT_COMPILEOPTION_DIAGS'
|
||||||
|
]
|
245165
sqlite/sqlite3.c
Normal file
245165
sqlite/sqlite3.c
Normal file
File diff suppressed because it is too large
Load Diff
12970
sqlite/sqlite3.h
Normal file
12970
sqlite/sqlite3.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -16,14 +16,21 @@ obelisk_lib_sources = files(
|
|||||||
)
|
)
|
||||||
|
|
||||||
obelisk_lib_sources += obelisk_model_sources
|
obelisk_lib_sources += obelisk_model_sources
|
||||||
|
obelisk_lib_sources += sqlite_sources
|
||||||
sqlite3 = dependency('sqlite3')
|
|
||||||
|
|
||||||
incdirs = include_directories(['.', 'include'])
|
incdirs = include_directories(['.', 'include'])
|
||||||
lib = library('obelisk',
|
|
||||||
|
lib = static_library('obelisk',
|
||||||
obelisk_lib_sources,
|
obelisk_lib_sources,
|
||||||
|
c_args : sqlite_args,
|
||||||
|
include_directories: [incdirs, sqlite_include_directories],
|
||||||
|
install : true
|
||||||
|
)
|
||||||
|
|
||||||
|
shared_library('obelisk',
|
||||||
|
obelisk_lib_sources,
|
||||||
|
c_args : sqlite_args,
|
||||||
include_directories: incdirs,
|
include_directories: incdirs,
|
||||||
dependencies : [sqlite3],
|
|
||||||
version : meson.project_version(),
|
version : meson.project_version(),
|
||||||
soversion : project_version_lib,
|
soversion : project_version_lib,
|
||||||
install : true
|
install : true
|
||||||
|
Loading…
Reference in New Issue
Block a user