s/gst_element_install_std_props/gst_element_class_install_std_props/ -- it just makes...
[platform/upstream/gstreamer.git] / gst / Makefile.am
1
2 lib_LTLIBRARIES = libgstreamer.la
3 noinst_LTLIBRARIES = libcothreads.la
4
5 if HAVE_CPU_I386
6 GSTARCH_SRCS = gstcpuid_i386.s
7 else
8 GSTARCH_SRCS = 
9 endif
10
11 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
12
13 if GST_DISABLE_LOADSAVE
14 GST_LOADSAVE_SRC = 
15 else
16 GST_LOADSAVE_SRC = gstxml.c
17 endif
18
19 if GST_DISABLE_TYPEFIND
20 GST_TYPEFIND_SRC = 
21 else
22 GST_TYPEFIND_SRC = gsttypefind.c
23 endif
24
25 if GST_DISABLE_PARSE
26 GST_PARSE_SRC = 
27 else
28 GST_PARSE_SRC = gstparse.c
29 endif
30
31 if GST_DISABLE_AUTOPLUG
32 GST_AUTOPLUG_SRC = 
33 GST_AUTOPLUG_DIRS =
34 else
35 GST_AUTOPLUG_SRC = gstautoplug.c
36 GST_AUTOPLUG_DIRS = autoplug
37 endif
38
39 if GST_DISABLE_TRACE
40 GST_TRACE_SRC = 
41 else
42 GST_TRACE_SRC = gsttrace.c
43 endif
44
45 EXTRA_libgstreamer_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gsttypefind.c gstparse.c gstautoplug.c gsttrace.c
46
47 # cheap trick to build . first...
48 SUBDIRS = . types elements $(GST_AUTOPLUG_DIRS) schedulers
49 DIST_SUBDIRS = types elements autoplug schedulers
50
51 libcothreads_la_SOURCES = cothreads.c
52 libgstreamer_la_SOURCES =               \
53         gst.c                   \
54         gstmarshal.c            \
55         gstobject.c             \
56         $(GST_AUTOPLUG_SRC)     \
57         gstbin.c                \
58         gstbuffer.c             \
59         gstbufferpool.c         \
60         gstcaps.c               \
61         gstclock.c              \
62         gstcpu.c                \
63         gstelement.c            \
64         gstelementfactory.c     \
65         gstevent.c              \
66         gstextratypes.c         \
67         gstinfo.c               \
68         gstpad.c                \
69         gstpipeline.c           \
70         gstplugin.c             \
71         gstpluginfeature.c      \
72         gstprops.c              \
73         gstqueue.c              \
74         gstscheduler.c          \
75         gstsystemclock.c        \
76         gstthread.c             \
77         $(GST_TRACE_SRC)        \
78         gsttype.c               \
79         $(GST_TYPEFIND_SRC)     \
80         gstutils.c              \
81         gsttimecache.c          \
82         $(GST_PARSE_SRC)        \
83         $(GSTARCH_SRCS)         \
84         $(GST_LOADSAVE_SRC)
85
86
87 BUILT_SOURCES = gstmarshal.h gstmarshal.c
88
89 # Generate both marshal files together.  Makes dependency work easier.
90 gstmarshal.h: gstmarshal.list
91         glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h
92
93 gstmarshal.c: gstmarshal.list
94         echo "#include \"glib-object.h\"" >gstmarshal.c
95         echo "#include \"gstlog.h\"" >> gstmarshal.c
96         echo "#include \"gstmarshal.h\"" >> gstmarshal.c
97         glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c
98
99 ##### end built sources #####
100
101 # Don't want the generated marshal files in the dist
102 dist-hook:
103         rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
104 # Clean generated files
105 distclean-local:
106         rm -f $(top_builddir)/gst/gstmarshal.c $(top_builddir)/gst/gstmarshal.h
107
108 libgstreamerincludedir = $(includedir)/gst
109 libgstreamerinclude_HEADERS =           \
110         gst.h                   \
111         gstconfig.h             \
112         gstmarshal.h            \
113         gstobject.h             \
114         gsttypes.h              \
115         gstautoplug.h           \
116         gstbin.h                \
117         gstbuffer.h             \
118         gstbufferpool.h         \
119         gstcaps.h               \
120         gstclock.h              \
121         gstcpu.h                \
122         gstdata.h               \
123         gstelement.h            \
124         gstevent.h              \
125         gstextratypes.h         \
126         gstinfo.h               \
127         gstlog.h                \
128         gstpad.h                \
129         gstpipeline.h           \
130         gstplugin.h             \
131         gstpluginfeature.h      \
132         gstprops.h              \
133         gstqueue.h              \
134         gstscheduler.h          \
135         gstsystemclock.h        \
136         gstthread.h             \
137         gsttrace.h              \
138         gsttype.h               \
139         gsttypefind.h           \
140         gstutils.h              \
141         gsttimecache.h          \
142         gstparse.h              \
143         gstversion.h            \
144         gstxml.h
145
146 noinst_HEADERS =        \
147         gst_private.h   \
148         gstarch.h       \
149         gstpropsprivate.h \
150         cothreads.h
151
152 libgstreamer_la_CFLAGS = -D_GNU_SOURCE -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\" \
153         $(LIBGST_CFLAGS) \
154         -D_GNU_SOURCE \
155         -DG_LOG_DOMAIN=g_log_domain_gstreamer \
156         -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\"
157
158 # the compiler shoots cothreads.c in the head at -O6
159 libcothreads_la_CFLAGS = $(libgstreamer_la_CFLAGS) -O2
160
161 libgstreamer_la_LIBADD = $(LIBGST_LIBS)
162 libgstreamer_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@
163
164 EXTRA_DIST = ROADMAP