Mandrav took out the BUILDING_PLUGIN define in the codesnippets-unix.cbp, so I had to come up with something else. I chose "IS_PLUGIN_CODE".
I removed it because it disabled the use of pch. But if you need this put it back.
I don't need it if I can define my own "IS_PLUGIN_CODE" without screwing up Killerbot's makefile.
How can I define my own compiler flag in the .cbp without disabling the makefile?
To compile rev3934, I made this modification in codeblocks/src/plugins/contrib/codesnippets/Makefile.am file:
Index: Makefile.am
===================================================================
--- Makefile.am (révision 3934)
+++ Makefile.am (copie de travail)
@@ -4,7 +4,7 @@
$(WX_GTK2_CFLAGS) \
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/include/wxscintilla/include \
- -I$(top_srcdir)/src/include/wxFlatNotebook/include
+ -I$(top_srcdir)/src/include/wxFlatNotebook/include -DBUILDING_PLUGIN
libdir = $(pkgdatadir)/plugins
@@ -16,7 +16,6 @@
libcodesnippets_la_LIBADD = $(PLUGIN_WX_LIBS) ../../../sdk/libcodeblocks.la
libcodesnippets_la_SOURCES = codesnippets.cpp \
- codesnippetsapp.cpp \
codesnippetstreectrl.cpp \
codesnippetswindow.cpp \
edit.cpp \
@@ -36,7 +35,6 @@
version.cpp
noinst_HEADERS = codesnippets.h \
- codesnippetsapp.h \
codesnippetstreectrl.h \
codesnippetswindow.h \
defsext.h \