2023-04-29 21:55:54 +02:00
|
|
|
## Copyright (C) 2022-2023 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
2021-02-11 23:49:35 +01:00
|
|
|
##
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; either version 3 of the License, or
|
|
|
|
## (at your option) any later version.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; if not, write to the Free Software Foundation,
|
|
|
|
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
|
2023-08-30 22:02:52 +02:00
|
|
|
thirdparty=join_paths('..', '..', 'thirdparty')
|
|
|
|
|
2021-02-11 23:49:35 +01:00
|
|
|
lib_mu_utils=static_library('mu-utils', [
|
2023-01-28 17:46:00 +01:00
|
|
|
'mu-command-handler.cc',
|
2023-07-03 19:29:51 +02:00
|
|
|
'mu-html-to-text.cc',
|
2023-05-11 22:19:31 +02:00
|
|
|
'mu-lang-detector.cc',
|
2023-01-28 17:46:00 +01:00
|
|
|
'mu-logger.cc',
|
|
|
|
'mu-option.cc',
|
|
|
|
'mu-readline.cc',
|
|
|
|
'mu-sexp.cc',
|
|
|
|
'mu-test-utils.cc',
|
|
|
|
'mu-utils-file.cc',
|
|
|
|
'mu-utils.cc'
|
|
|
|
], dependencies: [
|
|
|
|
glib_dep,
|
|
|
|
gio_dep,
|
2023-04-29 21:55:54 +02:00
|
|
|
gio_unix_dep,
|
2023-01-28 17:46:00 +01:00
|
|
|
config_h_dep,
|
2023-05-11 22:19:31 +02:00
|
|
|
readline_dep,
|
|
|
|
cld2_dep
|
2023-01-28 17:46:00 +01:00
|
|
|
], include_directories:
|
2023-08-30 22:02:52 +02:00
|
|
|
include_directories(['.', '..', thirdparty]),
|
2023-01-28 17:46:00 +01:00
|
|
|
install: false)
|
2021-02-11 23:49:35 +01:00
|
|
|
|
|
|
|
lib_mu_utils_dep = declare_dependency(
|
|
|
|
link_with: lib_mu_utils,
|
2023-07-03 19:41:06 +02:00
|
|
|
compile_args: '-DFMT_HEADER_ONLY',
|
|
|
|
include_directories:
|
2023-08-30 22:02:52 +02:00
|
|
|
include_directories(['.', '..', thirdparty]))
|
2021-02-11 23:49:35 +01:00
|
|
|
|
2023-07-03 19:29:51 +02:00
|
|
|
#
|
|
|
|
# tools
|
|
|
|
#
|
|
|
|
html2text = executable('mu-html2text',
|
|
|
|
'mu-html-to-text.cc',
|
|
|
|
dependencies: [ lib_mu_utils_dep, glib_dep ],
|
|
|
|
cpp_args: ['-DBUILD_HTML_TO_TEXT'],
|
|
|
|
install: false)
|
|
|
|
|
2022-11-07 17:19:53 +01:00
|
|
|
#
|
|
|
|
# tests
|
|
|
|
#
|
|
|
|
test('test-sexp',
|
|
|
|
executable('test-sexp', 'mu-sexp.cc',
|
2023-01-14 16:11:36 +01:00
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
|
|
|
dependencies: [glib_dep, lib_mu_utils_dep]))
|
2022-11-07 17:19:53 +01:00
|
|
|
|
2023-01-28 17:46:00 +01:00
|
|
|
test('test-regex',
|
|
|
|
executable('test-regex', 'mu-regex.cc',
|
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
|
|
|
dependencies: [glib_dep, lib_mu_utils_dep]))
|
|
|
|
|
2022-11-07 17:19:53 +01:00
|
|
|
test('test-command-handler',
|
|
|
|
executable('test-command-handler', 'mu-command-handler.cc',
|
2023-01-14 16:11:36 +01:00
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
|
|
|
dependencies: [glib_dep, lib_mu_utils_dep]))
|
|
|
|
|
|
|
|
test('test-utils-file',
|
|
|
|
executable('test-utils-file', 'mu-utils-file.cc',
|
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
2023-04-29 21:55:54 +02:00
|
|
|
dependencies: [glib_dep, gio_unix_dep,config_h_dep, lib_mu_utils_dep]))
|
2022-11-07 17:19:53 +01:00
|
|
|
|
2023-04-08 09:26:15 +02:00
|
|
|
test('test-logger',
|
|
|
|
executable('test-logger', 'mu-logger.cc',
|
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
2023-04-14 11:48:03 +02:00
|
|
|
dependencies: [glib_dep, lib_mu_utils_dep, thread_dep ]))
|
2023-04-08 09:26:15 +02:00
|
|
|
|
2023-05-11 22:19:31 +02:00
|
|
|
test('test-lang-detector',
|
|
|
|
executable('test-lang-detector', 'mu-lang-detector.cc',
|
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
2023-07-03 21:45:01 +02:00
|
|
|
dependencies: [ config_h_dep, glib_dep, lib_mu_utils_dep ]))
|
2023-05-11 22:19:31 +02:00
|
|
|
|
2023-07-03 19:29:51 +02:00
|
|
|
test('test-html-to-text',
|
|
|
|
executable('test-html-to-text', 'mu-html-to-text.cc',
|
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
|
|
|
dependencies: [glib_dep, lib_mu_utils_dep]))
|
|
|
|
|
|
|
|
|
2021-11-07 10:41:55 +01:00
|
|
|
subdir('tests')
|