aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-16 19:38:07 +0300
committerLoïc Hoguin <[email protected]>2015-05-16 22:17:08 +0300
commitcfe5f82bd52e241d9d3dc37d023bb0d568875495 (patch)
tree23b8247e9b8f56b39adca05de115f27b9cf2cc95 /core/deps.mk
parentfb58bbd34dbf8ad405457dc4f00b0e8b5c1090ff (diff)
downloaderlang.mk-cfe5f82bd52e241d9d3dc37d023bb0d568875495.tar.gz
erlang.mk-cfe5f82bd52e241d9d3dc37d023bb0d568875495.tar.bz2
erlang.mk-cfe5f82bd52e241d9d3dc37d023bb0d568875495.zip
Preliminary port_specs support
Fixes some projects that were building but couldn't be loaded because the .so file name was incorrect.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index b126813..ffd9f5c 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -185,6 +185,14 @@ define dep_autopatch_rebar.erl
end
end(),
fun() ->
+ case lists:keyfind(port_specs, 1, Conf) of
+ {_, [{Output, _}]} ->
+ filelib:ensure_dir("$(DEPS_DIR)/$(1)/" ++ Output),
+ Write("C_SRC_OUTPUT = " ++ Output ++ "\n");
+ _ -> ok
+ end
+ end(),
+ fun() ->
case lists:keyfind(port_env, 1, Conf) of
{_, Vars} ->
lists:foldl(fun