Quellcode durchsuchen

Look for csc and gmcs2 prior to gmcs.

tags/v0.99.beta17
Sam Hocevar sam vor 15 Jahren
Ursprung
Commit
52758fae24
2 geänderte Dateien mit 61 neuen und 53 gelöschten Zeilen
  1. +51
    -51
      caca-sharp/Makefile.am
  2. +10
    -2
      configure.ac

+ 51
- 51
caca-sharp/Makefile.am Datei anzeigen

@@ -1,51 +1,51 @@
# $Id: $
# We need to install the .config file ourselves because of a gacutil
# bug (https://bugzilla.novell.com/show_bug.cgi?id=363341)
monodir = $(libdir)/mono/caca-sharp-0.0
if USE_CSHARP
noinst_DATA = caca-sharp.dll caca-sharp.dll.config test.exe
endif
caca_sources = \
$(srcdir)/AssemblyInfo.cs \
$(srcdir)/Caca.cs \
$(srcdir)/Attr.cs \
$(srcdir)/Canvas.cs \
$(srcdir)/Display.cs \
$(srcdir)/Dither.cs \
$(srcdir)/Event.cs \
$(srcdir)/Font.cs
test_sources = \
$(srcdir)/test.cs
EXTRA_DIST = $(caca_sources) $(test_sources) \
caca-sharp.snk caca-sharp.pc.in caca-sharp.dll.config.in \
caca-sharp.csproj test-csharp.csproj
caca-sharp.dll: $(caca_sources)
$(GMCS) -debug -unsafe $(caca_sources) -out:$@ -target:library \
-keyfile:$(srcdir)/caca-sharp.snk -r:System.Drawing.dll
test.exe: $(test_sources) caca-sharp.dll
$(GMCS) -debug $(test_sources) -out:$@ -lib:./ \
-r:System.Drawing.dll -r:./caca-sharp.dll
if USE_CSHARP
install-data-local:
MONO_SHARED_DIR=$$HOME $(GACUTIL) -i caca-sharp.dll \
-package caca-sharp-0.0 -f -root $(DESTDIR)$(libdir)
$(mkinstalldirs) $(DESTDIR)$(monodir)
sed -e 's@target="[^"]*/@target="@' < caca-sharp.dll.config > $(DESTDIR)$(monodir)/caca-sharp.dll.config
uninstall-local:
MONO_SHARED_DIR=$$HOME $(GACUTIL) -u caca-sharp.dll, Version=0.0 \
-package caca-sharp-0.0 || true
rm -f $(DESTDIR)$(monodir)/caca-sharp.dll.config
rmdir $(DESTDIR)$(monodir) 2>/dev/null || true
endif
clean-local:
rm -f *.exe *.dll *.mdb
# $Id: $
# We need to install the .config file ourselves because of a gacutil
# bug (https://bugzilla.novell.com/show_bug.cgi?id=363341)
monodir = $(libdir)/mono/caca-sharp-0.0
if USE_CSHARP
noinst_DATA = caca-sharp.dll caca-sharp.dll.config test.exe
endif
caca_sources = \
$(srcdir)/AssemblyInfo.cs \
$(srcdir)/Caca.cs \
$(srcdir)/Attr.cs \
$(srcdir)/Canvas.cs \
$(srcdir)/Display.cs \
$(srcdir)/Dither.cs \
$(srcdir)/Event.cs \
$(srcdir)/Font.cs
test_sources = \
$(srcdir)/test.cs
EXTRA_DIST = $(caca_sources) $(test_sources) \
caca-sharp.snk caca-sharp.pc.in caca-sharp.dll.config.in \
caca-sharp.csproj test-csharp.csproj
caca-sharp.dll: $(caca_sources)
$(CSC) -debug -unsafe $(caca_sources) -out:$@ -target:library \
-keyfile:$(srcdir)/caca-sharp.snk -r:System.Drawing.dll
test.exe: $(test_sources) caca-sharp.dll
$(CSC) -debug $(test_sources) -out:$@ -lib:./ \
-r:System.Drawing.dll -r:./caca-sharp.dll
if USE_CSHARP
install-data-local:
MONO_SHARED_DIR=$$HOME $(GACUTIL) -i caca-sharp.dll \
-package caca-sharp-0.0 -f -root $(DESTDIR)$(libdir)
$(mkinstalldirs) $(DESTDIR)$(monodir)
sed -e 's@target="[^"]*/@target="@' < caca-sharp.dll.config > $(DESTDIR)$(monodir)/caca-sharp.dll.config
uninstall-local:
MONO_SHARED_DIR=$$HOME $(GACUTIL) -u caca-sharp.dll, Version=0.0 \
-package caca-sharp-0.0 || true
rm -f $(DESTDIR)$(monodir)/caca-sharp.dll.config
rmdir $(DESTDIR)$(monodir) 2>/dev/null || true
endif
clean-local:
rm -f *.exe *.dll *.mdb

+ 10
- 2
configure.ac Datei anzeigen

@@ -391,9 +391,17 @@ AM_CONDITIONAL(USE_CXX, test "${ac_cv_my_have_cxx}" = "yes")
# Build the .NET bindings?
ac_cv_my_have_csharp="no"
if test "${enable_csharp}" != "no"; then
AC_PATH_PROG(GMCS, gmcs, no)
AC_PATH_PROG(CSC, csc, no)
if test "$CSC" = "no"; then
AC_PATH_PROG(GMCS2, gmcs2, no)
CSC="$GMCS2"
fi
if test "$CSC" = "no"; then
AC_PATH_PROG(GMCS, gmcs, no)
CSC="$GMCS"
fi
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "${GMCS}" != "no" -a "${GACUTIL}" != "no"; then
if test "${CSC}" != "no" -a "${GACUTIL}" != "no"; then
ac_cv_my_have_csharp="yes"
CACA_BINDINGS="${CACA_BINDINGS} C#"
fi


Laden…
Abbrechen
Speichern