mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
For some systems, such as embedded Linux including ARM, we might want to just compile libsysprof/sysprof-cli without the GTK user interface. This allows for that. You can copy the capture files to your visualization host to render the results.
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
TESTS =
|
|
TEST_PROGS =
|
|
|
|
test_cflags = \
|
|
$(SYSPROF_CFLAGS) \
|
|
-I$(top_srcdir)/lib \
|
|
-I$(top_builddir)/lib
|
|
|
|
test_libs = \
|
|
$(SYSPROF_LIBS) \
|
|
$(top_builddir)/lib/libsysprof-@API_VERSION@.la
|
|
|
|
TESTS += test-capture
|
|
test_capture_SOURCES = test-capture.c
|
|
test_capture_CFLAGS = $(test_cflags)
|
|
test_capture_LDADD = $(test_libs)
|
|
|
|
|
|
if ENABLE_GTK
|
|
|
|
test_ui_cflags = \
|
|
$(SYSPROF_UI_CFLAGS) \
|
|
-I$(top_srcdir)/lib \
|
|
-I$(top_builddir)/lib
|
|
test_ui_libs = \
|
|
$(SYSPROF_UI_LIBS) \
|
|
$(top_builddir)/lib/libsysprof-@API_VERSION@.la \
|
|
$(top_builddir)/lib/libsysprof-ui-@API_VERSION@.la
|
|
|
|
|
|
TESTS += test-model-filter
|
|
TEST_PROGS += test-model-filter
|
|
test_model_filter_SOURCES = test-model-filter.c
|
|
test_model_filter_CFLAGS = $(test_ui_cflags)
|
|
test_model_filter_LDADD = $(test_ui_libs)
|
|
|
|
endif
|
|
|
|
TEST_ENVIRONMENT = \
|
|
G_TEST_SRCDIR="$(abs_srcdir)" \
|
|
G_TEST_BUILDDIR="$(abs_builddir)" \
|
|
G_DEBUG=gc-friendly \
|
|
GSETTINGS_BACKEND=memory \
|
|
MALLOC_CHECK_=2 \
|
|
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
|
|
|
|
LOG_COMPILER = $(top_srcdir)/tap-test
|
|
|
|
noinst_PROGRAMS = $(TESTS)
|
|
check_PROGRAMS = $(TESTS)
|
|
|
|
-include $(top_srcdir)/git.mk
|