-
Notifications
You must be signed in to change notification settings - Fork 13
/
rebar.config
36 lines (27 loc) · 1.63 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{eunit_opts, [verbose]}.
{deps, []}.
{profiles, [{docs, [
{deps, [edown]},
{edoc_opts, [{doclet, edown_doclet},
{packages, false},
{subpackages, true},
{top_level_readme,
{"./README.md", "http://gitlab.com/barrel-db/erlang-rocksdb"}}]}]},
{test, [
{erl_first_files, ["test/rocksdb_test_util.erl"]}
]}
]}.
{pre_hooks, [{clean, "rm -f priv/*.so"},
{clean, "rm -rf _build/cmake"},
{"(linux|x86_64-darwin|x86_64-apple-darwin|solaris)", compile, "./do_cmake.sh $ERLANG_ROCKSDB_OPTS"},
{"aarch64-apple-darwin.*", compile,
"env CMAKE_APPLE_SILICON_PROCESSOR=arm64 ./do_cmake.sh -DCMAKE_OSX_ARCHITECTURES=arm64"},
{"(freebsd|netbsd|openbsd)", compile, "./do_cmake.sh $ERLANG_ROCKSDB_OPTS"},
{"win32", compile, "mkdir _build\\cmake & cd _build\\cmake & cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DWITH_BUNDLE_LZ4=ON -DWITH_BUNDLE_SNAPPY=ON ..\\..\\c_src"}
]}.
{post_hooks, [{"(linux|x86_64-darwin|x86_64-apple-darwin|solaris)", compile, "./do_rocksdb.sh $ERLANG_ROCKSDB_BUILDOPTS"},
{"aarch64-apple-darwin.*", compile,
"env CMAKE_APPLE_SILICON_PROCESSOR=arm64 ./do_rocksdb.sh $ERLANG_ROCKSDB_BUILDOPTS"},
{"(freebsd|netbsd|openbsd)", compile, "./do_rocksdb.sh $ERLANG_ROCKSDB_BUILDOPTS"},
{"win32", compile, "cmake --build _build\\cmake --config Release --parallel"}
]}.