-if USE_GCONF
-GCONF_DIR=gconf
-else
-GCONF_DIR=
+if USE_WAYLAND
+WAYLAND_DIR=wayland
endif
-if USE_XFREE
-X_DIR=xwindowlistener
-else
-X_DIR=
+if USE_OPENCV
+OPENCV_DIR=opencv
endif
-SUBDIRS = audio colorbalance floatcast \
- $(GCONF_DIR) idct media-info \
- mixer navigation play propertyprobe \
- resample riff tuner video \
- xoverlay $(X_DIR)
+if TV_PROFILE
+SUBDIRS = codecparsers mpegts sctp webrtc $(WAYLAND_DIR)
+else
+SUBDIRS = uridownloader adaptivedemux interfaces basecamerabinsrc codecparsers \
+ insertbin mpegts audio sctp player isoff webrtc $(WAYLAND_DIR) \
+ $(OPENCV_DIR)
+endif
-DIST_SUBDIRS = audio colorbalance floatcast \
- gconf idct media-info \
- mixer navigation play propertyprobe \
- resample riff tuner video \
- xoverlay xwindowlistener
+noinst_HEADERS = gst-i18n-plugin.h gettext.h glib-compat-private.h
+if TV_PROFILE
+DIST_SUBDIRS = codecparsers mpegts wayland sctp webrtc
+else
+DIST_SUBDIRS = uridownloader adaptivedemux interfaces basecamerabinsrc \
+ codecparsers insertbin mpegts wayland opencv audio player isoff sctp webrtc
+endif
+adaptivedemux: uridownloader
-lib_LTLIBRARIES = libgst-interfaces-@GST_MAJORMINOR@.la
+if TV_PROFILE
+INDEPENDENT_SUBDIRS = \
+ codecparsers mpegts sctp webrtc $(WAYLAND_DIR)
+else
+INDEPENDENT_SUBDIRS = \
+ interfaces basecamerabinsrc codecparsers insertbin uridownloader \
+ mpegts player isoff sctp webrtc $(WAYLAND_DIR) $(OPENCV_DIR)
+endif
-libgst_interfaces_@GST_MAJORMINOR@_la_SOURCES =
+.PHONY: independent-subdirs $(INDEPENDENT_SUBDIRS)
-libgst_interfaces_@GST_MAJORMINOR@_la_LIBADD = \
- colorbalance/libgstcolorbalance.la \
- mixer/libgstmixer.la \
- navigation/libgstnavigation.la \
- propertyprobe/libgstpropertyprobe.la \
- tuner/libgsttuner.la \
- xoverlay/libgstxoverlay.la \
- $(GST_LIBS)
+independent-subdirs: $(INDEPENDENT_SUBDIRS)
-libgst_interfaces_@GST_MAJORMINOR@_la_LDFLAGS = @GST_PLUGINS_LT_LDFLAGS@ -version-info @GST_PLUGINS_LIBVERSION@
+$(INDEPENDENT_SUBDIRS):
+ $(MAKE) -C $@
+all-recursive: independent-subdirs