Migrate build system to Meson
FossilOrigin-Name: a27ad474c4851fba5efbb876e5c1c174de1fea165ea9c1d4d1f2018b175b5080
This commit is contained in:
parent
597a2dc711
commit
eb1d0eb207
19 changed files with 76 additions and 5971 deletions
25
src/Makefile
25
src/Makefile
|
@ -1,25 +0,0 @@
|
|||
include ../extra.mk
|
||||
|
||||
SUBDIRS = exceptions
|
||||
|
||||
SHARED_LIB = ${OBJPGSQL_SHARED_LIB}
|
||||
STATIC_LIB = ${OBJPGSQL_STATIC_LIB}
|
||||
FRAMEWORK = ${OBJPGSQL_FRAMEWORK}
|
||||
LIB_MAJOR = 0
|
||||
LIB_MINOR = 1
|
||||
|
||||
SRCS = PGConnection.m \
|
||||
PGResult.m \
|
||||
PGResultRow.m
|
||||
INCLUDES := ${SRCS:.m=.h} \
|
||||
ObjPgSQL.h
|
||||
|
||||
OBJS_EXTRA = ${EXCEPTIONS_EXCEPTIONS_A}
|
||||
LIB_OBJS_EXTRA = ${EXCEPTIONS_EXCEPTIONS_LIB_A}
|
||||
|
||||
include ../buildsys.mk
|
||||
|
||||
CPPFLAGS += -I. -Iexceptions
|
||||
LD = ${OBJC}
|
||||
FRAMEWORK_LIBS := ${OBJFW_FRAMEWORK_LIBS} ${LIBS}
|
||||
LIBS := ${OBJFW_LIBS} ${LIBS}
|
|
@ -1,14 +0,0 @@
|
|||
include ../../extra.mk
|
||||
|
||||
STATIC_PIC_LIB_NOINST = ${EXCEPTIONS_LIB_A}
|
||||
STATIC_LIB_NOINST = ${EXCEPTIONS_A}
|
||||
|
||||
SRCS = PGCommandFailedException.m \
|
||||
PGConnectionFailedException.m \
|
||||
PGException.m
|
||||
|
||||
INCLUDES = ${SRCS:.m=.h}
|
||||
|
||||
include ../../buildsys.mk
|
||||
|
||||
CPPFLAGS += -I. -I..
|
5
src/exceptions/meson.build
Normal file
5
src/exceptions/meson.build
Normal file
|
@ -0,0 +1,5 @@
|
|||
exceptions_sources = files(
|
||||
'PGCommandFailedException.m',
|
||||
'PGConnectionFailedException.m',
|
||||
'PGException.m',
|
||||
)
|
22
src/meson.build
Normal file
22
src/meson.build
Normal file
|
@ -0,0 +1,22 @@
|
|||
fs = import('fs')
|
||||
|
||||
subdir('exceptions')
|
||||
|
||||
sources = files(
|
||||
'PGConnection.m',
|
||||
'PGResult.m',
|
||||
'PGResultRow.m',
|
||||
)
|
||||
|
||||
objpgsql = library('objpgsql',
|
||||
sources + exceptions_sources,
|
||||
include_directories: incdir,
|
||||
dependencies: [objfw_dep, libpq_dep],
|
||||
install: true)
|
||||
|
||||
headers = ['ObjPgSQL.h']
|
||||
foreach source: sources + exceptions_sources
|
||||
headers += fs.replace_suffix(source.full_path(), '.h')
|
||||
endforeach
|
||||
|
||||
install_headers(headers, subdir: 'ObjPgSQL')
|
Loading…
Add table
Add a link
Reference in a new issue