Permalink
Browse files

Integrate debugger into geany-plugins autofoo

  • Loading branch information...
1 parent 7704bb2 commit e5abb0feb8f128b90fb5caa48779d7fe1da6f093 @hyperair hyperair committed Feb 9, 2011
Showing with 30 additions and 19 deletions.
  1. +11 −0 build/debugger.m4
  2. +1 −0 configure.ac
  3. +9 −12 debugger/Makefile.am
  4. +9 −7 debugger/src/Makefile.am
View
@@ -0,0 +1,11 @@
+AC_DEFUN([GP_CHECK_DEBUGGER],
+[
+ GP_ARG_DISABLE([Debugger], [auto])
+ GP_CHECK_PLUGIN_DEPS([debugger], [VTE],
+ [vte >= 0.24])
+ GP_STATUS_PLUGIN_ADD([Debugger], [$enable_debugger])
+ AC_CONFIG_FILES([
+ debugger/Makefile
+ debugger/src/Makefile
+ ])
+])
View
@@ -24,6 +24,7 @@ GP_CHECK_UNITTESTS(0.9.4)
dnl plugin checks
GP_CHECK_ADDONS
GP_CHECK_CODENAV
+GP_CHECK_DEBUGGER
GP_CHECK_GEANYCFP
GP_CHECK_GEANYDOC
GP_CHECK_GEANYEXTRASEL
View
@@ -1,14 +1,11 @@
-SUBDIRS = src po
+if ENABLE_CODENAV
+include $(top_srcdir)/build/vars.auxfiles.mk
+else
+include $(top_srcdir)/build/vars.docs.mk
+EXTRA_DIST =
+endif
-EXTRA_DIST = \
- autogen.sh \
- makefile.win32 \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in \
- indent-all.sh
+SUBDIRS = src
-DISTCLEANFILES = \
- intltool-extract \
- intltool-merge \
- intltool-update
+EXTRA_DIST += \
+ indent-all.sh
View
@@ -1,5 +1,11 @@
+include $(top_srcdir)/build/vars.build.mk
+
+if ENABLE_DEBUGGER
+geanyplugins_LTLIBRARIES = debugger.la
+else
+EXTRA_LTLIBRARIES = debugger.la
+endif
-lib_LTLIBRARIES = debugger.la
debugger_la_SOURCES = \
bptree.c \
bptree.h \
@@ -32,10 +38,6 @@ debugger_la_SOURCES = \
watch_model.c \
watch_model.h \
wtree.c \
- wtree.h
-
-debugger_la_LDFLAGS = -module -avoid-version
-debugger_la_LIBADD = @GEANY_LIBS@ $(INTLLIBS) -lutil
-
-AM_CFLAGS = @GEANY_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DPREFIX=\""$(prefix)"\"
+ wtree.h
+debugger_la_LIBADD = $(COMMONLIBS) -lutil

0 comments on commit e5abb0f

Please sign in to comment.