[gnome-calendar/gbsneto/generated-sources-dep] build: Make generated sources a dependency
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/generated-sources-dep] build: Make generated sources a dependency
- Date: Sun, 5 May 2019 01:16:15 +0000 (UTC)
commit a88b6285070b9c2e5ee49946b6a9df70f4ddef79
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat May 4 22:15:17 2019 -0300
build: Make generated sources a dependency
So that they are 100% certain to be generated before
starting to build libgcal.
src/meson.build | 98 ++++++++++++++++++++++++++++++---------------------------
1 file changed, 52 insertions(+), 46 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 404bc6a0..d7caac21 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -19,52 +19,6 @@ gcal_deps = [
m_dep,
]
-sources = files(
- 'core/gcal-calendar.c',
- 'core/gcal-clock.c',
- 'core/gcal-context.c',
- 'core/gcal-event.c',
- 'core/gcal-log.c',
- 'core/gcal-manager.c',
- 'core/gcal-night-light-monitor.c',
- 'core/gcal-recurrence.c',
- 'core/gcal-shell-search-provider.c',
- 'core/gcal-timer.c',
- 'core/gcal-time-zone-monitor.c',
- 'gui/gcal-application.c',
- 'gui/gcal-calendar-popover.c',
- 'gui/gcal-date-chooser.c',
- 'gui/gcal-date-chooser-day.c',
- 'gui/gcal-date-selector.c',
- 'gui/gcal-edit-dialog.c',
- 'gui/gcal-event-widget.c',
- 'gui/gcal-multi-choice.c',
- 'gui/gcal-quick-add-popover.c',
- 'gui/gcal-source-dialog.c',
- 'gui/gcal-time-selector.c',
- 'gui/gcal-window.c',
- 'search/gcal-search-button.c',
- 'search/gcal-search-engine.c',
- 'search/gcal-search-hit.c',
- 'search/gcal-search-hit-event.c',
- 'search/gcal-search-model.c',
- 'utils/gcal-date-time-utils.c',
- 'utils/gcal-thread-utils.c',
- 'utils/gcal-utils.c',
- 'views/gcal-month-cell.c',
- 'views/gcal-month-popover.c',
- 'views/gcal-month-view.c',
- 'views/gcal-range-tree.c',
- 'views/gcal-view.c',
- 'views/gcal-week-grid.c',
- 'views/gcal-week-header.c',
- 'views/gcal-week-view.c',
- 'views/gcal-year-view.c',
- 'weather/gcal-weather-info.c',
- 'weather/gcal-weather-service.c',
- 'weather/gcal-weather-settings.c',
-)
-
enum_types = 'gcal-enum-types'
built_sources = gnome.mkenums(
@@ -107,6 +61,12 @@ built_sources += configure_file(
configuration: debug_conf
)
+libgcal_generated_sources_dep = declare_dependency(
+ sources: built_sources,
+)
+
+gcal_deps += libgcal_generated_sources_dep
+
#######################
# Include directories #
@@ -129,6 +89,52 @@ calendar_incs += contrib_incs
# Private library #
###################
+sources = files(
+ 'core/gcal-calendar.c',
+ 'core/gcal-clock.c',
+ 'core/gcal-context.c',
+ 'core/gcal-event.c',
+ 'core/gcal-log.c',
+ 'core/gcal-manager.c',
+ 'core/gcal-night-light-monitor.c',
+ 'core/gcal-recurrence.c',
+ 'core/gcal-shell-search-provider.c',
+ 'core/gcal-timer.c',
+ 'core/gcal-time-zone-monitor.c',
+ 'gui/gcal-application.c',
+ 'gui/gcal-calendar-popover.c',
+ 'gui/gcal-date-chooser.c',
+ 'gui/gcal-date-chooser-day.c',
+ 'gui/gcal-date-selector.c',
+ 'gui/gcal-edit-dialog.c',
+ 'gui/gcal-event-widget.c',
+ 'gui/gcal-multi-choice.c',
+ 'gui/gcal-quick-add-popover.c',
+ 'gui/gcal-source-dialog.c',
+ 'gui/gcal-time-selector.c',
+ 'gui/gcal-window.c',
+ 'search/gcal-search-button.c',
+ 'search/gcal-search-engine.c',
+ 'search/gcal-search-hit.c',
+ 'search/gcal-search-hit-event.c',
+ 'search/gcal-search-model.c',
+ 'utils/gcal-date-time-utils.c',
+ 'utils/gcal-thread-utils.c',
+ 'utils/gcal-utils.c',
+ 'views/gcal-month-cell.c',
+ 'views/gcal-month-popover.c',
+ 'views/gcal-month-view.c',
+ 'views/gcal-range-tree.c',
+ 'views/gcal-view.c',
+ 'views/gcal-week-grid.c',
+ 'views/gcal-week-header.c',
+ 'views/gcal-week-view.c',
+ 'views/gcal-year-view.c',
+ 'weather/gcal-weather-info.c',
+ 'weather/gcal-weather-service.c',
+ 'weather/gcal-weather-settings.c',
+)
+
libgcal = static_library(
'gcal-private',
sources: sources,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]