summaryrefslogtreecommitdiff
path: root/src/rebar_state.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_state.erl')
-rw-r--r--src/rebar_state.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl
index a59968e..3350ffe 100644
--- a/src/rebar_state.erl
+++ b/src/rebar_state.erl
@@ -20,6 +20,7 @@
create_logic_providers/2,
project_apps/1, project_apps/2,
+ deps_to_build/1, deps_to_build/2,
all_deps/1, all_deps/2,
deps_names/1,
@@ -40,6 +41,7 @@
command_parsed_args = [],
project_apps = [] :: [rebar_app_into:t()],
+ deps_to_build = [] :: [rebar_app_into:t()],
all_deps = [] :: [rebar_app_into:t()],
providers = []}).
@@ -188,6 +190,14 @@ project_apps(State=#state_t{}, NewApps) when is_list(NewApps) ->
project_apps(State=#state_t{project_apps=Apps}, App) ->
State#state_t{project_apps=lists:keystore(rebar_app_info:name(App), 2, Apps, App)}.
+deps_to_build(#state_t{deps_to_build=Apps}) ->
+ Apps.
+
+deps_to_build(State=#state_t{}, NewApps) when is_list(NewApps) ->
+ State#state_t{deps_to_build=NewApps};
+deps_to_build(State=#state_t{deps_to_build=Apps}, App) ->
+ State#state_t{deps_to_build=lists:keystore(rebar_app_info:name(App), 2, Apps, App)}.
+
all_deps(#state_t{all_deps=Apps}) ->
Apps.