linux feed-fetcher
Some checks failed
CI - Multi-Platform Native / Build iOS (RSSuper) (push) Has been cancelled
CI - Multi-Platform Native / Build macOS (push) Has been cancelled
CI - Multi-Platform Native / Build Android (push) Has been cancelled
CI - Multi-Platform Native / Build Linux (push) Has been cancelled
CI - Multi-Platform Native / Build Summary (push) Has been cancelled
Some checks failed
CI - Multi-Platform Native / Build iOS (RSSuper) (push) Has been cancelled
CI - Multi-Platform Native / Build macOS (push) Has been cancelled
CI - Multi-Platform Native / Build Android (push) Has been cancelled
CI - Multi-Platform Native / Build Linux (push) Has been cancelled
CI - Multi-Platform Native / Build Summary (push) Has been cancelled
This commit is contained in:
@@ -17,6 +17,7 @@ json_dep = dependency('json-glib-1.0', version: '>= 1.4')
|
||||
sqlite_dep = dependency('sqlite3', version: '>= 3.0')
|
||||
gobject_dep = dependency('gobject-2.0', version: '>= 2.58')
|
||||
xml_dep = dependency('libxml-2.0', version: '>= 2.0')
|
||||
soup_dep = dependency('libsoup-3.0', version: '>= 3.0')
|
||||
|
||||
# Source files
|
||||
models = files(
|
||||
@@ -47,6 +48,14 @@ parser = files(
|
||||
'src/parser/feed-parser.vala',
|
||||
)
|
||||
|
||||
# Network files
|
||||
network = files(
|
||||
'src/network/network-error.vala',
|
||||
'src/network/http-auth-credentials.vala',
|
||||
'src/network/fetch-result.vala',
|
||||
'src/network/feed-fetcher.vala',
|
||||
)
|
||||
|
||||
# Main library
|
||||
models_lib = library('rssuper-models', models,
|
||||
dependencies: [glib_dep, gio_dep, json_dep],
|
||||
@@ -69,6 +78,14 @@ parser_lib = library('rssuper-parser', parser,
|
||||
vala_args: ['--vapidir', 'src/parser', '--pkg', 'libxml-2.0']
|
||||
)
|
||||
|
||||
# Network library
|
||||
network_lib = library('rssuper-network', network,
|
||||
dependencies: [glib_dep, gio_dep, json_dep, soup_dep],
|
||||
link_with: [models_lib],
|
||||
install: false,
|
||||
vala_args: ['--vapidir', 'src/network', '--pkg', 'libsoup-3.0']
|
||||
)
|
||||
|
||||
# Test executable
|
||||
test_exe = executable('database-tests',
|
||||
'src/tests/database-tests.vala',
|
||||
@@ -87,6 +104,16 @@ parser_test_exe = executable('parser-tests',
|
||||
install: false
|
||||
)
|
||||
|
||||
# Feed fetcher test executable
|
||||
fetcher_test_exe = executable('feed-fetcher-tests',
|
||||
'src/tests/feed-fetcher-tests.vala',
|
||||
dependencies: [glib_dep, gio_dep, json_dep, xml_dep, soup_dep],
|
||||
link_with: [models_lib, parser_lib, network_lib],
|
||||
vala_args: ['--vapidir', '.', '--pkg', 'libxml-2.0', '--pkg', 'libsoup-3.0'],
|
||||
install: false
|
||||
)
|
||||
|
||||
# Test definitions
|
||||
test('database tests', test_exe)
|
||||
test('parser tests', parser_test_exe)
|
||||
test('feed fetcher tests', fetcher_test_exe)
|
||||
|
||||
Reference in New Issue
Block a user