blob: b803b5e7ecd7ccb350e9f50efcbccdc88e06e122 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
noinst_LTLIBRARIES = libqmi-glib-generated.la
GENERATED_H = \
qmi-error-types.h \
qmi-enum-types.h \
qmi-enum-types-private.h \
qmi-flags64-types.h \
qmi-ctl.h \
qmi-dms.h \
qmi-nas.h \
qmi-wds.h \
qmi-wms.h \
qmi-pds.h \
qmi-pbm.h \
qmi-uim.h \
qmi-oma.h \
qmi-wda.h
GENERATED_C = \
qmi-error-types.c \
qmi-error-quarks.c \
qmi-enum-types.c \
qmi-enum-types-private.c \
qmi-flags64-types.c \
qmi-ctl.c \
qmi-dms.c \
qmi-nas.c \
qmi-wds.c \
qmi-wms.c \
qmi-pds.c \
qmi-pbm.c \
qmi-uim.c \
qmi-oma.c \
qmi-wda.c
GENERATED_SECTIONS = \
qmi-ctl.sections \
qmi-dms.sections \
qmi-nas.sections \
qmi-wds.sections \
qmi-wms.sections \
qmi-pds.sections \
qmi-pbm.sections \
qmi-uim.sections \
qmi-oma.sections \
qmi-wda.sections
# Error types
qmi-error-types.h: $(top_srcdir)/src/libqmi-glib/qmi-errors.h $(top_srcdir)/build-aux/templates/qmi-error-types-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#ifndef __LIBQMI_GLIB_ERROR_TYPES_H__\n#define __LIBQMI_GLIB_ERROR_TYPES_H__\n#include \"qmi-errors.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-error-types-template.h \
--ftail "#endif /* __LIBQMI_GLIB_ERROR_TYPES_H__ */\n" \
$(top_srcdir)/src/libqmi-glib/qmi-errors.h > $@
qmi-error-types.c: $(top_srcdir)/src/libqmi-glib/qmi-errors.h qmi-error-types.h $(top_srcdir)/build-aux/templates/qmi-error-types-template.c
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"qmi-errors.h\"\n#include \"qmi-error-types.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-error-types-template.c \
$(top_srcdir)/src/libqmi-glib/qmi-errors.h > $@
qmi-error-quarks.c: $(top_srcdir)/src/libqmi-glib/qmi-errors.h qmi-error-types.h $(top_srcdir)/build-aux/templates/qmi-error-quarks-template.c
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"qmi-errors.h\"\n#include \"qmi-error-types.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-error-quarks-template.c \
$(top_srcdir)/src/libqmi-glib/qmi-errors.h > $@
# Enum/Flag types
ENUMS = \
$(top_srcdir)/src/libqmi-glib/qmi-enums.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-wds.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-dms.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-nas.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-wms.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-pds.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-pbm.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-uim.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-oma.h \
$(top_srcdir)/src/libqmi-glib/qmi-enums-wda.h \
$(top_srcdir)/src/libqmi-glib/qmi-device.h
qmi-enum-types.h: $(ENUMS) $(top_srcdir)/build-aux/templates/qmi-enum-types-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#ifndef __LIBQMI_GLIB_ENUM_TYPES_H__\n#define __LIBQMI_GLIB_ENUM_TYPES_H__\n#include \"qmi-enums.h\"\n#include \"qmi-enums-wds.h\"\n#include \"qmi-enums-dms.h\"\n#include \"qmi-enums-nas.h\"\n#include \"qmi-enums-wms.h\"\n#include \"qmi-enums-pds.h\"\n#include \"qmi-enums-pbm.h\"\n#include \"qmi-enums-uim.h\"\n#include \"qmi-enums-oma.h\"\n#include \"qmi-enums-wda.h\"\n#include \"qmi-device.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.h \
--ftail "#endif /* __LIBQMI_GLIB_ENUM_TYPES_H__ */\n" \
$(ENUMS) > $@
qmi-enum-types.c: $(ENUMS) qmi-enum-types.h $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"qmi-enum-types.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c \
$(ENUMS) > $@
# Private Enum/Flag types
PRIVATE_ENUMS = \
$(top_srcdir)/src/libqmi-glib/qmi-enums-private.h
qmi-enum-types-private.h: $(PRIVATE_ENUMS) $(top_srcdir)/build-aux/templates/qmi-enum-types-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#ifndef __LIBQMI_GLIB_ENUM_TYPES_PRIVATE_H__\n#define __LIBQMI_GLIB_ENUM_TYPES_PRIVATE_H__\n#include \"qmi-enums-private.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.h \
--ftail "#endif /* __LIBQMI_GLIB_ENUM_TYPES_PRIVATE_H__ */\n" \
$(PRIVATE_ENUMS) > $@
qmi-enum-types-private.c: $(PRIVATE_ENUMS) qmi-enum-types-private.h $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"qmi-enum-types-private.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c \
$(PRIVATE_ENUMS) > $@
# 64bit flag types
FLAGS64 = $(top_srcdir)/src/libqmi-glib/qmi-flags64-dms.h $(top_srcdir)/src/libqmi-glib/qmi-flags64-nas.h
qmi-flags64-types.h: $(FLAGS64) $(top_srcdir)/build-aux/templates/qmi-flags64-types-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#ifndef __LIBQMI_GLIB_FLAGS64_TYPES_H__\n#define __LIBQMI_GLIB_FLAGS64_TYPES_H__\n#include \"qmi-flags64-dms.h\"\n#include \"qmi-flags64-nas.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-flags64-types-template.h \
--ftail "#endif /* __LIBQMI_GLIB_FLAGS64_TYPES_H__ */\n" \
$(FLAGS64) > $@
qmi-flags64-types.c: $(FLAGS64) qmi-flags64-types.h $(top_srcdir)/build-aux/templates/qmi-flags64-types-template.c
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"qmi-flags64-types.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-flags64-types-template.c \
$(FLAGS64) > $@
# CTL service
qmi-ctl.h qmi-ctl.c qmi-ctl.sections: $(top_srcdir)/data/qmi-service-ctl.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-ctl.h && \
rm -f qmi-ctl.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-ctl.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-ctl
# DMS service
qmi-dms.h qmi-dms.c qmi-dms.sections: $(top_srcdir)/data/qmi-service-dms.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-dms.h && \
rm -f qmi-dms.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-dms.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-dms
# WDS service
qmi-wds.h qmi-wds.c qmi-wds.sections: $(top_srcdir)/data/qmi-service-wds.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-wds.h && \
rm -f qmi-wds.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-wds.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-wds
# NAS service
qmi-nas.h qmi-nas.c qmi-nas.sections: $(top_srcdir)/data/qmi-service-nas.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-nas.h && \
rm -f qmi-nas.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-nas.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-nas
# WMS service
qmi-wms.h qmi-wms.c qmi-wms.sections: $(top_srcdir)/data/qmi-service-wms.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-wms.h && \
rm -f qmi-wms.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-wms.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-wms
# PDS service
qmi-pds.h qmi-pds.c qmi-pds.sections: $(top_srcdir)/data/qmi-service-pds.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-pds.h && \
rm -f qmi-pds.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-pds.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-pds
# PBM service
qmi-pbm.h qmi-pbm.c qmi-pbm.sections: $(top_srcdir)/data/qmi-service-pbm.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-pbm.h && \
rm -f qmi-pbm.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-pbm.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-pbm
# UIM service
qmi-uim.h qmi-uim.c qmi-uim.sections: $(top_srcdir)/data/qmi-service-uim.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-uim.h && \
rm -f qmi-uim.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-uim.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-uim
# OMA service
qmi-oma.h qmi-oma.c qmi-oma.sections: $(top_srcdir)/data/qmi-service-oma.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-oma.h && \
rm -f qmi-oma.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-oma.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-oma
# WDA service
qmi-wda.h qmi-wda.c qmi-wda.sections: $(top_srcdir)/data/qmi-service-wda.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-wda.h && \
rm -f qmi-wda.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-wda.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-wda
BUILT_SOURCES = $(GENERATED_H) $(GENERATED_C)
nodist_libqmi_glib_generated_la_SOURCES = \
$(GENERATED_H) \
$(GENERATED_C)
libqmi_glib_generated_la_CPPFLAGS = \
$(GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_srcdir)/src/libqmi-glib \
-I$(top_builddir)/src/libqmi-glib \
-DLIBQMI_GLIB_COMPILATION \
-DG_LOG_DOMAIN=\"Qmi\" \
-Wno-unused-function
libqmi_glib_generated_la_LIBADD = \
$(GLIB_LIBS)
includedir = @includedir@/libqmi-glib
nodist_include_HEADERS = \
qmi-error-types.h \
qmi-enum-types.h \
qmi-flags64-types.h \
qmi-dms.h \
qmi-nas.h \
qmi-wds.h \
qmi-wms.h \
qmi-pds.h \
qmi-pbm.h \
qmi-uim.h \
qmi-oma.h \
qmi-wda.h
CLEANFILES = $(GENERATED_H) $(GENERATED_C) $(GENERATED_SECTIONS)
|