-
Notifications
You must be signed in to change notification settings - Fork 4
/
rebar.config
executable file
·113 lines (98 loc) · 3.48 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
%%-*- mode: erlang -*-
%% -----------------------------------------------------------------------------
%%
%% rebar.config: rebar3 configuration file.
%%
%% Copyright (c) 2012-* K2 Informatics GmbH. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may obtain
%% a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing,
%% software distributed under the License is distributed on an
%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
%% KIND, either express or implied. See the License for the
%% specific language governing permissions and limitations
%% under the License.
%%
%% -----------------------------------------------------------------------------
{cover_enabled, true}.
{cover_export_enabled, true}.
{cover_opts, [verbose]}.
{coveralls_coverdata, [
"_build/test/cover/ct.coverdata",
"_build/test/cover/eunit.coverdata"
]}.
{coveralls_service_name, "travis-ci"}.
{ct_opts, [
{cover},
{verbose}
]}.
{deps, [
{erlscrypt, {git, "https://github.com/K2InformaticsGmbH/erlscrypt.git", {tag, "1.2.2"}}},
{goldrush, {git, "https://github.com/K2InformaticsGmbH/goldrush.git", {tag, "0.1.9"}}},
{jsx, {git, "https://github.com/K2InformaticsGmbH/jsx.git", {tag, "v2.8.2"}}},
{lager, {git, "https://github.com/K2InformaticsGmbH/lager.git", {tag, "3.6.4"}}},
{ranch, {git, "https://github.com/K2InformaticsGmbH/ranch.git", {tag, "1.5.0"}}},
{sext, {git, "https://github.com/K2InformaticsGmbH/sext.git", {tag, "1.4.1"}}},
{sqlparse, {git, "https://github.com/K2InformaticsGmbH/sqlparse.git", {tag, "4.6.2"}}}
]}.
{erl_first_files, ["src/imem_rec_pretty_pt.erl"]}.
{erl_opts, [
{parse_transform, lager_transform},
{platform_define, "win32", 'WIN32'}
]}.
{eunit_compile_opts, [{d, 'USE_THOUSAND_SEP'}]}.
{eunit_opts, [
{skip_deps, true},
verbose
]}.
{profiles, [
{test, [
{plugins, [
{coveralls, {git, "https://github.com/markusn/coveralls-erl", {branch, master}}}
]},
{dist_node, [{setcookie, 'testcookie'}, {sname, 'testnode'}]}
]}
]}.
{recursive_cmds, [clean, eunit]}.
{xref_checks, [
deprecated_functions,
deprecated_function_calls,
exports_not_used,
locals_not_used,
undefined_functions,
undefined_function_calls
]}.
{plugins,
[{pc, "1.9.1",
{git, "https://github.com/K2InformaticsGmbH/port_compiler.git",
{ref, "72a4f04021f044d51d13529e38a0e5830baf0eb0"}}}
]}.
{port_specs,
[{"win32", "priv/imem_win32.dll", ["c_src/imem_win32.cpp"]},
{"win32", "priv/win32_tests", ["c_src/win32_tests.cpp"]}
]}.
{port_env,
[{"win32", "DRV_CFLAGS", "$ERL_CFLAGS"},
{"win32", "EXE_CFLAGS", "$ERL_CFLAGS"},
{"win32", "DRV_LINK_CXX_TEMPLATE", "$DRV_LINK_TEMPLATE"},
{"win32", "EXE_LINK_CXX_TEMPLATE", "$EXE_LINK_TEMPLATE"},
{"win32", "CXXFLAGS",
"$CXXFLAGS /Zi /nologo /W3 /WX- /O2 /Ob2 /Ot /GL /D _CRT_SECURE_NO_WARNINGS "
"/Gm- /EHsc /GS /fp:fast /Gd "},
{"win32", "LDFLAGS",
"$LDFLAGS /NOLOGO Ws2_32.lib /MANIFEST:NO /OPT:REF /OPT:ICF /LTCG /TLBID:1 "
"/DYNAMICBASE /NXCOMPAT /MACHINE:X64"}
]}.
{post_hooks,
[{"win32", clean, "del /s /F /Q priv\\* c_src\\*.o c_src\\*.d >nul 2>&1"},
{"win32", compile, "del /s /F /Q c_src\\*.o c_src\\*.d priv\\*.exp priv\\*.lib >nul 2>&1"}
]}.
{provider_hooks,
[{pre, [{compile, {pc, compile}}, {clean, {pc, clean}}]}
]}.