[gnome-photos/sam/tracker3: 2/4] Move application code into a helper library
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/sam/tracker3: 2/4] Move application code into a helper library
- Date: Mon, 8 Jun 2020 19:48:44 +0000 (UTC)
commit 5897c59051c0d217cb82845bed2e9c4537442271
Author: Sam Thursfield <sam afuera me uk>
Date: Wed May 27 20:39:03 2020 +0200
Move application code into a helper library
This allows us to test more of the application code with unit tests.
src/meson.build | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index 6306fcdc..6a9c9c09 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -409,11 +409,27 @@ cflags = [
'-DPACKAGE_LOCALE_DIR="@0@"'.format(photos_localedir),
]
+libgnome_photos_app = static_library(
+ meson.project_name(),
+ sources,
+ dependencies: deps,
+ c_args: cflags,
+ include_directories: top_inc,
+ install: true,
+ install_dir: photos_libdir,
+)
+
+libgnome_photos_app_dep = declare_dependency(link_with: libgnome_photos_app, dependencies: deps)
+
+sources = common_sources + files(
+ 'photos-main.c',
+)
+
executable(
meson.project_name(),
sources,
include_directories: top_inc,
- dependencies: deps,
+ dependencies: deps + [libgnome_photos_app_dep],
c_args: cflags,
install: true,
install_dir: photos_bindir,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]