Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (31 sloc) 1.4 kb
%% Port compilation environment variables.
{port_sources, ["c_src/*.c", "inttest/c_src/*.c"]}.
{so_specs, [
%% {"priv/bin/erlxsl_drv.so", ["c_src/erlxsl_drv.o"]},
{"priv/bin/erlxsl.so", ["c_src/erlxsl.o"]},
{"priv/test/bin/test_engine.so", ["inttest/c_src/test_engine.o"]}
]}.
{port_envs, [
%% TODO: make -DDEBUG configurable as part of the build!?
{"DRV_CFLAGS", "$DRV_CFLAGS -Wall -Werror -I c_src -I $ERL_INCLUDES -DDEBUG"},
%%{"DRV_LDFLAGS", "-Wl,-rpath priv/lib $DRV_LDFLAGS"},
%% Define flags for enabling/disable 64 bit build
{"-32$", "CFLAGS", "-m32"},
{"-64$", "LDFLAGS", "-m64"},
%% Solaris specific flags
{"solaris.*", "DRV_LDFLAGS", "$DRV_LDFLAGS -lrt"},
%% OS X Flags (generic)
{"darwin.*", "LDFLAGS", "-fPIC -bundle -flat_namespace -undefined suppress"},
%% OS X flags for 32-bit
{"darwin.*-32$", "LDFLAGS", "-arch i386 $LDFLAGS"},
{"darwin.*-64$", "LDFLAGS", "-arch x86_64 $LDFLAGS"}
]}.
%% Create the test harness that we'll use later on in our ct tests
{pre_hooks, [{compile, "make -C inttest compile"}]}.
%% {port_cleanup_script, ""}.
%% Custom name of the port driver .so file. Defaults to `<Application>_drv.so'.
%% {so_name, "erlxsl_driver.so"}.
{erl_opts, [debug_info]}.
{cover_enabled, true}.
{cover_print_enabled, true}.
{clean_files, ["logs", "priv/test/bin/test_harness"]}. %%, "inttest/deps/cspec"]}.
Jump to Line
Something went wrong with that request. Please try again.