2021-11-03 19:54:53 +01:00
|
|
|
project('openmg', 'c')
|
|
|
|
|
|
|
|
inc = include_directories('include')
|
|
|
|
|
|
|
|
openmgdeps = [
|
|
|
|
dependency('libadwaita-1'),
|
|
|
|
dependency('gtk4'),
|
|
|
|
dependency('libsoup-2.4'),
|
|
|
|
dependency('libxml-2.0'),
|
|
|
|
dependency('libpcre2-8'),
|
2021-11-27 23:43:39 +01:00
|
|
|
dependency('gio-2.0'),
|
2022-01-16 01:32:46 +01:00
|
|
|
dependency('sqlite3'),
|
|
|
|
dependency('json-glib-1.0'),
|
2021-11-03 19:54:53 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
2021-11-15 22:26:20 +01:00
|
|
|
'src/view/chapter_view.c',
|
2021-11-06 01:36:07 +01:00
|
|
|
'src/view/list_view_chapter.c',
|
2021-11-03 19:54:53 +01:00
|
|
|
'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',
|
2021-11-06 01:36:07 +01:00
|
|
|
'src/chapter.c',
|
2021-11-03 19:54:53 +01:00
|
|
|
'src/backend/readmng.c',
|
2021-11-27 23:43:39 +01:00
|
|
|
'src/database.c',
|
|
|
|
'src/database/statement.c',
|
2021-11-30 22:38:48 +01:00
|
|
|
'src/view/explore.c',
|
2022-01-16 01:32:46 +01:00
|
|
|
'src/view/search.c',
|
2021-11-03 19:54:53 +01:00
|
|
|
'src/main.c',
|
|
|
|
]
|
2021-11-22 20:18:56 +01:00
|
|
|
|
|
|
|
link_arguments = [
|
2021-11-27 23:43:39 +01:00
|
|
|
'-lm'
|
2021-11-22 20:18:56 +01:00
|
|
|
]
|
2022-01-19 00:29:44 +01:00
|
|
|
|
|
|
|
images_on_lists = get_option('images')
|
2022-01-23 09:58:01 +01:00
|
|
|
is_windows = get_option('windows')
|
2022-01-19 00:29:44 +01:00
|
|
|
|
2022-01-23 09:58:01 +01:00
|
|
|
if not is_windows
|
|
|
|
link_arguments += ['-ldl']
|
|
|
|
endif
|
|
|
|
|
|
|
|
cArgs = []
|
2022-01-19 00:29:44 +01:00
|
|
|
if images_on_lists
|
2022-01-23 09:58:01 +01:00
|
|
|
cArgs += ['-DLIST_IMAGES']
|
2022-01-19 00:29:44 +01:00
|
|
|
endif
|
2022-01-23 09:58:01 +01:00
|
|
|
|
2021-11-03 19:54:53 +01:00
|
|
|
executable('openmg',
|
|
|
|
sources,
|
|
|
|
dependencies : openmgdeps,
|
2021-11-03 20:32:02 +01:00
|
|
|
include_directories : inc,
|
2021-11-22 20:18:56 +01:00
|
|
|
install : true,
|
2022-01-19 00:29:44 +01:00
|
|
|
link_args : link_arguments,
|
|
|
|
c_args: cArgs
|
2021-11-03 19:54:53 +01:00
|
|
|
)
|