Commit graph

60 commits

Author SHA1 Message Date
Meredith L. Patterson
1bd778f52e the Great Merge continues 2019-10-08 17:13:31 +02:00
Meredith L. Patterson
8a545c4dcf dotnet and php bindings have bitrotted, but packrat is faster now 2019-10-08 17:11:18 +02:00
Meredith L. Patterson
72146e1c77
Merge pull request #190 from moreati/python3
Add support for Python 3.x bindings
2019-10-08 01:05:28 +02:00
Meredith L. Patterson
321600b68f build with -std=c99 2019-10-08 00:53:18 +02:00
Alex Willmer
c82390941d Allow Python interpreter to be specified during build
This allows the library to be built and tested with a non-default
version of CPython, e.g.

scons bindings=python python=python3.6
scons bindings=python python=python3.6 testpython
2019-05-10 21:59:03 +01:00
Alex Willmer
0f3cadcc3e Enable absolute imports, true division, & print()
These have no effect in Python 3.x, they are the default. Enabling them
in Python 2.x, enabling them in Python 2.x allows single source
compatiblity.
2019-05-10 21:13:32 +01:00
Meredith L. Patterson
996fa914e0 update std from gnu99 to gnu11 2016-11-01 21:09:40 +01:00
nicolas
88420038f9 Replace all double quotes with single quotes
To homogenize the file and allow keys/strings to be searched easily.
2016-05-22 13:33:46 +02:00
nicolas
69d3e70211 Port scons build files for Windows users
We disable:
- the tests (which require glib) although they can be
  reactivated with the `--tests` command line flag
