libmm-glib,tests: use gdbus-codegen to generate code for the new Test interface
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -37,6 +37,7 @@ libmm-glib/generated/mm-enums-types.[ch]
|
|||||||
libmm-glib/generated/mm-errors-types.[ch]
|
libmm-glib/generated/mm-errors-types.[ch]
|
||||||
libmm-glib/generated/mm-errors-quarks.c
|
libmm-glib/generated/mm-errors-quarks.c
|
||||||
libmm-glib/generated/*.xml
|
libmm-glib/generated/*.xml
|
||||||
|
libmm-glib/generated/tests/mm-gdbus-*.[ch]
|
||||||
libmm-glib/tests/test-common-helpers
|
libmm-glib/tests/test-common-helpers
|
||||||
libmm-glib/*.gir
|
libmm-glib/*.gir
|
||||||
libmm-glib/*.typelib
|
libmm-glib/*.typelib
|
||||||
|
@@ -302,6 +302,7 @@ docs/reference/libmm-glib/Makefile
|
|||||||
docs/reference/libmm-glib/version.xml
|
docs/reference/libmm-glib/version.xml
|
||||||
libmm-glib/Makefile
|
libmm-glib/Makefile
|
||||||
libmm-glib/generated/Makefile
|
libmm-glib/generated/Makefile
|
||||||
|
libmm-glib/generated/tests/Makefile
|
||||||
libmm-glib/tests/Makefile
|
libmm-glib/tests/Makefile
|
||||||
vapi/Makefile
|
vapi/Makefile
|
||||||
cli/Makefile
|
cli/Makefile
|
||||||
|
@@ -28,6 +28,7 @@ CFILE_GLOB =
|
|||||||
IGNORE_HFILES = \
|
IGNORE_HFILES = \
|
||||||
mm-helpers.h \
|
mm-helpers.h \
|
||||||
mm-common-helpers.h \
|
mm-common-helpers.h \
|
||||||
|
mm-gdbus-test.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
# CFLAGS and LDFLAGS for compiling scan program. Only needed
|
# CFLAGS and LDFLAGS for compiling scan program. Only needed
|
||||||
@@ -45,7 +46,13 @@ GTKDOC_LIBS = \
|
|||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
# Extra options to supply to gtkdoc-mkdb
|
# Extra options to supply to gtkdoc-mkdb
|
||||||
MKDB_OPTIONS = --output-format=xml --sgml-mode --name-space=mm
|
MKDB_OPTIONS = \
|
||||||
|
--output-format=xml \
|
||||||
|
--sgml-mode \
|
||||||
|
--name-space=mm \
|
||||||
|
--ignore-files=mm-gdbus-test.h \
|
||||||
|
--ignore-files=mm-gdbus-test.c \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
# Images to copy into HTML directory
|
# Images to copy into HTML directory
|
||||||
HTML_IMAGES = \
|
HTML_IMAGES = \
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
SUBDIRS = . tests
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libmm-generated.la
|
noinst_LTLIBRARIES = libmm-generated.la
|
||||||
|
|
||||||
GENERATED_H = \
|
GENERATED_H = \
|
||||||
|
38
libmm-glib/generated/tests/Makefile.am
Normal file
38
libmm-glib/generated/tests/Makefile.am
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = libmm-test-generated.la
|
||||||
|
|
||||||
|
GENERATED_H = mm-gdbus-test.h
|
||||||
|
GENERATED_C = mm-gdbus-test.c
|
||||||
|
|
||||||
|
BUILT_SOURCES = $(GENERATED_H) $(GENERATED_C)
|
||||||
|
|
||||||
|
# Test interface
|
||||||
|
mm_gdbus_test_generated = \
|
||||||
|
mm-gdbus-test.h \
|
||||||
|
mm-gdbus-test.c
|
||||||
|
$(mm_gdbus_test_generated): $(top_srcdir)/introspection/tests/org.freedesktop.ModemManager1.Test.xml
|
||||||
|
$(AM_V_GEN) gdbus-codegen \
|
||||||
|
--interface-prefix org.freedesktop.ModemManager1. \
|
||||||
|
--c-namespace=MmGdbus \
|
||||||
|
--generate-c-code mm-gdbus-test \
|
||||||
|
$< \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
nodist_libmm_test_generated_la_SOURCES = \
|
||||||
|
$(GENERATED_H) \
|
||||||
|
$(GENERATED_C)
|
||||||
|
|
||||||
|
libmm_test_generated_la_CPPFLAGS = \
|
||||||
|
$(LIBMM_GLIB_CFLAGS) \
|
||||||
|
-I$(top_srcdir) \
|
||||||
|
-I$(top_srcdir)/include \
|
||||||
|
-I$(top_builddir)/include \
|
||||||
|
-Wno-unused-function \
|
||||||
|
-Wno-float-equal \
|
||||||
|
-Wno-shadow
|
||||||
|
|
||||||
|
libmm_test_generated_la_LIBADD = \
|
||||||
|
$(LIBMM_GLIB_LIBS)
|
||||||
|
|
||||||
|
CLEANFILES = $(GENERATED_H) $(GENERATED_C)
|
Reference in New Issue
Block a user