Bladeren bron

* Install CLI bindings to $(libdir)/cucul-sharp and $(libdir)/caca-sharp.

tags/v0.99.beta14
Sam Hocevar sam 17 jaren geleden
bovenliggende
commit
2681508288
2 gewijzigde bestanden met toevoegingen van 20 en 12 verwijderingen
  1. +2
    -1
      configure.ac
  2. +18
    -11
      csharp/Makefile.am

+ 2
- 1
configure.ac Bestand weergeven

@@ -334,7 +334,8 @@ AM_CONDITIONAL(USE_CXX, test "${ac_cv_my_have_cxx}" = "yes")
ac_cv_my_have_csharp="no"
if test "${enable_csharp}" != "no"; then
AC_PATH_PROG(GMCS, gmcs, no)
if test "${GMCS}" != "no"; then
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "${GMCS}" != "no" -a "${GACUTIL}" != "no"; then
ac_cv_my_have_csharp="yes"
CACA_BINDINGS="${CACA_BINDINGS} C#"
fi


+ 18
- 11
csharp/Makefile.am Bestand weergeven

@@ -1,24 +1,31 @@
# $Id: $

cuculdir = $(libdir)/cucul-sharp
cacadir = $(libdir)/caca-sharp

cucul_sources = AssemblyInfo.cs Cucul.cs
caca_sources = AssemblyInfo.cs Caca.cs

if USE_CSHARP
noinst_DATA = cucul-sharp.dll caca-sharp.dll test.exe
cucul_DATA = cucul-sharp.dll cucul-sharp.dll.config
caca_DATA = caca-sharp.dll caca-sharp.dll.config
noinst_DATA = test.exe
endif

EXTRA_DIST = AssemblyInfo.cs \
Cucul.cs \
Caca.cs \
cucul-sharp.dll.config \
caca-sharp.dll.config \
EXTRA_DIST = $(cucul_sources) cucul-sharp.dll.config \
$(caca_sources) caca-sharp.dll.config \
test.cs

cucul-sharp.dll: AssemblyInfo.cs Cucul.cs
gmcs $^ -out:$@ -target:library -unsafe
cucul-sharp.dll: $(cucul_sources)
gmcs $(cucul_sources) -out:$@ -target:library -unsafe

caca-sharp.dll: AssemblyInfo.cs Caca.cs
gmcs $^ -out:$@ -target:library -r:./cucul-sharp.dll -lib:./ -unsafe
caca-sharp.dll: $(caca_sources) cucul-sharp.dll
gmcs $(caca_sources) -out:$@ -target:library \
-r:./cucul-sharp.dll -lib:./ -unsafe

test.exe: test.cs caca-sharp.dll cucul-sharp.dll
gmcs test.cs -out:$@ -r:./cucul-sharp.dll -r:./caca-sharp.dll -lib:./ -unsafe
gmcs test.cs -out:$@ \
-r:./cucul-sharp.dll -r:./caca-sharp.dll -lib:./ -unsafe

clean-local:
rm -f *.exe *.dll


Laden…
Annuleren
Opslaan