Move all public libraries under 'src/lib/'.
This is part of an effort to standardize our autotools setup across
projects to simplify maintenance.
Change-Id: If0eb731cc8f7faa860153f163b57f14292b7f522
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/src/liblttng-ust-java-agent/jni/log4j/Makefile
/src/liblttng-ust-java/Makefile
/src/liblttng-ust-libc-wrapper/Makefile
-/src/liblttng-ust-python-agent/Makefile
+/src/lib/lttng-ust-python-agent/Makefile
+/src/lib/Makefile
/src/liblttng-ust/Makefile
/src/libringbuffer/Makefile
/src/python-lttngust/Makefile
src/liblttng-ust-java/Makefile
src/liblttng-ust-libc-wrapper/Makefile
src/liblttng-ust/Makefile
- src/liblttng-ust-python-agent/Makefile
+ src/lib/lttng-ust-python-agent/Makefile
+ src/lib/Makefile
src/libringbuffer/Makefile
src/lttng-ust-ctl.pc
src/lttng-ust.pc
libcounter \
liblttng-ust \
liblttng-ust-ctl \
+ lib \
liblttng-ust-fd \
liblttng-ust-fork \
liblttng-ust-libc-wrapper \
endif
if ENABLE_PYTHON_AGENT
-SUBDIRS += \
- python-lttngust \
- liblttng-ust-python-agent
+SUBDIRS += python-lttngust
endif
pkgconfigdir = $(libdir)/pkgconfig
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-only
+
+SUBDIRS =
+
+if ENABLE_PYTHON_AGENT
+SUBDIRS += lttng-ust-python-agent
+endif
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-only
+
+# tracepoint provider: always built/installed (does not depend on Python per se)
+AM_CFLAGS += -I$(srcdir) -fno-strict-aliasing
+
+lib_LTLIBRARIES = liblttng-ust-python-agent.la
+
+liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h
+liblttng_ust_python_agent_la_LIBADD = \
+ -lc \
+ $(top_builddir)/src/liblttng-ust/liblttng-ust.la
+
+# Follow the main library soname for co-installability
+liblttng_ust_python_agent_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
--- /dev/null
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2014 David Goulet <dgoulet@efficios.com>
+ */
+
+#define _LGPL_SOURCE
+#define TRACEPOINT_DEFINE
+#define TRACEPOINT_CREATE_PROBES
+#include "lttng_ust_python.h"
+
+/*
+ * The tracepoint fired by the agent.
+ */
+
+void py_tracepoint(const char *asctime, const char *msg,
+ const char *logger_name, const char *funcName, unsigned int lineno,
+ unsigned int int_loglevel, unsigned int thread, const char *threadName);
+void py_tracepoint(const char *asctime, const char *msg,
+ const char *logger_name, const char *funcName, unsigned int lineno,
+ unsigned int int_loglevel, unsigned int thread, const char *threadName)
+{
+ tracepoint(lttng_python, event, asctime, msg, logger_name, funcName,
+ lineno, int_loglevel, thread, threadName);
+}
--- /dev/null
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
+ */
+
+#undef TRACEPOINT_PROVIDER
+#define TRACEPOINT_PROVIDER lttng_python
+
+#if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#define _TRACEPOINT_LTTNG_UST_PYTHON_H
+
+#include <lttng/tracepoint.h>
+#include <stdbool.h>
+
+TRACEPOINT_EVENT(lttng_python, event,
+ TP_ARGS(
+ const char *, asctime,
+ const char *, msg,
+ const char *, logger_name,
+ const char *, funcName,
+ int, lineno,
+ int, int_loglevel,
+ int, thread,
+ const char *, threadName
+ ),
+ TP_FIELDS(
+ ctf_string(asctime, asctime)
+ ctf_string(msg, msg)
+ ctf_string(logger_name, logger_name)
+ ctf_string(funcName, funcName)
+ ctf_integer(unsigned int, lineno, lineno)
+ ctf_integer(unsigned int, int_loglevel, int_loglevel)
+ ctf_integer(unsigned int, thread, thread)
+ ctf_string(threadName, threadName)
+ )
+)
+
+#endif /* _TRACEPOINT_LTTNG_UST_PYTHON_H */
+
+#undef TRACEPOINT_INCLUDE
+#define TRACEPOINT_INCLUDE "./lttng_ust_python.h"
+
+/* This part must be outside ifdef protection */
+#include <lttng/tracepoint-event.h>
+++ /dev/null
-# SPDX-License-Identifier: LGPL-2.1-only
-
-# tracepoint provider: always built/installed (does not depend on Python per se)
-AM_CFLAGS += -I$(srcdir) -fno-strict-aliasing
-
-lib_LTLIBRARIES = liblttng-ust-python-agent.la
-
-liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h
-liblttng_ust_python_agent_la_LIBADD = \
- -lc \
- $(top_builddir)/src/liblttng-ust/liblttng-ust.la
-
-# Follow the main library soname for co-installability
-liblttng_ust_python_agent_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
+++ /dev/null
-/*
- * SPDX-License-Identifier: LGPL-2.1-only
- *
- * Copyright (C) 2014 David Goulet <dgoulet@efficios.com>
- */
-
-#define _LGPL_SOURCE
-#define TRACEPOINT_DEFINE
-#define TRACEPOINT_CREATE_PROBES
-#include "lttng_ust_python.h"
-
-/*
- * The tracepoint fired by the agent.
- */
-
-void py_tracepoint(const char *asctime, const char *msg,
- const char *logger_name, const char *funcName, unsigned int lineno,
- unsigned int int_loglevel, unsigned int thread, const char *threadName);
-void py_tracepoint(const char *asctime, const char *msg,
- const char *logger_name, const char *funcName, unsigned int lineno,
- unsigned int int_loglevel, unsigned int thread, const char *threadName)
-{
- tracepoint(lttng_python, event, asctime, msg, logger_name, funcName,
- lineno, int_loglevel, thread, threadName);
-}
+++ /dev/null
-/*
- * SPDX-License-Identifier: LGPL-2.1-only
- *
- * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
- */
-
-#undef TRACEPOINT_PROVIDER
-#define TRACEPOINT_PROVIDER lttng_python
-
-#if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
-#define _TRACEPOINT_LTTNG_UST_PYTHON_H
-
-#include <lttng/tracepoint.h>
-#include <stdbool.h>
-
-TRACEPOINT_EVENT(lttng_python, event,
- TP_ARGS(
- const char *, asctime,
- const char *, msg,
- const char *, logger_name,
- const char *, funcName,
- int, lineno,
- int, int_loglevel,
- int, thread,
- const char *, threadName
- ),
- TP_FIELDS(
- ctf_string(asctime, asctime)
- ctf_string(msg, msg)
- ctf_string(logger_name, logger_name)
- ctf_string(funcName, funcName)
- ctf_integer(unsigned int, lineno, lineno)
- ctf_integer(unsigned int, int_loglevel, int_loglevel)
- ctf_integer(unsigned int, thread, thread)
- ctf_string(threadName, threadName)
- )
-)
-
-#endif /* _TRACEPOINT_LTTNG_UST_PYTHON_H */
-
-#undef TRACEPOINT_INCLUDE
-#define TRACEPOINT_INCLUDE "./lttng_ust_python.h"
-
-/* This part must be outside ifdef protection */
-#include <lttng/tracepoint-event.h>