qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Add libgnt to meson build.
meson
2016-08-23, Elliott Sales de Andrade
7f3df413b4ed
Parents
12cec571fe2c
Children
e7be65adb912
Add libgnt to meson build.
2 files changed, 143 insertions(+), 0 deletions(-)
+129
-0
meson.build
+14
-0
wms/meson.build
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/meson.build Tue Aug 23 01:13:08 2016 -0400
@@ -0,0 +1,129 @@
+gntmarshal_h = glib_genmarshal_h.process('gntmarshal',
+ extra_args : ['--prefix=gnt_closure_marshal'],
+ install : true,
+ install_dir : get_option('includedir') + '/gnt')
+gntmarshal_c = glib_genmarshal_c.process('gntmarshal',
+ extra_args : ['--prefix=gnt_closure_marshal'])
+
+libgnt_SOURCES = [
+ gntmarshal_c,
+ 'gntwidget.c',
+ 'gntbindable.c',
+ 'gntbox.c',
+ 'gntbutton.c',
+ 'gntcheckbox.c',
+ 'gntclipboard.c',
+ 'gntcolors.c',
+ 'gntcombobox.c',
+ 'gntentry.c',
+ 'gntfilesel.c',
+ 'gntkeys.c',
+ 'gntlabel.c',
+ 'gntline.c',
+ gntmarshal_h,
+ 'gntmenu.c',
+ 'gntmenuitem.c',
+ 'gntmenuitemcheck.c',
+ 'gntprogressbar.c',
+ 'gntslider.c',
+ 'gntstyle.c',
+ 'gnttextview.c',
+ 'gnttree.c',
+ 'gntutils.c',
+ 'gntwindow.c',
+ 'gntwm.c',
+ 'gntws.c',
+ 'gntmain.c'
+]
+
+libgnt_headers = [
+ 'gntwidget.h',
+ 'gntbindable.h',
+ 'gntbox.h',
+ 'gntbutton.h',
+ 'gntcheckbox.h',
+ 'gntclipboard.h',
+ 'gntcolors.h',
+ 'gntcombobox.h',
+ 'gntentry.h',
+ 'gntfilesel.h',
+ 'gntkeys.h',
+ 'gntlabel.h',
+ 'gntline.h',
+ 'gntmenu.h',
+ 'gntmenuitem.h',
+ 'gntmenuitemcheck.h',
+ 'gntprogressbar.h',
+ 'gntslider.h',
+ 'gntstyle.h',
+ 'gnttextview.h',
+ 'gnttree.h',
+ 'gntutils.h',
+ 'gntwindow.h',
+ 'gntwm.h',
+ 'gntws.h',
+ 'gnt.h'
+]
+
+install_headers(libgnt_headers, subdir : 'gnt')
+
+libgnt_inc = include_directories('.')
+libgnt = library('gnt',
+ libgnt_SOURCES,
+ include_directories : [toplevel_inc],
+ install : true,
+ soversion : gnt_lt_current,
+ version : GNT_LT_VERSION_INFO,
+ dependencies : [ncurses, libxml, glib, gmodule, gobject])#pythonlib])
+libgnt_dep = declare_dependency(
+ include_directories : [toplevel_inc, libgnt_inc],
+ link_with : libgnt,
+ dependencies : [glib])
+
+configure_file(input : 'gnt.pc.in',
+ output : 'gnt.pc',
+ configuration : conf,
+ install : true,
+ install_dir : get_option('libdir') + '/pkgconfig')
+
+if IS_WIN32
+ # TODO: Do something with this:
+ LIBGNT_WIN32RES = WINDRES.process('libgnt_winres.rc')
+endif
+
+#-include $(INTROSPECTION_MAKEFILE)
+#INTROSPECTION_GIRS =
+#INTROSPECTION_SCANNER_ARGS = \
+# --add-include-path=$(prefix)/share/gir-1.0 \
+# --warn-all
+#INTROSPECTION_COMPILER_ARGS = --includedir=$(prefix)/share/gir-1.0
+
+if enable_introspection
+#introspection_sources = $(libgnt_lainclude_HEADERS)
+
+#Gnt-$(GNT_MAJOR_VERSION).$(GNT_MINOR_VERSION).gir: $(builddir)/libgnt.la
+#Gnt_2_9_gir_INCLUDES = GObject-2.0
+#Gnt_2_9_gir_CFLAGS = \
+# $(INCLUDES) \
+# $(GLIB_CFLAGS) \
+# $(GNT_CFLAGS) \
+# $(LIBXML_CFLAGS) \
+# $(INTROSPECTION_CFLAGS) \
+# $(PY_CFLAGS)
+
+#Gnt_2_9_gir_LIBS = $(builddir)/libgnt.la
+#Gnt_2_9_gir_FILES = $(introspection_sources)
+#INTROSPECTION_GIRS += Gnt-$(GNT_MAJOR_VERSION).$(GNT_MINOR_VERSION).gir
+
+#girdir = \
+# $(prefix)/share/gir-1.0 \
+# $(INTROSPECTION_GIRDIR)
+#gir_DATA = $(INTROSPECTION_GIRS)
+
+#typelibdir = \
+# $(prefix)/share/gir-1.0 \
+# $(INTROSPECTION_TYPELIBDIR)
+#typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+endif
+
+subdir('wms')
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wms/meson.build Tue Aug 23 01:13:08 2016 -0400
@@ -0,0 +1,14 @@
+plugindir = get_option('libdir') + '/gnt'
+
+irssi = library('irssi', 'irssi.c',
+ dependencies : [ncurses, gobject, libgnt_dep],
+ name_prefix : '',
+ install : true, install_dir : plugindir)
+
+if PURPLE_AVAILABLE
+ # These custom wms depend on libpurple
+ s = library('s', 's.c',
+ dependencies : [ncurses, gobject, libgnt_dep, libpurple_dep],
+ name_prefix : '',
+ install : true, install_dir : plugindir)
+endif