[atomato] [Build] Add libatomato-engine to build



commit a958805fe1ff3bc84cf42b46fb9d63880a2b1446
Author: Rodrigo Moya <rodrigo gnome org>
Date:   Sat Feb 13 20:05:41 2016 +0100

    [Build] Add libatomato-engine to build

 configure.in                     |    1 +
 src/Makefile.am                  |    2 ++
 src/engine/Makefile.am           |   22 ++++++++++++++++++++++
 src/engine/aggregate-action.vala |    2 +-
 4 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index a71bc1a..1af667e 100644
--- a/configure.in
+++ b/configure.in
@@ -54,6 +54,7 @@ AC_CONFIG_FILES([
 Makefile
 po/Makefile.in
 src/Makefile
+src/engine/Makefile
 services/Makefile
 services/desktop/Makefile
 services/system/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index c922810..7e8b8d7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = engine
+
 AM_CPPFLAGS = \
        -DGETTEXT_PACKAGE=\""$(GETTEXT_PACKAGE)"\"  \
        -DGNOMELOCALEDIR=\""$(localedir)"\"         \
diff --git a/src/engine/Makefile.am b/src/engine/Makefile.am
new file mode 100644
index 0000000..3a79f4d
--- /dev/null
+++ b/src/engine/Makefile.am
@@ -0,0 +1,22 @@
+AM_CPPFLAGS = \
+       -DGETTEXT_PACKAGE=\""$(GETTEXT_PACKAGE)"\"  \
+       -DGNOMELOCALEDIR=\""$(localedir)"\"         \
+       $(NULL)
+
+lib_LTLIBRARIES = libatomato-engine
+
+libatomato_engine_VALAFLAGS = \
+       $(ATOMATO_VALAFLAGS)            \
+       --target-glib=2.38                      \
+       --pkg gio-2.0                           \
+       --pkg gio-unix-2.0
+
+libatomato_engine_SOURCES =                    \
+       action.vala                             \
+       aggregate-action.vala                   \
+       conditional-action.vala                 \
+       loop-action.vala
+
+libatomato_engine_LDADD = $(ATOMATO_LIBS)
+
+AM_CFLAGS = $(ATOMATO_CFLAGS)
diff --git a/src/engine/aggregate-action.vala b/src/engine/aggregate-action.vala
index 9fed729..518003d 100644
--- a/src/engine/aggregate-action.vala
+++ b/src/engine/aggregate-action.vala
@@ -47,7 +47,7 @@ namespace Atomato.Engine
                 result = action.run (action_args);
                 if (result == null || !result.was_successful) {
                     // If one action fails, stop
-                    stdout.printf ("Action %s failed\n", action.name);
+                    stdout.printf ("Action %s failed with %s\n", action.name, result.error_message);
                     break;
                 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]