* configure.in: Add an --enable-debug flag, to build .mdb files

for all of the assemblies

	* Makefile.include:
	* gconf/GConf/Makefile.am:
	* gconf/GConf.PropertyEditors/Makefile.am:
	* glib/Makefile.am:
	* gtkdotnet/Makefile.am (CLEANFILES): add $(ASSEMBLY).mdb
	$(ASSEMBLY): build with $(CSFLAGS). Always delete $(ASSEMBLY).mdb
	before building $(ASSEMBLY), so that if you first build with
	debugging enabled, then update, then rebuild without debugging
	enabled, you don't end up with an out-of-date .mdb file.

svn path=/trunk/gtk-sharp/; revision=42791
This commit is contained in:
Dan Winship 2005-04-11 14:56:29 +00:00
parent c377ed5e39
commit abbec2b649
7 changed files with 36 additions and 11 deletions

View file

@ -1,3 +1,18 @@
2005-04-08 Dan Winship <danw@novell.com>
* configure.in: Add an --enable-debug flag, to build .mdb files
for all of the assemblies
* Makefile.include:
* gconf/GConf/Makefile.am:
* gconf/GConf.PropertyEditors/Makefile.am:
* glib/Makefile.am:
* gtkdotnet/Makefile.am (CLEANFILES): add $(ASSEMBLY).mdb
$(ASSEMBLY): build with $(CSFLAGS). Always delete $(ASSEMBLY).mdb
before building $(ASSEMBLY), so that if you first build with
debugging enabled, then update, then rebuild without debugging
enabled, you don't end up with an out-of-date .mdb file.
2005-04-08 Alp Toker <alp@atoker.com>
* atk/makefile.win32: gapi-cdecl-insert was called in the wrong place

View file

@ -10,7 +10,7 @@ noinst_DATA = $(TARGET)
TARGET_API = $(pkg:=-api.xml)
gapidir = $(datadir)/gapi-2.0
gapi_DATA = $(TARGET_API)
CLEANFILES = $(ASSEMBLY) generated-stamp generated/*.cs $(API) glue/generated.c $(SNK)
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API) glue/generated.c $(SNK)
DISTCLEANFILES = $(ASSEMBLY).config
EXTRA_DIST = $(RAW_API) $(SYMBOLS) $(ASSEMBLY).config.in $(METADATA) $(customs) $(sources) $(add_dist)
@ -43,7 +43,8 @@ build_sources = $(addprefix $(srcdir)/, $(sources)) $(top_builddir)/AssemblyInfo
build_references = $(addprefix /r:, $(references))
$(ASSEMBLY): generated-stamp $(SNK) $(build_sources) $(references)
$(CSC) -nowarn:0612 -unsafe -out:$(ASSEMBLY) -target:library $(build_references) $(build_sources) $(GENERATED_SOURCES)
@rm -f $(ASSEMBLY).mdb
$(CSC) $(CSFLAGS) -nowarn:0612 -nowarn:0618 -unsafe -out:$(ASSEMBLY) -target:library $(build_references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(pkg)'; then \

View file

@ -39,6 +39,11 @@ AC_CHECK_SIZEOF(void *, 4)
CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
AC_ARG_ENABLE(debug, [ --enable-debug Build debugger (.mdb) files for dlls],
CSFLAGS='-g'
)
AC_SUBST(CSFLAGS)
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
@ -300,7 +305,7 @@ echo "---"
echo "Configuration summary"
echo ""
echo " * Installation prefix = $prefix"
echo " * $CS compiler: $CSC"
echo " * $CS compiler: $CSC $CSFLAGS"
echo ""
echo " Optional assemblies included in the build:"
echo ""

View file

@ -7,7 +7,7 @@ endif
ASSEMBLY = $(ASSEMBLY_NAME).dll
ASSEMBLY_NAME = gconf-sharp-peditors
noinst_DATA = $(TARGET)
CLEANFILES = $(ASSEMBLY) gtk-sharp.snk
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk
EXTRA_DIST = \
PropertyEditorColorPicker.cs \
@ -34,7 +34,8 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) gtk-sharp.snk
$(CSC) /out:$(ASSEMBLY) /target:library $(references) $(build_sources)
@rm -f $(ASSEMBLY).mdb
$(CSC) $(CSFLAGS) /out:$(ASSEMBLY) /target:library $(references) $(build_sources)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -6,7 +6,7 @@ else
TARGET =
endif
noinst_DATA = $(TARGET)
CLEANFILES = $(ASSEMBLY) gtk-sharp.snk
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk
DISTCLEANFILES = gconf-sharp-2.0.pc $(ASSEMBLY).config
ASSEMBLY = $(ASSEMBLY_NAME).dll
@ -38,7 +38,8 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) gtk-sharp.snk
$(CSC) /out:$(ASSEMBLY) /target:library $(references) $(build_sources)
@rm -f $(ASSEMBLY).mdb
$(CSC) $(CSFLAGS) /out:$(ASSEMBLY) /target:library $(references) $(build_sources)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -4,7 +4,7 @@ TARGET = $(ASSEMBLY)
ASSEMBLY = $(ASSEMBLY_NAME).dll
ASSEMBLY_NAME = glib-sharp
noinst_DATA = $(ASSEMBLY) $(ASSEMBLY).config
CLEANFILES = $(ASSEMBLY) gtk-sharp.snk
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk
DISTCLEANFILES = $(ASSEMBLY).config
references =
@ -65,7 +65,8 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) gtk-sharp.snk
$(CSC) /nowarn:0612 /out:$(ASSEMBLY) /target:library $(references) $(build_sources)
@rm -f $(ASSEMBLY).mdb
$(CSC) $(CSFLAGS) /nowarn:0612 /out:$(ASSEMBLY) /target:library $(references) $(build_sources)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -9,7 +9,7 @@ endif
ASSEMBLY = $(ASSEMBLY_NAME).dll
ASSEMBLY_NAME = gtk-dotnet
noinst_DATA = $(TARGET)
CLEANFILES = $(ASSEMBLY) gtk-sharp.snk
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk
DISTCLEANFILES = $(ASSEMBLY).config
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../gdk/gdk-sharp.dll
@ -30,7 +30,8 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) $(references) gtk-sharp.snk
$(CSC) /nowarn:0612 /out:$(ASSEMBLY) /target:library $(build_references) $(build_sources)
@rm -f $(ASSEMBLY).mdb
$(CSC) $(CSFLAGS) /nowarn:0612 /out:$(ASSEMBLY) /target:library $(build_references) $(build_sources)
install-data-local:
@if test -n '$(TARGET)'; then \