forked from sergiotarxz/mangareader
Adding support for the meson build system.
This commit is contained in:
parent
6c6ec886b6
commit
19bab8dd5a
9
Makefile
9
Makefile
@ -1,9 +0,0 @@
|
|||||||
CC := gcc
|
|
||||||
LIBS := libadwaita-1 gtk4 libsoup-2.4 libxml-2.0 libpcre2-8 gio-2.0
|
|
||||||
INCDIR := -I ./include
|
|
||||||
CFLAGS := $(shell pkg-config --cflags ${LIBS}) -Wall
|
|
||||||
LDFLAGS := $(shell pkg-config --libs ${LIBS})
|
|
||||||
CC_COMMAND := ${CC} ${INCDIR} ${CFLAGS}
|
|
||||||
all: build
|
|
||||||
build:
|
|
||||||
${CC_COMMAND} src/view/picture.c src/util/gobject_utility_extensions.c src/view/detail_manga.c src/util/regex.c src/util/string.c src/util/xml.c src/util/soup.c src/view/list_view_manga.c src/view/main_view.c src/manga.c src/backend/readmng.c src/main.c -o main ${LDFLAGS} -ggdb
|
|
33
meson.build
Normal file
33
meson.build
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
project('openmg', 'c')
|
||||||
|
|
||||||
|
inc = include_directories('include')
|
||||||
|
|
||||||
|
openmgdeps = [
|
||||||
|
dependency('libadwaita-1'),
|
||||||
|
dependency('gtk4'),
|
||||||
|
dependency('libsoup-2.4'),
|
||||||
|
dependency('libxml-2.0'),
|
||||||
|
dependency('libpcre2-8'),
|
||||||
|
dependency('gio-2.0')
|
||||||
|
]
|
||||||
|
|
||||||
|
sources = [
|
||||||
|
'src/view/picture.c',
|
||||||
|
'src/util/gobject_utility_extensions.c',
|
||||||
|
'src/view/detail_manga.c',
|
||||||
|
'src/util/regex.c',
|
||||||
|
'src/util/string.c',
|
||||||
|
'src/util/xml.c',
|
||||||
|
'src/util/soup.c',
|
||||||
|
'src/view/list_view_manga.c',
|
||||||
|
'src/view/main_view.c',
|
||||||
|
'src/manga.c',
|
||||||
|
'src/backend/readmng.c',
|
||||||
|
'src/main.c',
|
||||||
|
]
|
||||||
|
|
||||||
|
executable('openmg',
|
||||||
|
sources,
|
||||||
|
dependencies : openmgdeps,
|
||||||
|
include_directories : inc
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user