hardware/common/serial.c \
hardware/openbench-logic-sniffer/ols.c \
hardware/saleae-logic/saleae-logic.c \
- hardware/asix-sigma/asix-sigma.c \
- hardware/asix-sigma/asix-sigma.h \
hardware/zeroplus-logic-cube/analyzer.c \
hardware/zeroplus-logic-cube/analyzer.h \
hardware/zeroplus-logic-cube/gl_usb.c \
output/common.c \
output/output.c
+if LA_ASIX_SIGMA
+libsigrok_la_SOURCES += \
+ hardware/asix-sigma/asix-sigma.c \
+ hardware/asix-sigma/asix-sigma.h
+else
+EXTRA_DIST = \
+ hardware/asix-sigma/asix-sigma.c \
+ hardware/asix-sigma/asix-sigma.h
+endif
+
libsigrok_la_LIBADD = $(LIBOBJS)
include_HEADERS = sigrok.h
extern struct device_plugin saleae_logic_plugin_info;
extern struct device_plugin ols_plugin_info;
extern struct device_plugin zeroplus_logic_cube_plugin_info;
+#ifdef HAVE_LA_ASIX_SIGMA
extern struct device_plugin asix_sigma_plugin_info;
+#endif
/* TODO: No linked list needed, this can be a simple array. */
int load_hwplugins(void)
plugins = g_slist_append(plugins, (gpointer *)&ols_plugin_info);
plugins = g_slist_append(plugins,
(gpointer *)&zeroplus_logic_cube_plugin_info);
+#ifdef HAVE_LA_ASIX_SIGMA
plugins = g_slist_append(plugins, (gpointer *)&asix_sigma_plugin_info);
+#endif
return SIGROK_OK;
}