Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
Removed 1.1 bits from build
Browse files Browse the repository at this point in the history
svn path=/trunk/xsp/; revision=143254
  • Loading branch information
grendello committed Oct 2, 2009
1 parent 6917ee8 commit 7d9085c
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 164 deletions.
12 changes: 3 additions & 9 deletions configure.in
Expand Up @@ -34,7 +34,6 @@ AC_ARG_WITH([runtime],
[RUNTIME=$withval])

AC_PATH_PROG(CSC, csc, no)
AC_PATH_PROG(MCS, mcs, no)
AC_PATH_PROG(GMCS, gmcs, no)

if test "x$RUNTIME" = "x" ; then
Expand All @@ -49,15 +48,11 @@ fi
AC_PATH_PROG(GACUTIL, gacutil, no)
AC_PATH_PROG(SN, sn, no)
CS="C#"
if test "x$CSC" = "xno" -a "x$MCS" = "xno" ; then
if test "x$CSC" = "xno" -a "x$GMCS" = "xno" ; then
dnl AC_MSG_ERROR([You need to install a C# compiler])
AC_MSG_ERROR([No $CS compiler found])
fi

if test "x$MCS" = "xno" ; then
MCS=$CSC
fi

if test "x$GMCS" != "xno" ; then
AC_MSG_CHECKING([whether gmcs is actually able to compile...])

Expand Down Expand Up @@ -98,7 +93,6 @@ export VERSION


AC_SUBST(WEBTRACING)
AC_SUBST(MCS)
AC_SUBST(GMCS)
AC_SUBST(RUNTIME)
AC_SUBST(GACUTIL)
Expand Down Expand Up @@ -159,5 +153,5 @@ AC_OUTPUT([

echo
echo "Runtime: $RUNTIME"
echo "$CS compiler: $MCS"
test x$GMCS = xno || echo "$CS 2.0 compiler: $GMCS"
echo "$CS compiler: $GMCS"

40 changes: 2 additions & 38 deletions scripts/Makefile.am
@@ -1,55 +1,29 @@
EXTRA_DIST = script.in

bin2_scripts_real = xsp2 mod-mono-server2 fastcgi-mono-server2
if NET_2_0
bin2_scripts = $(bin2_scripts_real)
tool2_scripts = asp-state2 dbsessmgr2
endif

bin_scripts = xsp mod-mono-server fastcgi-mono-server
tool_scripts = asp-state dbsessmgr

bin1_scripts = xsp1 mod-mono-server1 fastcgi-mono-server1
tool1_scripts = asp-state1 dbsessmgr1
bin_SCRIPTS = $(bin2_scripts) $(tool2_scripts) $(tool_scripts) $(bin_scripts)

bin_SCRIPTS = $(bin1_scripts) $(bin2_scripts) $(tool1_scripts) $(tool2_scripts) $(tool_scripts) $(bin_scripts)
CLEANFILES = $(bin2_scripts_real) $(tool2_scripts) $(bin_scripts) $(tool_scripts)

CLEANFILES = $(bin1_scripts) $(bin2_scripts_real) $(tool1_scripts) $(tool2_scripts) $(bin_scripts) $(tool_scripts)

plat_bindir = $(prefix)/lib/mono/1.0
plat_bindir2 = $(prefix)/lib/mono/2.0
plat_tooldir = $(prefix)/lib/xsp/1.0
plat_tooldir2 = $(prefix)/lib/xsp/2.0

REWRITE = sed \
-e 's,@''plat_bindir@,$(plat_bindir),g' \
-e 's,@''exe_file@,'`basename $@ 1`'.exe,g' \
-e 's,@''RUNTIME@,@RUNTIME@,g'

REWRITE2 = sed \
-e 's,@''plat_bindir@,$(plat_bindir2),g' \
-e 's,@''exe_file@,'`basename $@ 2`'2.exe,g' \
-e 's,@''RUNTIME@,@RUNTIME@,g'

REWRITE_TOOLS = sed \
-e 's,@''plat_bindir@,$(plat_tooldir),g' \
-e 's,@''exe_file@,'`basename $@ 1`'.exe,g' \
-e 's,@''RUNTIME@,@RUNTIME@,g'

REWRITE_TOOLS2 = echo dd $@ dd; sed \
-e 's,@''plat_bindir@,$(plat_tooldir2),g' \
-e 's,@''exe_file@,'`basename $@ 2`'2.exe,g' \
-e 's,@''RUNTIME@,@RUNTIME@,g'

$(bin1_scripts): $(srcdir)/script.in Makefile.am
e=`basename $@ 1`; $(REWRITE) $(srcdir)/script.in > $@.tmp
mv $@.tmp $@

$(tool1_scripts): $(srcdir)/script.in Makefile.am
$(REWRITE_TOOLS) $(srcdir)/script.in > $@.tmp
mv $@.tmp $@

if NET_2_0
$(bin2_scripts): $(srcdir)/script.in Makefile.am
$(REWRITE2) $(srcdir)/script.in > $@.tmp
mv $@.tmp $@
Expand All @@ -65,13 +39,3 @@ $(bin_scripts): $(srcdir)/script.in Makefile.am
$(tool_scripts): $(srcdir)/script.in Makefile.am
$(REWRITE_TOOLS2) $(srcdir)/script.in > $@.tmp
mv $@.tmp $@
else
$(bin_scripts): $(srcdir)/script.in Makefile.am
$(REWRITE) $(srcdir)/script.in > $@.tmp
mv $@.tmp $@

$(tool_scripts): $(srcdir)/script.in Makefile.am
$(REWRITE_TOOLS) $(srcdir)/script.in > $@.tmp
mv $@.tmp $@
endif

19 changes: 2 additions & 17 deletions src/Mono.WebServer.Apache/Makefile.am
Expand Up @@ -2,24 +2,17 @@ builddir=$(top_builddir)/src/Mono.WebServer.Apache

MCSFLAGS= -unsafe -debug+ -debug:full -nologo -nowarn:618 $(WEBTRACING)

GACUTIL1=$(GACUTIL) -package 1.0

if NET_2_0
MODMONOSERVER2_EXE = mod-mono-server2.exe
GACUTIL2=$(GACUTIL) -package 2.0
endif

noinst_SCRIPTS=mod-mono-server.exe $(MODMONOSERVER2_EXE)
noinst_SCRIPTS = $(MODMONOSERVER2_EXE)

CLEANFILES = *.exe *.mdb

if PLATFORM_WIN32
references= -lib:"$(prefix)/lib" -r:../Mono.WebServer/Mono.WebServer.dll \
-r:System.Web.dll -r:Mono.Posix.dll -r:Mono.Security.dll
references2= -lib:"$(prefix)/lib" -r:../Mono.WebServer/Mono.WebServer2.dll \
-r:System.Web.dll -r:Mono.Posix.dll -r:Mono.Security.dll
else
references= -r:System.Web.dll -r:../Mono.WebServer/Mono.WebServer.dll -r:Mono.Posix.dll -r:Mono.Security.dll
references2= -r:System.Web.dll -r:System.Configuration.dll -r:../Mono.WebServer/Mono.WebServer2.dll \
-r:Mono.Posix.dll -r:Mono.Security.dll
endif
Expand All @@ -30,22 +23,14 @@ build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs

EXTRA_DIST = $(sources) AssemblyInfo.cs.in Mono.WebServer.Apache.sources


mod-mono-server.exe: $(sources) AssemblyInfo.cs
$(MCS) $(MCSFLAGS) $(references) /out:$@ $(build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

mod-mono-server2.exe: $(sources) AssemblyInfo.cs
$(GMCS) -d:NET_2_0 $(MCSFLAGS) $(references2) /out:$@ $(build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

install-data-local:
$(GACUTIL1) $(GACUTIL_FLAGS) -i $(builddir)/mod-mono-server.exe
#if NET_2_0
$(GACUTIL2) $(GACUTIL_FLAGS) -i $(builddir)/mod-mono-server2.exe
#endif

uninstall-local:
-for i in mod-mono-server mod-mono-server2 ; do \
-for i in mod-mono-server2 ; do \
$(GACUTIL) $(GACUTIL_FLAGS) -u $$(basename $$i .exe) ; \
done
18 changes: 2 additions & 16 deletions src/Mono.WebServer.FastCgi/Makefile.am
Expand Up @@ -2,19 +2,14 @@ builddir=$(top_builddir)/src/Mono.WebServer.FastCgi

MCSFLAGS= -debug+ -debug:full -nologo -nowarn:618 $(WEBTRACING) -unsafe+

GACUTIL1=$(GACUTIL) -package 1.0

if NET_2_0
XSP2_EXE = fastcgi-mono-server2.exe
GACUTIL2=$(GACUTIL) -package 2.0
endif

noinst_SCRIPTS = fastcgi-mono-server.exe $(XSP2_EXE)
noinst_SCRIPTS = $(XSP2_EXE)

CLEANFILES = *.exe *.mdb

#
references = -r:System.Web.dll -r:../Mono.WebServer/Mono.WebServer.dll -r:Mono.Security.dll -r:Mono.Posix.dll
references2 = -r:System.Web.dll -r:System.Configuration.dll -r:../Mono.WebServer/Mono.WebServer2.dll -r:Mono.Security.dll -r:Mono.Posix.dll

sources = $(shell cat $(srcdir)/Mono.WebServer.FastCgi.sources)
Expand All @@ -25,24 +20,15 @@ build_resources = $(addprefix $(srcdir)/, $(resources))

EXTRA_DIST = $(sources) AssemblyInfo.cs.in $(resources) Mono.WebServer.FastCgi.sources

fastcgi-mono-server.exe: $(build_sources) $(build_resources)
$(MCS) $(MCSFLAGS) $(references) /out:$@ \
$(build_resources:%=-resource:%) $(build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

fastcgi-mono-server2.exe: $(build_sources) $(build_resources)
$(GMCS) -d:NET_2_0 $(MCSFLAGS) $(references2) /out:$@ \
$(build_resources:%=-resource:%) $(build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

install-data-local:
$(GACUTIL1) $(GACUTIL_FLAGS) -i $(builddir)/fastcgi-mono-server.exe

#if NET_2_0
$(GACUTIL2) $(GACUTIL_FLAGS) -i $(builddir)/fastcgi-mono-server2.exe
#endif

uninstall-local:
-for i in fastcgi-mono-server fastcgi-mono-server2 ; do \
-for i in fastcgi-mono-server2 ; do \
$(GACUTIL) $(GACUTIL_FLAGS) -u $$(basename $$i .exe) ; \
done
17 changes: 2 additions & 15 deletions src/Mono.WebServer.XSP/Makefile.am
Expand Up @@ -2,19 +2,14 @@ builddir=$(top_builddir)/src/Mono.WebServer.XSP

MCSFLAGS= -debug+ -debug:full -nologo -nowarn:618 $(WEBTRACING)

GACUTIL1=$(GACUTIL) -package 1.0

if NET_2_0
XSP2_EXE = xsp2.exe
GACUTIL2=$(GACUTIL) -package 2.0
endif

noinst_SCRIPTS=xsp.exe xsp.exe $(XSP2_EXE)
noinst_SCRIPTS = $(XSP2_EXE)

CLEANFILES = *.exe *.mdb

#
references = -r:System.Web.dll -r:../Mono.WebServer/Mono.WebServer.dll -r:Mono.Security.dll
references2 = -r:System.Web.dll -r:System.Configuration.dll -r:../Mono.WebServer/Mono.WebServer2.dll -r:Mono.Security.dll

sources = main.cs SecurityConfiguration.cs
Expand All @@ -23,22 +18,14 @@ build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs

EXTRA_DIST = $(sources) AssemblyInfo.cs.in

xsp.exe: $(build_sources)
$(MCS) $(MCSFLAGS) $(references) /out:$@ $(build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

xsp2.exe: $(build_sources)
$(GMCS) -d:NET_2_0 $(MCSFLAGS) $(references2) /out:$@ $(build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

install-data-local:
$(GACUTIL1) $(GACUTIL_FLAGS) -i $(builddir)/xsp.exe

#if NET_2_0
$(GACUTIL2) $(GACUTIL_FLAGS) -i $(builddir)/xsp2.exe
#endif

uninstall-local:
-for i in xsp xsp2 ; do \
-for i in xsp2 ; do \
$(GACUTIL) $(GACUTIL_FLAGS) -u $$(basename $$i .exe) ; \
done
32 changes: 7 additions & 25 deletions src/Mono.WebServer/Makefile.am
Expand Up @@ -3,27 +3,20 @@ builddir=$(top_builddir)/src/Mono.WebServer
MCSFLAGS= -debug+ -debug:full -nologo -unsafe -nowarn:618 $(WEBTRACING) -doc:$(top_builddir)/docs/Mono.WebServer.xml
SYSTEMCORE_DEP=@SYSTEMCORE_DEP@

monowebserverdir = $(prefix)/lib/xsp/1.0
monowebserver2dir = $(prefix)/lib/xsp/2.0

pkgconfig_DATA = xsp.pc xsp-2.pc
noinst_SCRIPTS= Mono.WebServer.dll $(monowebserver2_install)
pkgconfig_DATA = xsp-2.pc
noinst_SCRIPTS= $(monowebserver2_install)

GACUTIL1=$(GACUTIL) -package 1.0
if NET_2_0
monowebserver2_install = Mono.WebServer2.dll
monowebserver2_references = -r:System.Web.dll -r:System.Configuration.dll -r:Mono.Security.dll

GACUTIL2=$(GACUTIL) -package 2.0
endif

CLEANFILES = Mono.WebServer.dll* Mono.WebServer2.dll*
EXTRA_DIST = $(monowebserver_sources) $(monowebserver2_sources) AssemblyInfo.cs.in AssemblyInfo2.cs.in
EXTRA_DIST = $(monowebserver_sources) AssemblyInfo.cs.in AssemblyInfo2.cs.in

#
monowebserver_references= -r:System.Web.dll -r:Mono.Security.dll

monowebserver_sources = \
monowebserver2_sources = \
ApplicationServer.cs \
BaseApplicationHost.cs \
BaseRequestBroker.cs \
Expand All @@ -41,33 +34,22 @@ monowebserver_sources = \
Paths.cs \
VPathToHost.cs \
Tracing.cs \
SearchPattern.cs

monowebserver2_sources = $(monowebserver_sources) \
SearchPattern.cs \
ReaderWriterLockSlim.cs \
LockRecursionException.cs \
LockRecursionPolicy.cs

monowebserver_build_sources = $(addprefix $(srcdir)/, $(monowebserver_sources)) $(addprefix $(top_builddir)/src/Mono.WebServer/, AssemblyInfo.cs)
monowebserver2_build_sources = $(addprefix $(srcdir)/, $(monowebserver2_sources)) $(addprefix $(top_builddir)/src/Mono.WebServer/, AssemblyInfo2.cs)

Mono.WebServer.dll: $(monowebserver_build_sources)
$(MCS) $(MCSFLAGS) $(monowebserver_references) /target:library /out:$@ $(monowebserver_build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

Mono.WebServer2.dll: $(monowebserver2_build_sources)
$(GMCS) -d:NET_2_0 $(MCSFLAGS) $(monowebserver2_references) /target:library /out:$@ $(monowebserver2_build_sources)
$(SN) -q -R $(builddir)/$@ $(srcdir)/../mono.snk

install-data-local:
$(GACUTIL1) $(GACUTIL_FLAGS) -i $(builddir)/Mono.WebServer.dll

#if NET_2_0
$(GACUTIL2) $(GACUTIL_FLAGS) -i $(builddir)/Mono.WebServer2.dll
#endif


uninstall-local:
-for i in Mono.WebServer Mono.WebServer2 ; do \
-for i in Mono.WebServer2 ; do \
$(GACUTIL) $(GACUTIL_FLAGS) -u $$(basename $$i .exe) ; \
done

2 changes: 1 addition & 1 deletion test/1.1/asp.net/Makefile.am
Expand Up @@ -35,7 +35,7 @@ EXTRA_DIST = $(testfiles) \
CLEANFILES = $(samplesbin_SCRIPTS)

%.dll: %.cs
$(MCS) -r:System.Web.dll -t:library -out:$@ $^
$(GMCS) -r:System.Web.dll -t:library -out:$@ $^

typedesc.dll: $(typedesc_build)

Expand Down
6 changes: 3 additions & 3 deletions test/1.1/customcontrol/Makefile.am
Expand Up @@ -4,7 +4,7 @@ testfiles = \
tabcontrol2.aspx \
tabcontrol.aspx \
index.aspx

tabcontrol_src = tabcontrol.cs
tabcontrol2_src = tabcontrol2.cs

Expand All @@ -19,11 +19,11 @@ samplesbin_SCRIPTS = tabcontrol.dll tabcontrol2.dll
EXTRA_DIST = $(testfiles) \
$(tabcontrol_src) \
$(tabcontrol2_src)

CLEANFILES = $(samplesbin_SCRIPTS)

%.dll: %.cs
$(MCS) -r:System.Web.dll -t:library -out:$@ $^
$(GMCS) -r:System.Web.dll -t:library -out:$@ $^

tabcontrol.dll: $(tabcontrol_build)

Expand Down
2 changes: 1 addition & 1 deletion test/1.1/webcontrols/Makefile.am
Expand Up @@ -48,7 +48,7 @@ dbpage_test_setup_build = dbpage_test_setup.cs
EXTRA_DIST = $(sqlite_DATA) $(samples_DATA) $(dbpage_test_setup_build)

dbpage_test_setup.exe: $(dbpage_test_setup_build)
$(MCS) -debug:full -r:Mono.Data.SqliteClient.dll -out:$@ $^
$(GMCS) -debug:full -r:Mono.Data.SqliteClient.dll -out:$@ $^

dbpage1.sqlite: dbpage_test_setup.exe
$(RUNTIME) dbpage_test_setup.exe
Expand Down
6 changes: 3 additions & 3 deletions test/1.1/webservice/Makefile.am
Expand Up @@ -29,14 +29,14 @@ EXTRA_DIST = $(testfiles) \
$(serviceclient_src)

%.dll: %.cs
$(MCS) -r:System.Web.dll -t:library -out:$@ $^
$(GMCS) -r:System.Web.dll -t:library -out:$@ $^

extensions.dll: $(extensions_build)
$(MCS) -r:System.Web.dll -r:System.Web.Services.dll -target:library \
$(GMCS) -r:System.Web.dll -r:System.Web.Services.dll -target:library \
-out:$@ $^

ServiceClient.exe: extensions.dll $(serviceclient_build)
$(MCS) -r:System.Web.dll -r:System.Web.Services.dll -r:extensions.dll \
$(GMCS) -r:System.Web.dll -r:System.Web.Services.dll -r:extensions.dll \
-out:$@ \
$(srcdir)/ServiceClient.cs $(srcdir)/Reference.cs

0 comments on commit 7d9085c

Please sign in to comment.