Packages

Multiplayer game server framework

Current section

Files

Jump to
overworld rebar.config
Raw

rebar.config

{erl_opts, [
debug_info,
warnings_as_errors,
{i, "./_build/default/plugins/gpb/include"}
]}.
{deps, [
cowboy,
gproc,
gdminus,
bbmustache,
%prometheus,
jsone
%{enet, {git, "https://github.com/flambard/enet.git", {branch, "master"}}}
]
}.
{relx, [{release, {overworld, "1.0.0"},
[overworld,
sasl,
mnesia]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}
%{overlay, [{copy, "apps/overworld/priv/*.pem", "certificate/"}]}
]}.
{plugins, [
{rebar3_gpb_plugin, "2.13.2"},
rebar3_hex,
erlfmt
]}.
{erlfmt, [
{files, "{src,include,test}/*.{erl,esh,hrl}"},
{print_width, 76}
]}.
{profiles, [{prod, [{relx, [{dev_mode, false},
{include_erts, true}]}]
}]
}.
{provider_hooks, [
{pre, [
{compile, {protobuf, compile}},
{clean, {protobuf, clean}}
]}
]}.
{gpb_opts, [
{i, "priv/proto"}, % path/to/proto_dir
{module_name_suffix, "_pb"}, % Naming convention, unless you have a good reason just go with it.
{o_erl, "src"}, % Where the generated source is placed
{o_hrl, "include"}, % Where the generated include files are placed
{strings_as_binaries, false},
{maps, true},
{msgs_as_maps, true},
{mapfields_as_maps, true},
type_specs
]}.