From 42d1dd4fe9191f958dddb2f93cc9701e3891296d Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com> Date: Sun, 5 Jan 2014 02:07:14 +0100 Subject: [PATCH] update README files; decrufting --- README.md | 8 ++++++-- src/bindings/dotnet/README.md | 1 + src/bindings/dotnet/SConscript | 4 ---- 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 src/bindings/dotnet/README.md diff --git a/README.md b/README.md index 39834b32..1e1dee9a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Features * Perl * [Go](https://github.com/prevoty/hammer) * PHP - * .NET (not yet implemented) + * .NET Installing ========== @@ -39,8 +39,10 @@ Installing * python2.7-dev (for Python bindings) * a JDK (for Java bindings) * a working [phpenv](https://github.com/CHH/phpenv) configuration (for PHP bindings) +* mono-devel and mono-mcs (>= 3.0.6) (for .NET bindings) +* nunit (for testing .NET bindings) -To build, type `scons`. To run the built-in test suite, type `scons test`. For a debug build, add `--variant=debug` +To build, type `scons`. To run the built-in test suite, type `scons test`. For a debug build, add `--variant=debug`. To build bindings, pass a "bindings" argument to scons, e.g. `scons bindings=python`. `scons bindings=python test` will build Python bindings and run tests for both C and Python. `--variant=debug` is valid here too. You can build more than one set of bindings at a time; just separate them with commas, e.g. `scons bindings=python,perl`. @@ -69,6 +71,8 @@ The Python bindings only work with Python 2.7. SCons doesn't work with Python 3, The requirement for SWIG >= 2.0.8 for Perl bindings is due to a [known bug](http://sourceforge.net/p/swig/patches/324/) in SWIG. [ppa:dns/irc](https://launchpad.net/~dns/+archive/irc) has backports of SWIG 2.0.8 for Ubuntu versions 10.04-12.10; you can also [build SWIG from source](http://www.swig.org/download.html). +The .NET bindings are for Mono 3.0.6 and greater. If you're on a Debian-based distro that only provides Mono 2 (e.g., Ubuntu 12.04), there are backports for [3.0.x](http://www.meebey.net/posts/mono_3.0_preview_debian_ubuntu_packages/), and a [3.2.x PPA](https://launchpad.net/~directhex/+archive/monoxide) maintained by the Mono team. + Community ========= Please join us at `#hammer` on `irc.upstandinghackers.com` if you have any questions or just want to talk about parsing. diff --git a/src/bindings/dotnet/README.md b/src/bindings/dotnet/README.md new file mode 100644 index 00000000..c206056f --- /dev/null +++ b/src/bindings/dotnet/README.md @@ -0,0 +1 @@ +The minimum version of Mono required to use these bindings is 3.0.x. The 2.x series is not currently supported, though we'll happily accept a PR for one. \ No newline at end of file diff --git a/src/bindings/dotnet/SConscript b/src/bindings/dotnet/SConscript index 1b95393c..94f874ee 100644 --- a/src/bindings/dotnet/SConscript +++ b/src/bindings/dotnet/SConscript @@ -32,14 +32,10 @@ libhammer_dotnet = dotnetenv.SharedLibrary(['hammer_dotnet'], hammer_wrap) hammer_dll = AlwaysBuild(dotnetenv.Command(['hammer.dll'], Glob('ext/*.cs'), '$CSC -t:library -unsafe -out:$TARGET %s/*.cs $SOURCE' %(thisdir,))) Depends(hammer_dll, hammer_wrap) -#hammer_dll = dotnetenv.CLILibrary('hammer.dll', hammer.cs) Default(libhammer_dotnet, hammer_dll) dotnettestenv = dotnetenv.Clone() -#dotnettestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0])) -#dotnettests = ['t/hammer.t'] - def makeCIL(env, cmd): libs = cmd.split(' ') for lib in libs: -- GitLab