]> sigrok.org Git - libsigrok.git/commitdiff
Add per-LA --enable-XXXX configure options.
authorUwe Hermann <redacted>
Mon, 31 May 2010 09:34:10 +0000 (11:34 +0200)
committerUwe Hermann <redacted>
Mon, 31 May 2010 10:43:08 +0000 (12:43 +0200)
Makefile.am
hwplugin.c

index 0dcd984887fbfa06bb5a8a934acef3f26ddd3582..060b2cabc0d06bf0c8b54c422751cdcca5b5529c 100644 (file)
@@ -34,8 +34,6 @@ libsigrok_la_SOURCES = \
        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 \
@@ -50,6 +48,16 @@ libsigrok_la_SOURCES = \
        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
index 5cd6f6bb6f87086e1fcb673cf5176881b73a264d..aaf71b50ce94e840e8bddd5c0266ad58db5ba073 100644 (file)
@@ -43,7 +43,9 @@ struct hwcap_option hwcap_options[] = {
 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)
@@ -53,7 +55,9 @@ 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;
 }