Migrate build system to Meson
FossilOrigin-Name: 2aa27f332cc29dfdf07022ae56e1b0e0e896c3bdc204883e51ecd20772ff96e7
This commit is contained in:
parent
6f9897b332
commit
2c022c2de7
19 changed files with 71 additions and 6232 deletions
22
src/Makefile
22
src/Makefile
|
@ -1,22 +0,0 @@
|
|||
include ../extra.mk
|
||||
|
||||
SUBDIRS = exceptions
|
||||
|
||||
SHARED_LIB = ${OBJSQLITE3_SHARED_LIB}
|
||||
STATIC_LIB = ${OBJSQLITE3_STATIC_LIB}
|
||||
FRAMEWORK = ${OBJSQLITE3_FRAMEWORK}
|
||||
LIB_MAJOR = ${OBJSQLITE3_LIB_MAJOR}
|
||||
LIB_MINOR = ${OBJSQLITE3_LIB_MINOR}
|
||||
|
||||
SRCS = SL3Connection.m \
|
||||
SL3PreparedStatement.m
|
||||
INCLUDES := ${SRCS:.m=.h} \
|
||||
ObjSQLite3.h
|
||||
|
||||
OBJS_EXTRA = ${EXCEPTIONS_EXCEPTIONS_A}
|
||||
LIB_OBJS_EXTRA = ${EXCEPTIONS_EXCEPTIONS_LIB_A}
|
||||
|
||||
include ../buildsys.mk
|
||||
|
||||
CPPFLAGS += -I. -Iexceptions -DSL3_PUBLIC_IVARS
|
||||
LD = ${OBJC}
|
|
@ -1,19 +0,0 @@
|
|||
include ../../extra.mk
|
||||
|
||||
STATIC_PIC_LIB_NOINST = ${EXCEPTIONS_LIB_A}
|
||||
STATIC_LIB_NOINST = ${EXCEPTIONS_A}
|
||||
|
||||
SRCS = SL3BindObjectFailedException.m \
|
||||
SL3ClearBindingsFailedException.m \
|
||||
SL3Exception.m \
|
||||
SL3ExecuteStatementFailedException.m \
|
||||
SL3OpenFailedException.m \
|
||||
SL3PrepareStatementFailedException.m \
|
||||
SL3ResetStatementFailedException.m
|
||||
|
||||
INCLUDES = ${SRCS:.m=.h}
|
||||
|
||||
include ../../buildsys.mk
|
||||
|
||||
CPPFLAGS += -I. -I.. -DSL3_PUBLIC_IVARS
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
+ (instancetype)exceptionWithConnection: (SL3Connection *)connection
|
||||
SQLStatement: (OFConstantString *)SQLStatement
|
||||
errorCode: (int)errorCode;
|
||||
errorCode: (int)errorCode
|
||||
{
|
||||
return [[[self alloc] initWithConnection: connection
|
||||
SQLStatement: SQLStatement
|
||||
|
|
31
src/meson.build
Normal file
31
src/meson.build
Normal file
|
@ -0,0 +1,31 @@
|
|||
objsqlite3 = library('objsqlite3',
|
||||
[
|
||||
'SL3Connection.m',
|
||||
'SL3PreparedStatement.m',
|
||||
'exceptions/SL3BindObjectFailedException.m',
|
||||
'exceptions/SL3ClearBindingsFailedException.m',
|
||||
'exceptions/SL3Exception.m',
|
||||
'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(
|
||||
[
|
||||
'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')
|
Loading…
Add table
Add a link
Reference in a new issue