diff options
author | Luis Rascao <luis.rascao@miniclip.com> | 2015-01-30 15:37:21 +0000 |
---|---|---|
committer | Luis Rascao <luis.rascao@miniclip.com> | 2015-01-31 19:47:59 +0000 |
commit | bf2b3e246821e5697b6154ce0d2254600c91b34c (patch) | |
tree | 6e7b5262a7170bb2c2e4861aec867b556db899f5 /rebar.config.sample | |
parent | 48e041dd9ea0fd4e4ce4177fa819ed3b99cdf948 (diff) | |
download | rebar-bf2b3e246821e5697b6154ce0d2254600c91b34c.tar.gz |
Support custom protobuf directory
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
Diffstat (limited to 'rebar.config.sample')
-rw-r--r-- | rebar.config.sample | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rebar.config.sample b/rebar.config.sample index 107a02f..91d3dff 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -90,10 +90,15 @@ {erlydtl_opts, []}. %% == Proto compiler == -{proto_compiler, protobuffs}. +{proto_opts, [ + {compiler, protobuffs}, + {src_dirs, ["src"]} +]}. %% Available compilers for protocol buffer files (*.proto): %% protobuffs (default) %% gpb +%% Optional src_dirs which is a list of directories where +%% to look for .proto files, default is src %% Options for the gpb protocol buffer compiler, %% if selected by the proto_compiler option |