]> git.sesse.net Git - vlc/commitdiff
addons: add configure option
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 6 Mar 2014 22:23:19 +0000 (23:23 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 6 Mar 2014 22:32:26 +0000 (23:32 +0100)
configure.ac
modules/misc/Modules.am

index c5258c104deaad5d2b06470fa5cea3f050cfd274..ee788fc7dbd29773b617b0ddc49f83d86f90d62c 100644 (file)
@@ -1564,6 +1564,19 @@ AS_IF([test "${enable_vlm}" != "no"], [
 AM_CONDITIONAL([ENABLE_VLM], [test "${enable_vlm}" != "no"])
 
 
+dnl
+dnl Addons manager storage and repositories modules
+dnl
+AC_ARG_ENABLE(addonmanagermodules,
+  [AS_HELP_STRING([--disable-addonmanagermodules],
+    [disable the addons manager modules (default enabled)])])
+if test "${enable_addonmanagermodules}" != "no"
+then
+  AC_DEFINE(ENABLE_ADDONMANAGERMODULES, 1, [Define if you want the addons manager modules])
+fi
+AM_CONDITIONAL([ENABLE_ADDONMANAGERMODULES], [test "${enable_addonmanagermodules}" != "no"])
+
+
 dnl
 dnl  Input plugins
 dnl
index aa11e3636a8ef274f885172bff9b88d697b62901..62a54d197b43aedb4aab37176f5f730d21d4d536 100644 (file)
@@ -59,14 +59,17 @@ endif
 
 libstats_plugin_la_SOURCES = stats.c
 
+if ENABLE_ADDONMANAGERMODULES
 libaddonsvorepository_plugin_la_SOURCES = addons/vorepository.c addons/xmlreading.h
 libaddonsfsstorage_plugin_la_SOURCES = addons/fsstorage.c addons/xmlreading.h
+misc_LTLIBRARIES += \
+       libaddonsvorepository_plugin.la \
+       libaddonsfsstorage_plugin.la
+endif
 
 misc_LTLIBRARIES += \
        liblogger_plugin.la \
-       libstats_plugin.la \
-        libaddonsvorepository_plugin.la \
-        libaddonsfsstorage_plugin.la
+       libstats_plugin.la
 
 if ENABLE_SOUT
 misc_LTLIBRARIES += \