- shared library (lack of export symbol declarations
  means that although it can be built, no symbol is
  exported and therefore it can't be used)

The `install` target installs the library and headers
under the `build` folder, because it's a traditional practice
to move libraries to a central location on Windows, unless
you are using cygwin. In which case pass `prefix` to the
command line.

We adapt tools\windows\build_examples.bat to take the library
that is built using scons or using tools\windows\build.bat
2016-05-22 13:29:12 +02:00
nicolas
f31e3ba4bd Move sections around to allow porting to windows
We will need to use the environment's CC variable to make decisions
that apply to windows compiling and linking. Therefore we move some
existing sections below the set up of env["CC"] and env["CXX"]
2016-05-22 13:18:19 +02:00
Meredith L. Patterson
4fed9327a4 now both clang and gcc have coverage without any dumb hacks 2015-10-04 02:53:54 +02:00
Meredith L. Patterson
2b637946fa nope, guess we need -lgcov after all 2015-10-04 01:49:39 +02:00
Meredith L. Patterson
ff65571474 this is a dirty hack, but it solves the Program builder not honoring LDFLAGS 2015-10-04 01:43:44 +02:00
Meredith L. Patterson
9dbd2debda fix --coverage build option; building with it now creates .gcda files that gcov can use 2015-10-04 00:03:24 +02:00
Steven Dee
73d42eedac Build with -std=c99 2014-12-07 02:10:36 -05:00
Steven Dee
70fa455c03 Fix compilation when PKG_CONFIG_PATH is not in environ 2014-12-07 00:16:34 -05:00
stewart
e057e8cb1b Scons now doesn't throw away /home/stewart/.nix-profile/lib/pkgconfig:/nix/var/nix/profiles/default/lib/pkgconfig:/run/current-system/sw/lib/pkgconfig, so NixOS can build it 2014-10-29 10:32:21 +08:00
Meredith L. Patterson
bab376cab7 fix non-resizable hashtable 2014-04-20 21:00:50 +02:00
Meredith L. Patterson
1d12f9ffac regex_compile should return -1 if not a regular grammar; give backends names 2014-04-20 17:23:25 +02:00
Meredith L. Patterson
d947c6aede Merge branch 'master' of http://github.com/UpstandingHackers/hammer 2014-04-20 00:46:37 +02:00
TQ Hirsch
cc4ded8914 Ported to OpenBSD. 2014-04-13 22:30:48 +00:00
TQ Hirsch
2f479a010d Made mono tool only get loaded when the dotnet bindings are getting built 2014-04-12 21:44:10 -07:00
Meredith L. Patterson
9c8dcd7763 Merge branch 'master' of github.com:abiggerhammer/hammer 2014-03-17 03:25:51 +01:00
Meredith L. Patterson
64213e733b Append '64' to libpath on non-Darwin platforms. 2014-03-17 03:25:28 +01:00
TQ Hirsch
270dc3f1b8 Got test suite building, most of the c++ bindings are implemented. Let's see if they work 2014-01-16 19:49:28 +01:00
Dan Hirsch
df196aa346 Added sconscript 2014-01-11 04:26:47 +01:00
Dan Hirsch
d78cde3830 Added csharp builder to scons 2014-01-04 23:13:35 +01:00
Meredith L. Patterson
f9eebda673 fix segfault with optimized code; initialize TSRM stuff 2013-12-22 18:10:47 +01:00
Meredith L. Patterson
4c58a0bcb2 php tests run on clean build 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
42e0707fb8 slightly more elegant way to pass around which tests to run 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
75def00525 scons works with BINDINGS=none 2013-12-22 18:09:23 +01:00
Meredith L. Patterson
df7a7b467a Merge pull request #82 from thequux/perl-bindings
Perl bindings (minus travis-ci)
2013-12-05 01:06:15 -08:00
Dan Hirsch
9d0cb859d8 Moved building perl binding lib and running test suite to EU::MM Makefile 2013-12-05 09:45:26 +01:00
Dan Hirsch
2f3bc9c4b0 Perl tests are now part of the build system 2013-12-05 08:41:28 +01:00
Joe Rozner
52bdc9d3dc Fix LC_ID_DYLIB for OS X
Wrapping the SHLINKFLAGS in an array rather than as a single string
caused the link flags to be passed to clang double quoted. This cuased
clang to interpret the flags as a string rather than as a flag which
caused the -install_name flag to never be passed to the linker.
2013-12-03 13:28:56 -08:00
Dan Hirsch
1d11527924 Got perl bindings started 2013-12-03 21:29:02 +01:00
Meredith L. Patterson
79f498cdab python bindings install target works. libhammer.so must be on LD_LIBRARY_PATH. 2013-11-26 19:54:09 -08:00
Meredith L. Patterson
f21954eecd everything's working for new-build except Clean() 2013-11-26 15:29:28 -08:00
Meredith L. Patterson
bba60f5db9 Merge pull request #60 from thequux/allow-in-place-build
Allow in-place build via scons --in-place
2013-11-23 10:35:36 -08:00
Dan Hirsch
c6b4beefcb Make install_name darwin-only 2013-11-23 12:28:34 -06:00
Dan Hirsch
2cead893fc Allow in-place build via scons --in-place 2013-11-22 19:44:30 -06:00
Joe Rozner
d0906e69e6 Fix for linux
This actually is only for OS X. On linux ldconfig must be run after
installing in order to update the library cache. Need to look into how
to get scons to do this for the user.
2013-11-21 12:50:03 -08:00
Joe Rozner
1d80058c85 Properly name the lib
Set the proper path for the shared library so that anything linking
against it will be able to find the library.
2013-11-21 12:37:36 -08:00
Joe Rozner
76034ae4d7 Install internal headers for Go bindings
Go, and likely other language bindings will, need access to create
new combinators. This functionality is currently located
src/parsers/parser_internal.h. Install this header to the system with
dependent headers until a better solution can be found.
2013-11-21 12:02:18 -08:00
Joe Rozner
f220524b5a Generate pkg-config for Hammer
Create a pkg-config file and install it to $prefix/lib/pkgconfig
2013-11-20 13:04:07 -08:00
Meredith L. Patterson
91221ac256 tweak SConstruct so that 'scan-build scons' works 2013-11-19 22:09:38 -06:00
Joe Rozner
b111190596 Clean up ENV
Don't pass the entire environment to SCons. Only pass the PATH
2013-11-08 17:36:59 -08:00
Joe Rozner
fb015b4a98 Fix SCons bugs
Don't clober the Environment (and thus the ENV['PATH'] by redefining it
and don't link against lr by default. Only add it if uname is not Darwin
2013-11-08 16:30:08 -08:00
TQ Hirsch
274cbe38a9 Merge pull request #41 from thequux/install-target
Added install target
2013-10-31 11:42:12 -07:00
Dan Hirsch
64b5e307d2 Added install target 2013-10-29 17:35:37 -04:00