gl: build gl mixer elements, moved from -base
[platform/upstream/gstreamer.git] / ext / gl / Makefile.am
1 plugin_LTLIBRARIES = libgstopengl.la
2
3 libgstopengl_la_SOURCES = \
4         gstopengl.c \
5         gstglalpha.c \
6         gstgluploadelement.c \
7         gstgldownloadelement.c \
8         gstglcolorconvertelement.c \
9         gstglfilterbin.c \
10         gstglsinkbin.c \
11         gstglsrcbin.c \
12         gstglimagesink.c \
13         gstglfiltercube.c \
14         gstgleffects.c \
15         effects/gstgleffectscurves.c \
16         effects/gstgleffectssources.c \
17         effects/gstgleffectidentity.c \
18         effects/gstgleffectmirror.c \
19         effects/gstgleffectsqueeze.c \
20         effects/gstgleffectstretch.c \
21         effects/gstgleffectfisheye.c \
22         effects/gstgleffecttwirl.c \
23         effects/gstgleffectbulge.c \
24         effects/gstgleffecttunnel.c \
25         effects/gstgleffectsquare.c \
26         effects/gstgleffectlumatocurve.c \
27         effects/gstgleffectrgbtocurve.c \
28         effects/gstgleffectsin.c \
29         effects/gstgleffectxray.c \
30         effects/gstgleffectglow.c \
31         effects/gstgleffectblur.c \
32         effects/gstgleffectsobel.c \
33         effects/gstgleffectlaplacian.c \
34         gstglbasemixer.c \
35         gstglcolorscale.c \
36         gstglcolorbalance.c \
37         gstgldeinterlace.c \
38         gstglfiltershader.c \
39         gstglfilterapp.c \
40         gstglmixer.c \
41         gstglmixerbin.c \
42         gstglstereomix.c \
43         gstglstereosplit.c \
44         gstglvideomixer.c \
45         gstglviewconvert.c \
46         gltestsrc.c \
47         gstgltestsrc.c \
48         gstgloverlaycompositorelement.c \
49         gstglutils.c
50
51 noinst_HEADERS = \
52         gstglalpha.h \
53         gstgluploadelement.h \
54         gstgldownloadelement.h \
55         gstglcolorconvertelement.h \
56         gstglfilterbin.h \
57         gstglsinkbin.h \
58         gstglsrcbin.h \
59         gstglimagesink.h \
60         gstglfiltercube.h \
61         gstgleffects.h \
62         effects/gstgleffectssources.h \
63         gstglbasemixer.h \
64         gstglcolorscale.h \
65         gstglcolorbalance.h \
66         gstgldeinterlace.h \
67         gstglfiltershader.h \
68         gstglfilterapp.h \
69         gstglmixer.h \
70         gstglmixerbin.h \
71         gstglstereomix.h \
72         gstglstereosplit.h \
73         gstglvideomixer.h \
74         gstglviewconvert.h \
75         gltestsrc.h \
76         gstgltestsrc.h \
77         gstgloverlaycompositorelement.h \
78         gstglutils.h
79
80 # full opengl required
81 if USE_OPENGL
82 libgstopengl_la_SOURCES += \
83         gstglmosaic.c \
84         gstglfilterglass.c
85
86 noinst_HEADERS += \
87         gstglfilterglass.h \
88         gstglmosaic.h \
89         effects/gstgleffectscurves.h \
90         effects/gstgleffectlumatocurve.h
91
92 if HAVE_PNG
93 libgstopengl_la_SOURCES += \
94         gstgldifferencematte.c
95
96 noinst_HEADERS += \
97         gstgldifferencematte.h
98 endif
99 endif
100
101 if HAVE_GRAPHENE
102 libgstopengl_la_SOURCES += \
103         gstgltransformation.c \
104         gstglvideoflip.c
105
106 noinst_HEADERS += \
107         gstgltransformation.h \
108         gstglvideoflip.h
109 endif
110
111 if HAVE_JPEG
112 if HAVE_PNG
113 libgstopengl_la_SOURCES += \
114         gstgloverlay.c
115
116 noinst_HEADERS += \
117         gstgloverlay.h
118 endif
119 endif
120
121 if HAVE_WINDOW_COCOA
122 libgstopengl_la_SOURCES += \
123         caopengllayersink.m
124
125 noinst_HEADERS += \
126         caopengllayersink.h
127 endif
128
129 libgstopengl_la_OBJCFLAGS = \
130         $(GST_PLUGINS_BASE_CFLAGS) \
131         -fobjc-arc \
132         $(GST_OBJCFLAGS) \
133         $(GST_BASE_CFLAGS) \
134         $(GST_CONTROLLER_CFLAGS) \
135         $(GL_OBJCFLAGS)
136
137 # check order of CFLAGS and LIBS, shouldn't the order be the other way around
138 # (like in AM_CFLAGS)?
139 libgstopengl_la_CFLAGS = \
140         $(GST_PLUGINS_BASE_CFLAGS) \
141         $(GST_BASE_CFLAGS) \
142         $(GST_CONTROLLER_CFLAGS) \
143         $(GST_CFLAGS) \
144         $(GL_CFLAGS) \
145         $(LIBPNG_CFLAGS) \
146         $(GRAPHENE_CFLAGS)
147
148 libgstopengl_la_LIBADD = \
149         $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
150         $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \
151         $(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \
152         $(top_builddir)/gst-libs/gst/allocators/libgstallocators-@GST_API_VERSION@.la \
153         $(GST_BASE_LIBS) \
154         $(GST_CONTROLLER_LIBS) \
155         $(GST_LIBS) \
156         $(GL_LIBS) \
157         $(LIBPNG_LIBS) \
158         $(JPEG_LIBS) \
159         $(LIBM) \
160         $(GRAPHENE_LIBS)
161
162 libgstopengl_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
163 libgstopengl_la_LIBTOOLFLAGS = --tag=CC
164
165