From cfe5f82bd52e241d9d3dc37d023bb0d568875495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 16 May 2015 19:38:07 +0300 Subject: Preliminary port_specs support Fixes some projects that were building but couldn't be loaded because the .so file name was incorrect. --- core/deps.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core') diff --git a/core/deps.mk b/core/deps.mk index b126813..ffd9f5c 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -184,6 +184,14 @@ define dep_autopatch_rebar.erl Write(io_lib:format("COMPILE_FIRST +=~s\n", [Names])) 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} -> -- cgit v1.2.3