@@ -0,0 +1 @@ | |||||
*.dll |
@@ -1,5 +0,0 @@ | |||||
all: | |||||
mcs AssemblyInfo.cs Cucul.cs -out:libCucul.dll -target:library -unsafe | |||||
mcs AssemblyInfo.cs Caca.cs -out:libCaca.dll -target:library /r:./libCucul.dll /lib:./ -unsafe | |||||
mcs test.cs -out:test.exe /r:./libCucul.dll /r:./libCaca.dll /lib:./ -unsafe |
@@ -0,0 +1,25 @@ | |||||
# $Id: $ | |||||
if USE_DOTNET | |||||
noinst_DATA = libCucul.dll libCaca.dll test.exe | |||||
endif | |||||
EXTRA_DIST = AssemblyInfo.cs \ | |||||
Cucul.cs \ | |||||
Caca.cs \ | |||||
libCucul.dll.config \ | |||||
libCaca.dll.config \ | |||||
test.cs | |||||
libCucul.dll: AssemblyInfo.cs Cucul.cs | |||||
gmcs $^ -out:$@ -target:library -unsafe | |||||
libCaca.dll: AssemblyInfo.cs Caca.cs | |||||
gmcs $^ -out:$@ -target:library -r:./libCucul.dll -lib:./ -unsafe | |||||
test.exe: test.cs libCaca.dll libCucul.dll | |||||
gmcs test.cs -out:$@ -r:./libCucul.dll -r:./libCaca.dll -lib:./ -unsafe | |||||
clean-local: | |||||
rm -f *.exe *.dll | |||||
@@ -1,6 +1,6 @@ | |||||
# $Id$ | # $Id$ | ||||
SUBDIRS = kernel cucul caca src test tools cxx ruby doc | |||||
SUBDIRS = kernel cucul caca src test tools cxx DotNet ruby doc | |||||
DIST_SUBDIRS = $(SUBDIRS) msvc | DIST_SUBDIRS = $(SUBDIRS) msvc | ||||
EXTRA_DIST = NOTES COPYING.GPL COPYING.LGPL bootstrap build-dos build-kernel build-win32 caca-config.in common.h libcaca.spec | EXTRA_DIST = NOTES COPYING.GPL COPYING.LGPL bootstrap build-dos build-kernel build-win32 caca-config.in common.h libcaca.spec | ||||
@@ -62,6 +62,8 @@ AC_ARG_ENABLE(vga, | |||||
dnl language bindings | dnl language bindings | ||||
AC_ARG_ENABLE(cxx, | AC_ARG_ENABLE(cxx, | ||||
[ --enable-cxx C++ bindings (default enabled)]) | [ --enable-cxx C++ bindings (default enabled)]) | ||||
AC_ARG_ENABLE(dotnet, | |||||
[ --enable-dotnet .NET bindings (autodetected)]) | |||||
AC_ARG_ENABLE(ruby, | AC_ARG_ENABLE(ruby, | ||||
[ --enable-ruby Ruby bindings (autodetected)]) | [ --enable-ruby Ruby bindings (autodetected)]) | ||||
@@ -319,6 +321,16 @@ if test "${enable_cxx}" != "no"; then | |||||
fi | fi | ||||
AM_CONDITIONAL(USE_CXX, test "${ac_cv_my_have_cxx}" = "yes") | AM_CONDITIONAL(USE_CXX, test "${ac_cv_my_have_cxx}" = "yes") | ||||
# Build the DotNet bindings? | |||||
ac_cv_my_have_dotnet="no" | |||||
if test "${enable_dotnet}" != "no"; then | |||||
AC_PATH_PROG(GMCS, gmcs, no) | |||||
if test "${GMCS}" != "no"; then | |||||
ac_cv_my_have_dotnet="yes" | |||||
fi | |||||
fi | |||||
AM_CONDITIONAL(USE_DOTNET, test "${ac_cv_my_have_dotnet}" = "yes") | |||||
# Build the Ruby bindings? | # Build the Ruby bindings? | ||||
ac_cv_my_have_ruby="no" | ac_cv_my_have_ruby="no" | ||||
if test "${enable_ruby}" != "no"; then | if test "${enable_ruby}" != "no"; then | ||||
@@ -396,6 +408,7 @@ AC_CONFIG_FILES([ | |||||
test/Makefile | test/Makefile | ||||
tools/Makefile | tools/Makefile | ||||
cxx/Makefile | cxx/Makefile | ||||
DotNet/Makefile | |||||
ruby/Makefile | ruby/Makefile | ||||
doc/Makefile | doc/Makefile | ||||
msvc/Makefile | msvc/Makefile | ||||