ba939f473367bcc531e6f31d4e81ef09e72d1d41
[platform/upstream/gstreamer.git] / ext / gl / Makefile.am
1
2 plugin_LTLIBRARIES = libgstopengl.la
3
4 AM_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
5 AM_LIBS = $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS)
6
7 # full opengl required
8 if USE_OPENGL
9 OPENGL_SOURCES =  \
10         gstglfilterblur.c \
11         gstglfilterblur.h \
12         gstglfiltersobel.c \
13         gstglfiltersobel.h \
14         gstglfilterlaplacian.c \
15         gstglfilterlaplacian.h \
16         gstglfilterglass.c \
17         gstglfilterglass.h \
18         gstgldeinterlace.c \
19         gstgldeinterlace.h \
20         gltestsrc.c \
21         gltestsrc.h \
22         gstgltestsrc.c \
23         gstgltestsrc.h \
24         gstglmosaic.c \
25         gstglmosaic.h \
26         effects/gstgleffectscurves.h \
27         effects/gstgleffectstretch.c \
28         effects/gstgleffecttunnel.c \
29         effects/gstgleffectfisheye.c \
30         effects/gstgleffecttwirl.c \
31         effects/gstgleffectbulge.c \
32         effects/gstgleffectsquare.c \
33         effects/gstgleffectlumatocurve.c \
34         effects/gstgleffectlumatocurve.h \
35         effects/gstgleffectrgbtocurve.c \
36         effects/gstgleffectsin.c \
37         effects/gstgleffectglow.c \
38         effects/gstgleffectxray.c
39
40 if HAVE_PNG
41 OPENGL_SOURCES += \
42         gstgldifferencematte.c \
43         gstgldifferencematte.h
44 endif
45 endif
46
47 libgstopengl_la_SOURCES = \
48         gstopengl.c \
49         gstglimagesink.c \
50         gstglimagesink.h \
51         gstglfiltercube.c \
52         gstglfiltercube.h \
53         gstgleffects.c \
54         gstgleffects.h \
55         effects/gstgleffectssources.c \
56         effects/gstgleffectssources.h \
57         effects/gstgleffectidentity.c \
58         effects/gstgleffectmirror.c \
59         effects/gstgleffectsqueeze.c \
60         gstglcolorscale.c \
61         gstglcolorscale.h \
62         gstglmixer.c \
63         gstglmixer.h \
64         gstglmixerpad.h \
65         gstglvideomixer.c \
66         gstglvideomixer.h \
67         gstglfiltershader.c \
68         gstglfiltershader.h \
69         gstglfilterapp.c \
70         gstglfilterapp.h \
71         $(OPENGL_SOURCES)
72
73 if HAVE_GRAPHENE
74 libgstopengl_la_SOURCES += \
75         gstgltransformation.c \
76         gstgltransformation.h
77 endif
78
79 if HAVE_JPEG
80 if HAVE_PNG
81 libgstopengl_la_SOURCES += \
82         gstgloverlay.c \
83         gstgloverlay.h
84 endif
85 endif
86
87 # check order of CFLAGS and LIBS, shouldn't the order be the other way around
88 # (like in AM_CFLAGS)?
89 libgstopengl_la_CFLAGS = \
90         -I$(top_srcdir)/gst-libs \
91         -I$(top_builddir)/gst-libs \
92         $(GST_CFLAGS) \
93         $(GST_BASE_CFLAGS) \
94         $(GST_PLUGINS_BASE_CFLAGS) \
95         $(GL_CFLAGS) \
96         $(LIBPNG_CFLAGS) \
97         $(GRAPHENE_CFLAGS)
98
99 libgstopengl_la_LIBADD = \
100         $(top_builddir)/gst-libs/gst/gl/libgstgl-$(GST_API_VERSION).la \
101         $(top_builddir)/gst-libs/gst/base/libgstbadbase-$(GST_API_VERSION).la \
102         $(top_builddir)/gst-libs/gst/video/libgstbadvideo-$(GST_API_VERSION).la \
103         $(GST_BASE_LIBS) \
104         $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) \
105         -lgstpbutils-$(GST_API_VERSION) \
106         $(GL_LIBS) \
107         $(LIBPNG_LIBS) \
108         $(JPEG_LIBS) \
109         $(LIBM) \
110         $(GRAPHENE_LIBS)
111
112 libgstopengl_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
113 libgstopengl_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
114