Просмотр исходного кода

Preliminary port_specs support

Fixes some projects that were building but couldn't be loaded
because the .so file name was incorrect.
Loïc Hoguin 10 лет назад
Родитель
Сommit
cfe5f82bd5
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      core/deps.mk

+ 8 - 0
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