build: generate libserial-specific enum types
This commit is contained in:
@@ -35,6 +35,22 @@ libmodem_helpers_la_SOURCES = \
|
||||
mm-sms-utils.c \
|
||||
mm-sms-utils.h
|
||||
|
||||
# libserial specific enum types
|
||||
SERIAL_ENUMS = mm-port.h
|
||||
|
||||
mm-serial-enums-types.h: Makefile.am $(SERIAL_ENUMS) $(top_srcdir)/build-aux/mm-enums-template.h
|
||||
$(AM_V_GEN) glib-mkenums \
|
||||
--fhead "#include \"mm-port.h\"\n#ifndef __MM_SERIAL_ENUMS_TYPES_H__\n#define __MM_SERIAL_ENUMS_TYPES_H__\n" \
|
||||
--template $(top_srcdir)/build-aux/mm-enums-template.h \
|
||||
--ftail "#endif /* __MM_SERIAL_ENUMS_TYPES_H__ */\n" \
|
||||
$(SERIAL_ENUMS) > $@
|
||||
|
||||
mm-serial-enums-types.c: Makefile.am $(top_srcdir)/include/ModemManager-enums.h $(top_srcdir)/build-aux/mm-enums-template.c mm-serial-enums-types.h
|
||||
$(AM_V_GEN) glib-mkenums \
|
||||
--fhead "#include \"mm-serial-enums-types.h\"" \
|
||||
--template $(top_srcdir)/build-aux/mm-enums-template.c \
|
||||
$(SERIAL_ENUMS) > $@
|
||||
|
||||
libserial_la_CPPFLAGS = \
|
||||
$(MM_CFLAGS) \
|
||||
-I$(top_srcdir) \
|
||||
@@ -51,7 +67,9 @@ libserial_la_SOURCES = \
|
||||
mm-at-serial-port.c \
|
||||
mm-at-serial-port.h \
|
||||
mm-qcdm-serial-port.c \
|
||||
mm-qcdm-serial-port.h
|
||||
mm-qcdm-serial-port.h \
|
||||
mm-serial-enums-types.h \
|
||||
mm-serial-enums-types.c
|
||||
|
||||
# Daemon specific enum types
|
||||
DAEMON_ENUMS = mm-bearer.h
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
typedef enum {
|
||||
typedef enum { /*< underscore_name=mm_port_subsys >*/
|
||||
MM_PORT_SUBSYS_UNKNOWN = 0x0,
|
||||
MM_PORT_SUBSYS_TTY,
|
||||
MM_PORT_SUBSYS_NET,
|
||||
@@ -27,7 +27,7 @@ typedef enum {
|
||||
MM_PORT_SUBSYS_LAST = MM_PORT_SUBSYS_NET
|
||||
} MMPortSubsys;
|
||||
|
||||
typedef enum {
|
||||
typedef enum { /*< underscore_name=mm_port_type >*/
|
||||
MM_PORT_TYPE_UNKNOWN = 0x0,
|
||||
MM_PORT_TYPE_AT,
|
||||
MM_PORT_TYPE_IGNORED,
|
||||
@@ -79,4 +79,3 @@ const char * mm_port_type_to_name (MMPortType ptype);
|
||||
const char * mm_port_subsys_to_name (MMPortSubsys psubsys);
|
||||
|
||||
#endif /* MM_PORT_H */
|
||||
|
||||
|
Reference in New Issue
Block a user