build: use build_by_default in cargo-build target
build_always_stale is deprecated and build_by_default can be used now that we don't have build.rs. Requires that we list our sources.
This commit is contained in:
parent
96d4cd50d4
commit
8898fd6e2f
@ -67,6 +67,8 @@ subdir('podcasts-gtk/resources')
|
||||
cargo_script = find_program('scripts/cargo.sh')
|
||||
test_script = find_program('scripts/test.sh')
|
||||
|
||||
subdir('podcasts-data/src')
|
||||
subdir('podcasts-downloader/src')
|
||||
subdir('podcasts-gtk/src')
|
||||
|
||||
meson.add_dist_script(
|
||||
|
||||
19
podcasts-data/src/meson.build
Normal file
19
podcasts-data/src/meson.build
Normal file
@ -0,0 +1,19 @@
|
||||
data_sources = files(
|
||||
'models/episode.rs',
|
||||
'models/mod.rs',
|
||||
'models/new_episode.rs',
|
||||
'models/new_show.rs',
|
||||
'models/new_source.rs',
|
||||
'models/show.rs',
|
||||
'models/source.rs',
|
||||
'database.rs',
|
||||
'dbqueries.rs',
|
||||
'errors.rs',
|
||||
'feed.rs',
|
||||
'lib.rs',
|
||||
'opml.rs',
|
||||
'parser.rs',
|
||||
'pipeline.rs',
|
||||
'schema.rs',
|
||||
'utils.rs',
|
||||
)
|
||||
5
podcasts-downloader/src/meson.build
Normal file
5
podcasts-downloader/src/meson.build
Normal file
@ -0,0 +1,5 @@
|
||||
downloader_sources = files(
|
||||
'downloader.rs',
|
||||
'errors.rs',
|
||||
'lib.rs'
|
||||
)
|
||||
@ -31,8 +31,39 @@ run_command(
|
||||
check: true
|
||||
)
|
||||
|
||||
podcasts_sources = files(
|
||||
'stacks/content.rs',
|
||||
'stacks/home.rs',
|
||||
'stacks/mod.rs',
|
||||
'stacks/populated.rs',
|
||||
'stacks/show.rs',
|
||||
'widgets/aboutdialog.rs',
|
||||
'widgets/appnotif.rs',
|
||||
'widgets/base_view.rs',
|
||||
'widgets/empty.rs',
|
||||
'widgets/home_view.rs',
|
||||
'widgets/mod.rs',
|
||||
'widgets/player.rs',
|
||||
'widgets/show.rs',
|
||||
'widgets/show_menu.rs',
|
||||
'widgets/shows_view.rs',
|
||||
'app.rs',
|
||||
'headerbar.rs',
|
||||
'i18n.rs',
|
||||
'main.rs',
|
||||
'manager.rs',
|
||||
'prefs.rs',
|
||||
'settings.rs',
|
||||
'utils.rs'
|
||||
)
|
||||
|
||||
cargo_release = custom_target('cargo-build',
|
||||
build_always_stale: true,
|
||||
build_by_default: true,
|
||||
input: [
|
||||
data_sources,
|
||||
downloader_sources,
|
||||
podcasts_sources,
|
||||
],
|
||||
output: ['gnome-podcasts'],
|
||||
install: true,
|
||||
install_dir: podcasts_bindir,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user