[gnome-builder/wip/loganek/libidemm: 2/6] libidemm: add tools
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/loganek/libidemm: 2/6] libidemm: add tools
- Date: Sat, 2 Apr 2016 11:27:47 +0000 (UTC)
commit 62c8f6c952368b72d38993bd6707c740d777a1ae
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sat Apr 2 12:11:06 2016 +0200
libidemm: add tools
libidemm/tools/Makefile.am | 16 +++++++++++++++
libidemm/tools/m4/convert.m4 | 5 ++++
libidemm/tools/m4/convert_libide.m4 | 37 +++++++++++++++++++++++++++++++++++
libidemm/tools/m4/filelist.am | 1 +
4 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/libidemm/tools/Makefile.am b/libidemm/tools/Makefile.am
index e69de29..dfe6f4e 100644
--- a/libidemm/tools/Makefile.am
+++ b/libidemm/tools/Makefile.am
@@ -0,0 +1,16 @@
+AUTOMAKE_OPTIONS = subdir-objects
+
+include $(srcdir)/m4/filelist.am
+
+noinst_PROGRAMS = extra_defs_gen/generate_defs_gst
+
+extra_defs_gen_generate_plugin_gmmproc_file_SOURCES = \
+ extra_defs_gen/generate_plugin_gmmproc_file.cc
+extra_defs_gen_generate_plugin_gmmproc_file_LDADD = $(GSTREAMERMM_LIBS)
+
+extra_defs_gen_generate_defs_gst_SOURCES = extra_defs_gen/generate_defs_gst.cc
+extra_defs_gen_generate_defs_gst_LDADD = \
+ $(LIBIDEMM_LIBS) -lglibmm_generate_extra_defs-2.4
+
+AM_CPPFLAGS = -I$(top_builddir) $(LIBIDEMM_CFLAGS)
+AM_CXXFLAGS = $(LIBIDEMM_WXXFLAGS)
diff --git a/libidemm/tools/m4/convert.m4 b/libidemm/tools/m4/convert.m4
new file mode 100644
index 0000000..5b7d6e3
--- /dev/null
+++ b/libidemm/tools/m4/convert.m4
@@ -0,0 +1,5 @@
+include(convert_base.m4)
+include(convert_glib.m4)
+include(convert_libide.m4)
+include(convert_glibmm.m4)
+
diff --git a/libidemm/tools/m4/convert_libide.m4 b/libidemm/tools/m4/convert_libide.m4
new file mode 100644
index 0000000..757fad4
--- /dev/null
+++ b/libidemm/tools/m4/convert_libide.m4
@@ -0,0 +1,37 @@
+dnl Enums
+#_CONV_ENUM(Gst,AssocFlags)
+
+dnl Glibmm Enums
+#_CONV_GLIB_ENUM(ThreadPriority)
+
+
+dnl ############### libidemm Class Conversions ######################
+
+
+dnl ##################General Conversions############################
+
+dnl Basic General Conversions
+_CONVERSION(`guint64&',`guint64*',`&$3')
+_CONVERSION(`guint*',`guint&',`*$3')
+_CONVERSION(`const guint&',`guint',`$3')
+_CONVERSION(`gsize*',`gsize&',`*$3')
+_CONVERSION(`const guint32&',`guint32',`$3')
+_CONVERSION(`guint8*&',`guint8**',`&$3')
+_CONVERSION(`gdouble&',`gdouble*',`&$3')
+
+dnl Glibmm Conversions
+_CONVERSION(`const Glib::Error&', `const GError*', `$3.gobj()')
+_CONVERSION(`GQuark',`Glib::QueryQuark',`Glib::QueryQuark($3)')
+_CONVERSION(`const Glib::QueryQuark&',`GQuark',`$3')
+_CONVERSION(`Glib::Threads::RecMutex&',`GRecMutex*',`$3.gobj()')
+_CONVERSION(`const Glib::StringArrayHandle&',`const gchar**',`const_cast<const char**>($3.data())')
+_CONVERSION(`const Glib::ValueArray&',`GValueArray*',`const_cast<GValueArray*>($3.gobj())')
+
+dnl String Conversions
+
+_CONVERSION(`const std::string&',`const guchar*',`($2)($3.c_str())')
+_CONVERSION(`gchar*',`const Glib::ustring&',__GCHARP_TO_USTRING)
+_CONVERSION(`gchararray',`const Glib::ustring&',__GCHARP_TO_USTRING)
+_CONVERSION(`const gchar*',`const Glib::ustring&',__GCHARP_TO_USTRING)
+_CONVERSION(`Glib::ustring&',`const guchar*', ($2)($3.c_str()))
+_CONVERSION(`const Glib::ustring&',`gchararray', $3.c_str())
diff --git a/libidemm/tools/m4/filelist.am b/libidemm/tools/m4/filelist.am
new file mode 100644
index 0000000..62717cc
--- /dev/null
+++ b/libidemm/tools/m4/filelist.am
@@ -0,0 +1 @@
+files_codegen_m4 = convert.m4 convert_libide.m4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]