uploaded original spice-server-0.12.4 and celt-0.5.1.3
[sdk/emulator/libs/spice-server.git] / spice-common / common / Makefile.am
1 NULL =
2
3 # Avoid need for python(pyparsing) by end users
4 CLIENT_MARSHALLERS =                                    \
5         $(srcdir)/generated_client_demarshallers.c      \
6         $(srcdir)/generated_client_demarshallers1.c     \
7         $(srcdir)/generated_client_marshallers.c        \
8         $(srcdir)/generated_client_marshallers1.c       \
9         $(NULL)
10
11 SERVER_MARSHALLERS =                                    \
12         $(srcdir)/generated_server_demarshallers.c      \
13         $(srcdir)/generated_server_marshallers.c        \
14         $(srcdir)/generated_server_marshallers.h        \
15         $(NULL)
16
17 BUILT_SOURCES = $(CLIENT_MARSHALLERS) $(SERVER_MARSHALLERS) $(top_srcdir)/spice-protocol/spice/enums.h
18
19 noinst_LTLIBRARIES = libspice-common.la libspice-common-server.la libspice-common-client.la
20 libspice_common_la_SOURCES =            \
21         backtrace.c                     \
22         backtrace.h                     \
23         bitops.h                        \
24         canvas_utils.c                  \
25         canvas_utils.h                  \
26         client_demarshallers.h          \
27         client_marshallers.h            \
28         draw.h                          \
29         lines.c                         \
30         lines.h                         \
31         log.c                           \
32         log.h                           \
33         lz.c                            \
34         lz.h                            \
35         lz_common.h                     \
36         lz_config.h                     \
37         macros.h                        \
38         marshaller.c                    \
39         marshaller.h                    \
40         mem.c                           \
41         mem.h                           \
42         messages.h                      \
43         mutex.h                         \
44         pixman_utils.c                  \
45         pixman_utils.h                  \
46         quic.c                          \
47         quic.h                          \
48         quic_config.h                   \
49         rect.h                          \
50         region.c                        \
51         region.h                        \
52         ring.h                          \
53         rop3.c                          \
54         rop3.h                          \
55         spice_common.h                  \
56         ssl_verify.c                    \
57         ssl_verify.h                    \
58         verify.h                        \
59         $(NULL)
60
61 libspice_common_client_la_SOURCES =             \
62         $(CLIENT_MARSHALLERS)                   \
63         $(NULL)
64
65 libspice_common_server_la_SOURCES =             \
66         $(SERVER_MARSHALLERS)                   \
67         $(NULL)
68
69 libspice_common_server_la_CFLAGS = -DFIXME_SERVER_SMARTCARD
70
71 if SUPPORT_GL
72 libspice_common_la_SOURCES +=           \
73         gl_utils.h                      \
74         glc.c                           \
75         glc.h                           \
76         ogl_ctx.c                       \
77         ogl_ctx.h                       \
78         $(NULL)
79 endif
80
81 AM_CPPFLAGS =                           \
82         $(GL_CFLAGS)                    \
83         $(PIXMAN_CFLAGS)                \
84         $(PROTOCOL_CFLAGS)              \
85         $(SMARTCARD_CFLAGS)             \
86         $(VISIBILITY_HIDDEN_CFLAGS)     \
87         $(WARN_CFLAGS)                  \
88         -std=gnu99                      \
89         $(NULL)
90
91 MARSHALLERS_DEPS =                                      \
92         $(top_srcdir)/python_modules/__init__.py        \
93         $(top_srcdir)/python_modules/codegen.py         \
94         $(top_srcdir)/python_modules/demarshal.py       \
95         $(top_srcdir)/python_modules/marshal.py         \
96         $(top_srcdir)/python_modules/ptypes.py          \
97         $(top_srcdir)/python_modules/spice_parser.py    \
98         $(top_srcdir)/spice_codegen.py                  \
99         $(NULL)
100
101 # Note despite being autogenerated these are not part of CLEANFILES, they are
102 # actually a part of EXTRA_DIST, to avoid the need for pyparser by end users
103 generated_client_demarshallers.c: $(top_srcdir)/spice.proto $(MARSHALLERS_DEPS)
104         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-demarshallers --client --include messages.h $< $@ >/dev/null
105
106 generated_client_demarshallers1.c: $(top_srcdir)/spice1.proto $(MARSHALLERS_DEPS)
107         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-demarshallers --client --include messages.h --prefix 1 --ptrsize 8 $< $@ >/dev/null
108
109 generated_client_marshallers.c: $(top_srcdir)/spice.proto $(MARSHALLERS_DEPS)
110         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-marshallers -P --include messages.h --include client_marshallers.h --client $< $@ >/dev/null
111
112 generated_client_marshallers1.c: $(top_srcdir)/spice1.proto $(MARSHALLERS_DEPS)
113         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-marshallers -P --include messages.h --include client_marshallers.h --client --prefix 1 --ptrsize 8 $< $@ >/dev/null
114
115 generated_server_demarshallers.c: $(top_srcdir)/spice.proto $(MARSHALLERS_DEPS)
116         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-demarshallers --server --include messages.h $< $@ >/dev/null
117
118 STRUCTS = -M String -M Rect -M Point -M DisplayBase -M Fill -M Opaque -M Copy -M Blend -M Blackness -M Whiteness -M Invers -M Rop3 -M Stroke -M Text -M Transparent -M AlphaBlend -M Composite
119 generated_server_marshallers.c: $(top_srcdir)/spice.proto $(MARSHALLERS_DEPS)
120         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-marshallers $(STRUCTS) --server --include messages.h $< $@ >/dev/null
121
122 generated_server_marshallers.h: $(top_srcdir)/spice.proto $(MARSHALLERS_DEPS)
123         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-marshallers $(STRUCTS) --server --include messages.h -H $< $@ >/dev/null
124
125 # this is going to upset automake distcheck, since we try to write to
126 # readonly srcdir. To limit the fail chances, rebuild automatically
127 # enums.h only if the spice.proto has changed.
128 $(top_srcdir)/spice-protocol/spice/enums.h: $(top_srcdir)/spice.proto # $(MARSHALLERS_DEPS)
129         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-enums $< $@ >/dev/null
130
131 EXTRA_DIST =                            \
132         $(CLIENT_MARSHALLERS)           \
133         $(SERVER_MARSHALLERS)           \
134         canvas_base.c                   \
135         canvas_base.h                   \
136         gdi_canvas.c                    \
137         gdi_canvas.h                    \
138         gl_canvas.c                     \
139         gl_canvas.h                     \
140         lz_compress_tmpl.c              \
141         lz_decompress_tmpl.c            \
142         quic_family_tmpl.c              \
143         quic_rgb_tmpl.c                 \
144         quic_tmpl.c                     \
145         sw_canvas.c                     \
146         sw_canvas.h                     \
147         $(NULL)
148
149 -include $(top_srcdir)/git.mk