This project provides a Mix compiler that simplifies usage of Erlang SNMP MIB compiler.
The package can be installed by adding mix_mib to your list of dependencies in mix.exs
and by adding :mibs to compilers list:
def project do
[
# ...
compilers: [:mibs | Mix.compilers],
deps: [
# ...
{:mix_mib, "~> 1.0.0", runtime: false},
]
]
endThe default compiler's behaviour can be modified by putting the following options in the project options:
mib_paths(default:["mibs", "src"]) - source directories for.miband.funcfiles;mib_output(default:"priv/mibs/") - directory to put compiled.binfile;mib_options(default:[il: ['otp_mibs/priv/mibs/']]) - additional options for the compiler, butoutdirandioptions will be overriden.
MIT