Migreate build system to Meson

FossilOrigin-Name: f2b266d4a62165383911e1575eaecce9234e845ce48040bf86494c9fb68f7366
This commit is contained in:
Jonathan Schleifer 2024-08-17 00:27:29 +00:00
parent 854e63554c
commit 4f3969acfb
17 changed files with 59 additions and 5950 deletions

View file

@ -1,16 +0,0 @@
include ../extra.mk
SHARED_LIB = ${OBJIRC_SHARED_LIB}
STATIC_LIB = ${OBJIRC_STATIC_LIB}
LIB_MAJOR = ${OBJIRC_LIB_MAJOR}
LIB_MINOR = ${OBJIRC_LIB_MINOR}
SRCS = IRCConnection.m \
IRCUser.m
INCLUDES = ${SRCS:.m=.h} \
ObjIRC.h
include ../buildsys.mk
LD = ${OBJC}

20
src/meson.build Normal file
View file

@ -0,0 +1,20 @@
fs = import('fs')
sources = files(
'IRCConnection.m',
'IRCUser.m',
)
objirc = library('objirc',
sources,
include_directories: incdir,
dependencies: [objfw_dep],
soversion: '0.0.0',
install: true)
headers = ['ObjIRC.h']
foreach source: sources
headers += fs.replace_suffix(source.full_path(), '.h')
endforeach
install_headers(headers, subdir: 'ObjIRC')