2004-06-11 Mike Kestner <mkestner@ximian.com>

* configure.in : deal with a csc-ism in source paths.
	* */Makefile.am : use the GENERATED_SOURCES var.
	* */glue/Makefile.am : add -no-undefined for win32 dll builds.

svn path=/trunk/gtk-sharp/; revision=29367
This commit is contained in:
Mike Kestner 2004-06-11 18:19:41 +00:00
parent 725f65261c
commit 112f066abf
22 changed files with 30 additions and 20 deletions

View file

@ -1,3 +1,9 @@
2004-06-11 Mike Kestner <mkestner@ximian.com>
* configure.in : deal with a csc-ism in source paths.
* */Makefile.am : use the GENERATED_SOURCES var.
* */glue/Makefile.am : add -no-undefined for win32 dll builds.
2004-06-10 Mike Kestner <mkestner@ximian.com>
* configure.in : break the monodoc dep, even though it was optional

View file

@ -58,7 +58,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -47,7 +47,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -1,6 +1,6 @@
lib_LTLIBRARIES = libatksharpglue.la
libatksharpglue_la_LDFLAGS = -module -avoid-version
libatksharpglue_la_LDFLAGS = -module -avoid-version -no-undefined
libatksharpglue_la_SOURCES = \
generated.c \

View file

@ -28,6 +28,7 @@ AC_SUBST(BUILD_EXEEXT)
# Set STDC_HEADERS
AC_HEADER_STDC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
# not 64 bit clean in cross-compile
@ -64,6 +65,7 @@ PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true
if test "x$has_mono" = "xtrue"; then
GACUTIL_FLAGS='/package $(PACKAGE) /gacdir $(libdir)'
GENERATED_SOURCES=generated/*.cs
if test `uname -s` = "Darwin"; then
AC_PATH_PROG(RUNTIME, mint, no)
AC_PATH_PROG(CSC, mcs, no)
@ -78,6 +80,7 @@ fi
else
AC_PATH_PROG(CSC, csc.exe, no)
GACUTIL_FLAGS=
GENERATED_SOURCES=generated\\\\*.cs
if test x$CSC = "xno"; then
AC_MSG_ERROR([You need to install either mono or .Net])
@ -104,6 +107,7 @@ AC_SUBST(GACUTIL)
AC_SUBST(GACUTIL_FLAGS)
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)
AC_SUBST(GENERATED_SOURCES)
PKG_CHECK_MODULES(GLIB, glib-2.0)
AC_SUBST(GLIB_CFLAGS)

View file

@ -55,7 +55,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -85,7 +85,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -10,7 +10,7 @@ libgdksharpglue_la_SOURCES = \
# Adding a new glue file?
# Please remember to update makefile.win32
libgdksharpglue_la_LDFLAGS = -module -avoid-version
libgdksharpglue_la_LDFLAGS = -module -avoid-version -no-undefined
libgdksharpglue_la_LIBADD = $(GTK_LIBS)

View file

@ -61,7 +61,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -6,7 +6,7 @@ else
TARGET =
endif
libgladesharpglue_la_LDFLAGS = -module -avoid-version
libgladesharpglue_la_LDFLAGS = -module -avoid-version -no-undefined
libgladesharpglue_la_SOURCES = \
gladexml.c

View file

@ -1,6 +1,6 @@
lib_LTLIBRARIES = libglibsharpglue.la
libglibsharpglue_la_LDFLAGS = -module -avoid-version
libglibsharpglue_la_LDFLAGS = -module -avoid-version -no-undefined
libglibsharpglue_la_SOURCES = \
error.c \

View file

@ -91,7 +91,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -6,7 +6,7 @@ else
TARGET =
endif
libgnomesharpglue_la_LDFLAGS = -module -avoid-version
libgnomesharpglue_la_LDFLAGS = -module -avoid-version -no-undefined
libgnomesharpglue_la_SOURCES = \
canvas.c \

View file

@ -55,7 +55,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -116,7 +116,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -22,7 +22,7 @@ libgtksharpglue_la_SOURCES = \
# Adding a new glue file?
# Please remember to update makefile.win32
libgtksharpglue_la_LDFLAGS = -module -avoid-version
libgtksharpglue_la_LDFLAGS = -module -avoid-version -no-undefined
libgtksharpglue_la_LIBADD = $(GTK_LIBS)

View file

@ -56,7 +56,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -53,7 +53,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -6,7 +6,7 @@ libpangosharpglue_la_SOURCES = \
# Adding a new glue file?
# Please remember to update makefile.win32
libpangosharpglue_la_LDFLAGS = -module -avoid-version
libpangosharpglue_la_LDFLAGS = -module -avoid-version -no-undefined
libpangosharpglue_la_LIBADD = $(PANGO_LIBS)

View file

@ -56,7 +56,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \

View file

@ -24,7 +24,7 @@ VTE_TARGETS=
VTE_ASSEMBLY=
endif
TARGETS = custom-cellrenderer.exe gtk-hello-world.exe button.exe calendar.exe subclass.exe menu.exe size.exe scribble.exe treeviewdemo.exe managedtreeviewdemo.exe testdnd.exe drawing-sample.exe custom-widget.exe $(GNOME_TARGETS) $(GLADE_TARGETS) $(VTE_TARGETS)
TARGETS = custom-cellrenderer.exe gtk-hello-world.exe button.exe calendar.exe subclass.exe menu.exe size.exe scribble.exe treeviewdemo.exe managedtreeviewdemo.exe testdnd.exe custom-widget.exe $(GNOME_TARGETS) $(GLADE_TARGETS) $(VTE_TARGETS)
assemblies=../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll ../gtk/gtk-sharp.dll $(GNOME_ASSEMBLY) $(GLADE_ASSEMBLY) $(VTE_ASSEMBLY)
references=$(addprefix /r:, $(assemblies))

View file

@ -54,7 +54,7 @@ gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
$(ASSEMBLY): $(build_sources) generated-stamp gtk-sharp.snk
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs
$(CSC) /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
install-data-local:
@if test -n '$(TARGET)'; then \