simplify build process and configuration

remove largely irrelevent rebar config and provide alternate build
config for hipe compiler. update README to reflect changes
This commit is contained in:
alisdair sullivan 2013-03-29 19:06:19 -07:00
parent 95d392d12e
commit 663b62c90c
4 changed files with 9 additions and 41 deletions

View file

@ -7,7 +7,7 @@ copyright 2010-2013 alisdair sullivan
jsx is released under the terms of the [MIT][MIT] license
jsx may be built using either [sinan][sinan] or [rebar][rebar]
jsx is built via [rebar][rebar]
@ -42,15 +42,15 @@ jsx may be built using either [sinan][sinan] or [rebar][rebar]
#### to build the library and run tests ####
```bash
$ sinan build
$ sinan -r tests eunit
```
or
```bash
$ rebar compile
$ rebar eunit
```
or, to build using hipe
```bash
$ rebar -C hipe.cfg compile
$ rebar -C hipe.cfg eunit
```
#### to convert a utf8 binary containing a json string into an erlang term ####
@ -706,7 +706,6 @@ jsx wouldn't be what it is without the contributions of [paul davis](https://git
[json]: http://json.org
[yajl]: http://lloyd.github.com/yajl
[MIT]: http://www.opensource.org/licenses/mit-license.html
[rebar]: https://github.com/basho/rebar
[sinan]: https://github.com/erlware/sinan
[rebar]: https://github.com/rebar/rebar
[meck]: https://github.com/eproxus/meck
[rfc4627]: http://tools.ietf.org/html/rfc4627

2
hipe.cfg Normal file
View file

@ -0,0 +1,2 @@
%% compile using hipe
{erl_opts, [native]}.

View file

@ -1,29 +0,0 @@
%% uncomment to get verbose output from test suite
%% {eunit_opts, [verbose]}.
{erl_opts, [
{i, "src"},
warn_unused_vars,
warn_export_all,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_bif_clash,
warn_unused_record,
warn_deprecated_function,
warn_obsolete_guard,
strict_validation,
warn_export_vars,
warn_exported_vars
]}.
{dialyzer_opts, [{warnings, [
unmatched_returns,
error_handling,
race_conditions,
behaviours
]}]}.
{xref_checks, [undefined_function_calls]}.
{cover_enabled, true}.

View file

@ -1,4 +0,0 @@
{project_name, jsx}.
{project_vsn, "1.2.1"}.
{compile_args, [{release, tests}], [{d, 'TEST'}]}.