[gnome-builder/wip/loganek/libidemm: 1/6] libidemm: add autotools files
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/loganek/libidemm: 1/6] libidemm: add autotools files
- Date: Sat, 2 Apr 2016 11:27:42 +0000 (UTC)
commit abf70c42d70789a70b2571d8257fb03ca9d944d0
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sat Apr 2 11:38:50 2016 +0200
libidemm: add autotools files
configure.ac | 10 +++++++++
libidemm/.gitignore | 8 +++++++
libidemm/Makefile.am | 42 +++++++++++++++++++++++++++++++++++++++++
libidemm/configure.ac | 27 ++++++++++++++++++++++++++
4 files changed, 87 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4440dd2..0355fc7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -231,6 +231,12 @@ AS_IF([test "x$have_pygobject" = "xyes"],[
dnl ***********************************************************************
+dnl Check for libidemm
+dnl ***********************************************************************
+m4_include([libidemm/configure.ac])
+
+
+dnl ***********************************************************************
dnl Check for supported plugins
dnl ***********************************************************************
m4_include([plugins/autotools/configure.ac])
@@ -509,6 +515,10 @@ echo " Build Test Suite ..................... : ${enable_tests}"
echo " Build API reference .................. : ${enable_gtk_doc}"
echo " Use cross-referencing in API docs .... : ${enable_doc_cross_references}"
echo ""
+echo " Optional libraries"
+echo ""
+echo " libidemm.............................. : ${enable_libidemm}"
+echo ""
echo " Scripting"
echo ""
echo " Python ............................... : ${enable_python_scripting}"
diff --git a/libidemm/.gitignore b/libidemm/.gitignore
new file mode 100644
index 0000000..c1dd6b9
--- /dev/null
+++ b/libidemm/.gitignore
@@ -0,0 +1,8 @@
+/Makefile
+/Makefile.in
+/libidemm/Makefile
+/libidemm/Makefile.in
+/src/Makefile
+/src/Makefile.in
+/tools/Makefile
+/tools/Makefile.in
\ No newline at end of file
diff --git a/libidemm/Makefile.am b/libidemm/Makefile.am
new file mode 100644
index 0000000..257d857
--- /dev/null
+++ b/libidemm/Makefile.am
@@ -0,0 +1,42 @@
+## Copyright (C) 2016 Marcin Kolny <marcin kolny gmail com>
+##
+## This program is free software: you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, either version 3 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+srcmm_subdirs = libidemm
+pkgconfig_files = $(LIBIDEMM_MODULE_NAME).pc
+libidemm_include_HEADERS = libidemm.h
+
+if MAINTAINER_MODE
+src_subdirs = src
+else
+src_subdirs =
+endif
+
+# TODO
+# if ENABLE_DOCUMENTATION
+# doc_subdirs = docs
+# else
+# doc_subdirs =
+# endif
+
+SUBDIRS = tools $(src_subdirs) $(srcmm_subdirs) # $(doc_subdirs)
+
+libidemm_includedir = $(includedir)/$(LIBIDEMM_MODULE_NAME)
+libidemm_libincludedir = $(libdir)/$(LIBIDEMM_MODULE_NAME)/include
+nodist_libidemm_libinclude_HEADERS = libide/libidemmconfig.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = $(pkgconfig_files)
+
+dist_noinst_SCRIPTS = autogen.sh
diff --git a/libidemm/configure.ac b/libidemm/configure.ac
new file mode 100644
index 0000000..876dbdc
--- /dev/null
+++ b/libidemm/configure.ac
@@ -0,0 +1,27 @@
+m4_define([glibmm_required_version], [2.47.3])
+
+AC_ARG_ENABLE([libidemm],
+ [AS_HELP_STRING([--enable-libidemm=@<:@yes/no@:>@],
+ [Build libidemm library (C++ wrapper for libide])],
+ [enable_libidemm=$enableval],
+ [enable_libidemm=auto])
+
+AS_IF([test x$enable_libidemm != xno],[
+ PKG_CHECK_MODULES(GLIBMM,
+ [glibmm-2.4 >= glibmm_required_version],
+ [have_glibmm=yes],
+ [have_glibmm=no])
+
+ AS_IF([test x$enable_libidemm = xyes && x$have_libidemm = xno],[
+ AC_MSG_ERROR([--enable-libidemm requires glibmm >= glibmm_required_version])
+ ])
+
+ enable_libidemm=$have_glibmm
+])
+
+AM_CONDITIONAL(ENABLE_LIBIDEMM, test x$enable_libidemm = xyes)
+
+AC_CONFIG_FILES([libidemm/Makefile])
+AC_CONFIG_FILES([libidemm/libidemm/Makefile])
+AC_CONFIG_FILES([libidemm/src/Makefile])
+AC_CONFIG_FILES([libidemm/tools/Makefile])
diff --git a/libidemm/libidemm/Makefile.am b/libidemm/libidemm/Makefile.am
new file mode 100644
index 0000000..e69de29
diff --git a/libidemm/src/Makefile.am b/libidemm/src/Makefile.am
new file mode 100644
index 0000000..e69de29
diff --git a/libidemm/tools/Makefile.am b/libidemm/tools/Makefile.am
new file mode 100644
index 0000000..e69de29
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]