Actually build targets
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 26 Oct 2007 16:20:57 +0000 (16:20 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 26 Oct 2007 16:20:57 +0000 (16:20 +0000)
bindings/cil/configure.ac
bindings/cil/src/Makefile.am
bindings/cil/tests/Makefile.am

index d3547cc..0ab6760 100644 (file)
@@ -21,12 +21,17 @@ dnl ***********************************************************************
 
 AC_COPYRIGHT([Copyright (C) 2004-2007 Remi Denis-Courmont])
 AC_INIT(libvlc-cil, 0.9.0, vlc-devel_no_bulk_mail@videolan.org)
-AC_PREREQ(2.59c)
+AC_PREREQ(2.50)
 
 AC_CONFIG_SRCDIR(configure.ac)
 AC_CONFIG_AUX_DIR(admin)
 AC_CONFIG_MACRO_DIR(m4)
 
+AC_ARG_VAR([CSC], [C sharp compiler command])
+AC_ARG_VAR([CSFLAGS], [C sharp compiler flags])
+AC_PATH_PROG([CSC], [gmcs csc], [false])
+
+
 AM_INIT_AUTOMAKE
 
 AC_CONFIG_FILES([Makefile m4/Makefile src/Makefile tests/Makefile])
index e69de29..619dbe8 100644 (file)
@@ -0,0 +1,14 @@
+EXTRA_DIST = $(SOURCES_dll)
+MOSTLYCLEANFILES = $(pkglib_SCRIPTS)
+
+pkglib_SCRIPTS = VideoLAN.LibVLC.dll
+
+SOURCES_dll = \
+       ustring.cs \
+       exception.cs \
+       marshal.cs \
+       libvlc.cs
+
+VideoLAN.LibVLC.dll: $(SOURCES_dll)
+       $(CSC) -target:library -out:$@ $(CSFLAGS) $^
+
index e69de29..ab08d7b 100644 (file)
@@ -0,0 +1,11 @@
+EXTRA_DIST = $(SOURCES_testvlc)
+MOSTLYCLEANFILES = $(check_SCRIPTS)
+
+check_SCRIPTS = testvlc.exe
+
+SOURCES_testvlc = testvlc.cs
+LDADD_testvlc = -lib:../src -r:VideoLAN.LibVLC.dll
+
+testvlc.exe: $(SOURCES_testvlc)
+       $(CSC) -target:exe -out:$@ $(CSFLAGS) $^ $(LDADD_testvlc)
+