libsigrokhardware_la_SOURCES =
libsigrokhardware_la_LIBADD = \
- common/libsigrokhwcommon.la \
- demo/libsigrokhwdemo.la
+ common/libsigrokhwcommon.la
+
+if LA_DEMO
+libsigrokhardware_la_LIBADD += demo/libsigrokhwdemo.la
+endif
if LA_ASIX_SIGMA
libsigrokhardware_la_LIBADD += asix-sigma/libsigrokhwasixsigma.la
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
+if LA_DEMO
+
# Local lib, this is NOT meant to be installed!
noinst_LTLIBRARIES = libsigrokhwdemo.la
libsigrokhwdemo_la_CFLAGS = \
-I$(top_srcdir)/libsigrok
+endif
+
{0, 0, NULL, NULL},
};
+#ifdef HAVE_LA_DEMO
extern struct device_plugin demo_plugin_info;
+#endif
#ifdef HAVE_LA_SALEAE_LOGIC
extern struct device_plugin saleae_logic_plugin_info;
#endif
/* TODO: No linked list needed, this can be a simple array. */
int load_hwplugins(void)
{
+#ifdef HAVE_LA_DEMO
plugins = g_slist_append(plugins, (gpointer *)&demo_plugin_info);
+#endif
#ifdef HAVE_LA_SALEAE_LOGIC
plugins =
g_slist_append(plugins, (gpointer *)&saleae_logic_plugin_info);