build: be a bit more flexible with configuration options

It would be nice if we can be a bit more flexible with where the
sysprof-cli tool can run. Lets try to break out the system checks a
bit more.
This commit is contained in:
Christian Hergert
2016-04-14 00:59:28 -07:00
parent f4df6616c6
commit 5d25b8a242
5 changed files with 92 additions and 42 deletions

View File

@ -2,12 +2,14 @@ TESTS =
TEST_PROGS =
test_cflags = \
$(SYSPROF_CFLAGS) \
$(GIO_CFLAGS) \
$(POLKIT_CFLAGS) \
-I$(top_srcdir)/lib \
-I$(top_builddir)/lib
test_libs = \
$(SYSPROF_LIBS) \
$(GIO_LIBS) \
$(POLKIT_LIBS) \
$(top_builddir)/lib/libsysprof-@API_VERSION@.la
TESTS += test-capture
@ -19,11 +21,15 @@ test_capture_LDADD = $(test_libs)
if ENABLE_GTK
test_ui_cflags = \
$(SYSPROF_UI_CFLAGS) \
$(GIO_CFLAGS) \
$(GTK_CFLAGS) \
$(POLKIT_CFLAGS) \
-I$(top_srcdir)/lib \
-I$(top_builddir)/lib
test_ui_libs = \
$(SYSPROF_UI_LIBS) \
$(GIO_LIBS) \
$(GTK_LIBS) \
$(POLKIT_LIBS) \
$(top_builddir)/lib/libsysprof-@API_VERSION@.la \
$(top_builddir)/lib/libsysprof-ui-@API_VERSION@.la