User forums > Nightly builds

The 04 May 2007 build will NOT be out.

<< < (2/3) > >>

Pecan:

--- Quote from: mandrav on May 05, 2007, 12:02:02 am ---
--- Quote ---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".
--- End quote ---

I removed it because it disabled the use of pch. But if you need this put it back.

--- End quote ---

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?

pasgui:

--- Quote from: Pecan on May 05, 2007, 12:15:10 am ---
--- Quote from: mandrav on May 05, 2007, 12:02:02 am ---
--- Quote ---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".
--- End quote ---

I removed it because it disabled the use of pch. But if you need this put it back.

--- End quote ---

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?


--- End quote ---

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 \

killerbot:
fyi : rev 3934 still hasn't fixed the problem though

Pecan:

--- Quote from: killerbot on May 05, 2007, 10:14:37 am ---fyi : rev 3934 still hasn't fixed the problem though

--- End quote ---

Ok, I'll start ripping out the code.
If we can't represent the .cbp in the linux makefile, I don't want to fight it.

killerbot:
although I haven't looked at the actual problem, it should be possible to add extra preprocessor directives in a makefile , += to CFLAGS or those darn things

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version