## Copyright 2009 The gstreamermm Development Team
##
## This library is free software: you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as published
## by the Free Software Foundation, either version 2.1 of the License,
## or (at your option) any later version.
##
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.

ACLOCAL_AMFLAGS = -I build ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal

EXTRA_DIST = \
	tests/plugins/foo.h \
	tests/integration/utils.h \
	tests/integration/pluginbin.h \
	tests/resources/input-image.png \
	tests/mmtest.h \
	tests/plugins/derivedfromappsink.h \
	tests/plugins/derivedfromappsrc.h \
	tests/plugins/derivedfrombasetransform.h

srcmm_subdirs = gstreamer/gstreamermm
pkgconfig_files = gstreamer/$(GSTREAMERMM_MODULE_NAME).pc
gstreamermm_include_HEADERS = gstreamer/gstreamermm.h

if MAINTAINER_MODE
src_subdirs = gstreamer/src
else
src_subdirs =
endif
if ENABLE_DOCUMENTATION
doc_subdirs = docs
else
doc_subdirs =
endif

if ENABLE_GSTREAMERMM_PLUGINS_BAD
if MAINTAINER_MODE
src_subdirs += gst-plugins-bad/src
endif # MAINTAINER_MODE
srcmm_subdirs += gst-plugins-bad/gstreamermm-plugins-bad
pkgconfig_files += gst-plugins-bad/$(GSTREAMERMM_PLUGINS_BAD_MODULE_NAME).pc
gstreamermm_include_HEADERS += gst-plugins-bad/gstreamermm-plugins-bad.h
endif #ENABLE_PLUGINS_BAD

SUBDIRS = tools $(src_subdirs) $(srcmm_subdirs) \
          tests examples $(doc_subdirs)

gstreamermm_includedir = $(includedir)/$(GSTREAMERMM_MODULE_NAME)
gstreamermm_libincludedir = $(libdir)/$(GSTREAMERMM_MODULE_NAME)/include
nodist_gstreamermm_libinclude_HEADERS = gstreamer/gstreamermmconfig.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pkgconfig_files)
include $(srcdir)/MSVC_2015/filelist.am

text_files = COPYING.tools COPYING.examples
msvc_files = $(addprefix MSVC_2015/,$(msvc_2015_data))

dist_noinst_DATA = $(text_files) $(msvc_files)
dist_noinst_SCRIPTS = autogen.sh

# Auto-generate the ChangeLog file from the git log on make dist
include $(top_srcdir)/build/dist-changelog.am
