mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: allow disabling the GTK interface with --disable-gtk
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.
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
TESTS =
|
||||
TEST_PROGS =
|
||||
|
||||
test_cflags = \
|
||||
$(SYSPROF_CFLAGS) \
|
||||
@ -9,11 +10,18 @@ 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 \
|
||||
@ -21,14 +29,12 @@ test_ui_libs = \
|
||||
|
||||
|
||||
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)
|
||||
|
||||
TESTS += test-capture
|
||||
test_capture_SOURCES = test-capture.c
|
||||
test_capture_CFLAGS = $(test_cflags)
|
||||
test_capture_LDADD = $(test_libs)
|
||||
endif
|
||||
|
||||
TEST_ENVIRONMENT = \
|
||||
G_TEST_SRCDIR="$(abs_srcdir)" \
|
||||
@ -38,7 +44,6 @@ TEST_ENVIRONMENT = \
|
||||
MALLOC_CHECK_=2 \
|
||||
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
|
||||
|
||||
TEST_PROGS = test-model-filter
|
||||
LOG_COMPILER = $(top_srcdir)/tap-test
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
Reference in New Issue
Block a user