Files

40 lines
1.1 KiB
Erlang

%%% -*- mode: erlang; erlang-indent-level: 4; indent-tabs-mode: nil -*-
{erl_opts, [debug_info]}.
%% When we want to use dependencies that are already in the gajumaru
%% code base, we use the `{gm, App}` notation. The build plugin will
%% consult the rebar.lock file of the gajumaru root and fetch the
%% right version of `App`.
%%
{deps, [
{gmserialization, {gm, gmserialization}}
]}.
{plugins,
[
{gmplugin_rebar3,
{git, "https://git.qpq.swiss/QPQ-AG/gmplugin_rebar3.git",
{branch,"master"}}}
]}.
%% These provider hooks inform the gmplugin_rebar3 provider.
%% The pre-erlc_compile hook is needed if our code includes .hrl files
%% from the gajumaru core (which it does, for demo purposes).
%% The post-compile hook produces the packaged plugin.
%%
{provider_hooks, [
{pre, [{erlc_compile, gm_setup}]},
{post, [{compile, gm_plugin}]}
]}.
%% This gajumaru root is used unless we run `make init`, which updates the
%% submodules and creates a top-level symlink to lib/gajumaru.
%%
{gajumaru_root, {git, "https://git.qpq.swiss/QPQ-AG/gajumaru", "master"}}.
{shell, [
%% {config, "config/sys.config"},
{apps, [gmplugin_hello]}
]}.