build: let enum and error templates be completely generic
Don't include anything in the templates specific to the file to be built, like #ifdef guards in headers or #include in sources.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
EXTRA_DIST = \
|
||||
header-generator.xsl \
|
||||
mm-enums-types.h.template \
|
||||
mm-enums-types.c.template \
|
||||
mm-enums-errors.h.template \
|
||||
mm-enums-errors.c.template
|
||||
mm-enums-template.h \
|
||||
mm-enums-template.c \
|
||||
mm-errors-template.h \
|
||||
mm-errors-template.c
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/*** BEGIN file-header ***/
|
||||
#include "ModemManager-enums.h"
|
||||
#include "mm-enums-types.h"
|
||||
|
||||
/*** END file-header ***/
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/*** BEGIN file-header ***/
|
||||
#ifndef __MM_ENUMS_TYPES_H__
|
||||
#define __MM_ENUMS_TYPES_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
@@ -20,5 +18,4 @@ GType @enum_name@_get_type (void) G_GNUC_CONST;
|
||||
/*** BEGIN file-tail ***/
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __MM_ENUMS_TYPES_H__ */
|
||||
/*** END file-tail ***/
|
||||
@@ -1,7 +1,4 @@
|
||||
/*** BEGIN file-header ***/
|
||||
#include "ModemManager-errors.h"
|
||||
#include "mm-errors-types.h"
|
||||
|
||||
/*** END file-header ***/
|
||||
|
||||
/*** BEGIN file-production ***/
|
||||
@@ -1,8 +1,5 @@
|
||||
/*** BEGIN file-header ***/
|
||||
|
||||
#ifndef __MM_ERRORS_TYPES_H__
|
||||
#define __MM_ERRORS_TYPES_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
@@ -23,5 +20,4 @@ GType @enum_name@_get_type (void) G_GNUC_CONST;
|
||||
/*** BEGIN file-tail ***/
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __MM_ERRORS_TYPES_H__ */
|
||||
/*** END file-tail ***/
|
||||
/*** END file-tail ***/
|
||||
Reference in New Issue
Block a user