summaryrefslogtreecommitdiff
path: root/rebar.config.sample
diff options
context:
space:
mode:
authorTomas Abrahamsson <tomas.abrahamsson@gmail.com>2013-12-17 12:59:15 +0100
committerTomas Abrahamsson <tomas.abrahamsson@gmail.com>2014-10-29 23:45:35 +0100
commit0caf047fc3d978189e12dc398d06472eb3d236ad (patch)
tree97102fe5648a7225cbd7ab1fb50614639894c226 /rebar.config.sample
parentb92dce156933eda5b79f0ed6c59beb1a07b33876 (diff)
downloadrebar-0caf047fc3d978189e12dc398d06472eb3d236ad.tar.gz
Introduce pluggable protocol buffer compilers
Make it possible for plug in alternative protocol buffer compilers. The compilers are picked up based on if they export all of the functions key/0, proto_compile/3, proto_clean/3 and proto_info/2. The set of compiler modules to choose from, is fetched from the rebar application environment, from the app_dir modules. A new config option, {proto_compiler,Compiler}, specifies which of the available protocol buffer compilers to use. The 'protobuffs' compiler is now one such compiler (the only one), and it is also the default, for backwards compatibility.
Diffstat (limited to 'rebar.config.sample')
-rw-r--r--rebar.config.sample6
1 files changed, 6 insertions, 0 deletions
diff --git a/rebar.config.sample b/rebar.config.sample
index d154ac1..d2a7869 100644
--- a/rebar.config.sample
+++ b/rebar.config.sample
@@ -89,6 +89,12 @@
%% Options for the ErlyDTL compiler
{erlydtl_opts, []}.
+%% == Proto compiler ==
+{proto_compiler, protobuffs}.
+%% Available compilers for protocol buffer files (*.proto):
+%% protobuffs (default)
+
+
%% == EUnit ==
%% Options for eunit:test()