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