lib_LTLIBRARIES = libgstphotography-@GST_API_VERSION@.la
libgstphotographyincludedir = \
        $(includedir)/gstreamer-@GST_API_VERSION@/gst/interfaces

headers_photography = 		\
	photography.h

# variables used for enum/marshal generation
glib_enum_headers=$(headers_photography)
glib_enum_define=GST_PHOTOGRAPHY
glib_gen_prefix=gst_photography
glib_gen_basename=photography

built_sources = \
	photography-enumtypes.c

built_headers = \
	photography-enumtypes.h

libgstphotographyinclude_HEADERS = \
	$(headers_photography)

nodist_libgstphotographyinclude_HEADERS = \
	photography-enumtypes.h

libgstphotography_@GST_API_VERSION@_la_SOURCES = \
	photography.c

nodist_libgstphotography_@GST_API_VERSION@_la_SOURCES = 	\
	$(built_sources)

libgstphotography_@GST_API_VERSION@_la_CFLAGS = \
	-DGST_USE_UNSTABLE_API \
	$(GST_PLUGINS_BAD_CFLAGS) \
	$(GST_CFLAGS)
libgstphotography_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) 
libgstphotography_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)

BUILT_SOURCES = \
	$(built_sources) \
	$(built_headers)

CLEANFILES = $(BUILT_SOURCES)

include $(top_srcdir)/common/gst-glib-gen.mak

Android.mk:  $(BUILT_SOURCES) Makefile.am
	androgenizer -:PROJECT libgstphotography -:STATIC libgstphotography-@GST_API_VERSION@ \
	 -:TAGS eng debug \
         -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
	 -:SOURCES $(libgstphotography_@GST_API_VERSION@_la_SOURCES) \
         $(built_sources) \
	 -:CFLAGS $(DEFS) $(libgstphotography_@GST_API_VERSION@_la_CFLAGS) \
	 -:LDFLAGS $(libgstphotography_@GST_API_VERSION@_la_LDFLAGS) \
	           $(libgstphotography_@GST_API_VERSION@_la_LIBADD) \
	           -ldl \
	 -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/photography \
	 -:HEADERS $(libgstphotographyinclude_HEADERS) \
         $(built_headers) \
	 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
	> $@
