[gnome-builder] tests: fix building of test-ide-context



commit 6af3979933fd799e97ffa9d8b61db1d977e61846
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Aug 23 10:15:48 2015 +0200

    tests: fix building of test-ide-context

 tests/Makefile.am        |   18 ++++++++++++++++--
 tests/test-ide-context.c |    2 ++
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index bb008f1..2a4bc29 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -50,6 +50,20 @@ tests_libs = \
        $(top_builddir)/libide/libide-1.0.la \
        $(NULL)
 
+tests_ide_context_cflags = \
+       $(egg_cflags) \
+       -I$(top_srcdir)/libide \
+       -I$(top_builddir)/libide \
+       -I$(top_srcdir)/src \
+       -I$(top_srcdir)/plugins/autotools \
+       $(NULL)
+
+tests_ide_context_libs = \
+       $(egg_libs) \
+       $(top_builddir)/libide/libide-1.0.la \
+       $(top_builddir)/plugins/autotools/libautotools-plugin.la \
+       $(NULL)
+
 misc_programs =
 
 TESTS_ENVIRONMENT= \
@@ -64,8 +78,8 @@ LOG_COMPILER = $(top_srcdir)/build/autotools/tap-test
 
 TESTS = test-ide-context
 test_ide_context_SOURCES = test-ide-context.c
-test_ide_context_CFLAGS = $(tests_cflags)
-test_ide_context_LDADD = $(tests_libs)
+test_ide_context_CFLAGS = $(tests_ide_context_cflags)
+test_ide_context_LDADD = $(tests_ide_context_libs)
 
 
 TESTS += test-ide-back-forward-list
diff --git a/tests/test-ide-context.c b/tests/test-ide-context.c
index bd95bfc..a3e40ef 100644
--- a/tests/test-ide-context.c
+++ b/tests/test-ide-context.c
@@ -16,6 +16,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "ide-autotools-build-system.h"
+
 #include <girepository.h>
 #include <ide.h>
 


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