2021-02-11 23:49:35 +01:00
|
|
|
## Copyright (C) 2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
|
|
|
##
|
|
|
|
## 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.
|
|
|
|
|
|
|
|
|
|
|
|
subdir('utils')
|
2022-03-19 17:56:10 +01:00
|
|
|
subdir('message')
|
2021-02-11 23:49:35 +01:00
|
|
|
subdir('index')
|
|
|
|
|
|
|
|
lib_mu=static_library(
|
|
|
|
'mu',
|
|
|
|
[
|
|
|
|
'mu-bookmarks.cc',
|
2022-02-19 21:08:54 +01:00
|
|
|
'mu-contacts-cache.cc',
|
2022-04-28 21:58:15 +02:00
|
|
|
'mu-maildir.cc',
|
2021-02-11 23:49:35 +01:00
|
|
|
'mu-parser.cc',
|
|
|
|
'mu-query-match-deciders.cc',
|
|
|
|
'mu-query-threads.cc',
|
2022-04-28 21:58:15 +02:00
|
|
|
'mu-query.cc',
|
2021-02-11 23:49:35 +01:00
|
|
|
'mu-runtime.cc',
|
|
|
|
'mu-script.cc',
|
|
|
|
'mu-server.cc',
|
|
|
|
'mu-store.cc',
|
|
|
|
'mu-tokenizer.cc',
|
2022-04-28 21:58:15 +02:00
|
|
|
'mu-xapian.cc'
|
2021-02-11 23:49:35 +01:00
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
glib_dep,
|
|
|
|
gio_dep,
|
|
|
|
gmime_dep,
|
|
|
|
xapian_dep,
|
2021-10-15 07:20:33 +02:00
|
|
|
guile_dep,
|
2021-02-11 23:49:35 +01:00
|
|
|
config_h_dep,
|
|
|
|
lib_mu_utils_dep,
|
2022-03-19 17:56:10 +01:00
|
|
|
lib_mu_message_dep,
|
2021-02-11 23:49:35 +01:00
|
|
|
lib_mu_index_dep
|
|
|
|
],
|
|
|
|
install: false)
|
|
|
|
|
2022-05-21 16:41:21 +02:00
|
|
|
|
2021-02-11 23:49:35 +01:00
|
|
|
lib_mu_dep = declare_dependency(
|
|
|
|
link_with: lib_mu,
|
2022-05-29 09:51:03 +02:00
|
|
|
dependencies: [ lib_mu_message_dep, thread_dep ],
|
2021-11-03 11:30:37 +01:00
|
|
|
include_directories:
|
2022-03-26 16:17:51 +01:00
|
|
|
include_directories(['.', '..']))
|
2021-02-11 23:49:35 +01:00
|
|
|
|
2022-06-08 23:03:58 +02:00
|
|
|
# dev helpers
|
|
|
|
tokenize = executable(
|
|
|
|
'tokenize',
|
|
|
|
[ 'mu-tokenizer.cc', 'tokenize.cc' ],
|
|
|
|
dependencies: [ lib_mu_utils_dep, glib_dep ],
|
|
|
|
install: false)
|
|
|
|
|
2021-11-07 10:41:55 +01:00
|
|
|
# test helpers
|
2021-02-11 23:49:35 +01:00
|
|
|
lib_test_mu_common=static_library('mu-test-common', [
|
2021-11-07 10:41:55 +01:00
|
|
|
'tests/test-mu-common.cc',
|
|
|
|
'tests/test-mu-common.hh'],
|
2021-02-11 23:49:35 +01:00
|
|
|
dependencies: [ glib_dep, thread_dep,
|
2022-03-26 16:17:51 +01:00
|
|
|
config_h_dep ])
|
2021-02-11 23:49:35 +01:00
|
|
|
lib_test_mu_common_dep=declare_dependency(
|
|
|
|
link_with: lib_test_mu_common,
|
2021-11-07 10:41:55 +01:00
|
|
|
include_directories: include_directories(['tests']))
|
2021-02-11 23:49:35 +01:00
|
|
|
|
2021-11-07 10:41:55 +01:00
|
|
|
# actual tests
|
2022-06-03 21:02:50 +02:00
|
|
|
|
|
|
|
test('test-threads',
|
|
|
|
executable('test-threads',
|
|
|
|
'mu-query-threads.cc',
|
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
|
|
|
dependencies: [glib_dep, lib_mu_dep, lib_test_mu_common_dep]))
|
|
|
|
test('test-contacts-cache',
|
|
|
|
executable('test-contacts-cache',
|
|
|
|
'mu-contacts-cache.cc',
|
|
|
|
install: false,
|
|
|
|
cpp_args: ['-DBUILD_TESTS'],
|
|
|
|
dependencies: [glib_dep, lib_mu_dep, lib_test_mu_common_dep]))
|
|
|
|
|
2021-11-07 10:41:55 +01:00
|
|
|
subdir('tests')
|