mirror of
https://github.com/correl/rebar.git
synced 2024-11-15 03:00:18 +00:00
bf2b3e2468
proto_opts config option contains the compiler directive that defines which proto compiler to use, also contains a src_dirs entry that defines a list of locations for the .proto files to be processed. Add integration test that compiles .proto files from src and from proto directory specified in separate rebar config files
23 lines
539 B
Erlang
23 lines
539 B
Erlang
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
%% ex: ts=4 sw=4 ft=erlang et
|
|
|
|
{erl_opts,
|
|
[
|
|
{platform_define, "R13|R14", 'NO_CALLBACK_ATTRIBUTE'}
|
|
]}.
|
|
|
|
{deps,
|
|
[
|
|
%% The dependency below to gpb is needed for "rebar compile" to
|
|
%% work, thus for the inttest to work, but the gpb that is actually
|
|
%% used in inttest is brought in from the inttest/proto_gpb/mock
|
|
%% subdirectory.
|
|
{gpb, ".*"}
|
|
]}.
|
|
|
|
{proto_opts, [
|
|
{compiler, gpb},
|
|
{src_dirs, ["proto"]}
|
|
]}.
|
|
|
|
{gpb_opts, [{module_name_suffix, "_gpb"}]}.
|