This repository has been archived by the owner. It is now read-only.
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Move port executable linking to rebar post compile hook
- Loading branch information
Hunter Morris
committed
Apr 3, 2011
1 parent
273298f
commit 0d1bd8195f2b02c87a1a4acb2a675a26e85c52e2
Showing
2 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*- | ||
{so_name, "bcrypt_nif.so"}. | ||
{port_sources, ["c_src/blowfish.c", "c_src/bcrypt.c", "c_src/bcrypt_nif.c"]}. | ||
{so_specs, | ||
[{"priv/bcrypt_nif.so", | ||
["c_src/blowfish.c", "c_src/bcrypt.c", "c_src/bcrypt_nif.c"]}, | ||
{"priv/bcrypt_port.so", | ||
["c_src/bcrypt_port.c"]}]}. | ||
|
||
{erl_opts, [debug_info]}. | ||
|
||
{pre_hooks, [{clean, "rm -f priv/bcrypt c_src/bcrypt_port.o"}, | ||
{compile, "make compile_port"}]}. | ||
{pre_hooks, [{clean, "rm -f priv/bcrypt c_src/bcrypt_port.o"}]}. | ||
{post_hooks, | ||
[{compile, | ||
"gcc -g -O2 -Wall c_src/bcrypt_port.o c_src/bcrypt.o" | ||
" c_src/blowfish.o -lerl_interface -lei -lpthread" | ||
" -o priv/bcrypt"}]}. |