Skip to content

Instantly share code, notes, and snippets.

@arcusfelis
Created June 15, 2012 10:36
Show Gist options
  • Select an option

  • Save arcusfelis/2935785 to your computer and use it in GitHub Desktop.

Select an option

Save arcusfelis/2935785 to your computer and use it in GitHub Desktop.
rebar.config
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
%% == Port compiler ==
{port_env, [
{"CFLAGS", "$ICU_CFLAGS $CFLAGS $ICU_INC_PATH"},
{"CXXFLAGS", "$ICU_CXXFLAGS $CXXFLAGS $ICU_INC_PATH"},
{"LDFLAGS", "$ICU_LDFLAGS $LDFLAGS"}
]}.
%{port_specs, [
% {"priv/i18n_nif$I18N_BUILD_ID.so", ["c_src/*.c", "c_src/*.cpp"]}
% ]}.
{so_specs, [
{"priv/i18n_nif$I18N_BUILD_ID.so", ["c_src/*.o"]}
]}.
%% == Dependencies ==
{deps, [
{triq, ".*", {git, "git://github.com/krestenkrab/triq.git", "master"}},
{rebar_i18n_plugin, ".*",
{git, "git://github.com/freeakk/rebar_i18n_plugin.git", "master"}},
{edown, ".*", {git, "git://github.com/esl/edown.git", "HEAD"}}
]}.
%% == Options ==
{clean_files, ["priv/i18n_*.so"]}.
{cover_enabled, true}.
{edoc_opts, [{doclet, edown_doclet},
{src_path, ["src/"]},
{subpackages, true}]}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
%% == Plugins ==
%% This allows compile the plugin at the first compile.
{plugin_dir, "deps/rebar_i18n_plugin/src"}.
{plugins, [rebar_i18n_plugin]}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment