Skip to content
This repository
Newer
Older
100644 107 lines (72 sloc) 2.853 kb
cad24b28 » dizzyd
2010-06-03 Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
1 %% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
2 %% ex: ts=4 sw=4 ft=erlang et
3 %% This is a sample rebar.conf file that shows examples of some of rebar's
4 %% options.
5
6 %% == Core ==
7
8 %% Additional library directories to add to the code path
9 {lib_dirs, []}.
10
11 %% == Erlang Compiler ==
12
13 %% Erlang files to compile before the rest. Rebar automatically compiles
14 %% parse_transforms and custom behaviours before anything other than the files
15 %% in this list.
16 {erl_first_files, ["mymib1", "mymib2"]}.
17
18 %% Erlang compiler options
19 {erl_opts, [{i, "myinclude"}, {src_dirs, ["src1", "src2"]}]}.
20
21 %% MIB Options?
22 {mib_opts, []}.
23
24 %% SNMP mibs to compile first?
25 {mib_first_files, []}.
26
27 %% == Port Compiler ==
28
29 %% List and wildcard list of files to be compiled. Default is `"c_src/*.c"'
30 {port_sources, []}.
31
32 %% Port compilation environment variables. See rebar_port_compiler.erl for
33 %% more info. Default is `[]'
34 {port_envs, []}.
35
36 %% Tuple which specifies a pre-compilation script to run, and a filename that
37 %% exists as a result of the script running.
38 {port_pre_script, {"script.sh", "skipfile"}}.
39
40 %% String that specifies a script to run during cleanup. Use this to remove
41 %% files/directories created by port_pre_script.
42 {port_cleanup_script, "cleanup.sh"}.
43
44 %% Custom name of the port driver .so file. Defaults to `<Application>_drv.so'.
45 {so_name, "driver.so"}.
46
47 %% == LFE Compiler ==
48
49 %% LFE files to compile before the rest
50 {lfe_first_files, []}.
51
52 %% Options for the LFE compiler
53 {lfe_opts, []}.
54
55 %% == ErlyDTL Compiler ==
56
57 %% Options for the ErlyDTL compiler
58 {erlydtl_opts, []}.
59
60 %% == EUnit ==
61
62 %% Options for eunit:test()
63 {eunit_opts, []}.
64
65 %% Additional compile options for eunit. erl_opts from above is also used
66 {eunit_compile_opts, []}.
67
68 %% Whether to enable coverage reporting. Default is `false'
69 {cover_enabled, false}.
70
71 %% == Dialyzer ==
72
73 %% Options for running the dialyzer, right now only `plt' is supported
74 {dialyzer_opts, []}.
75
76 %% == Cleanup ==
77
78 %% Which files to cleanup
79 {clean_files, ["file", "file2"]}.
80
81 %% == Reltool ==
82
83 %% Target directory for the release
84 {target, "target"}.
85
86 %% == OTP Applications ==
87
88 %% Binaries to link into the erlang path?
89 {app_bin, []}.
90
91 %% == Dependancies ==
92
93 %% Where to put any downloaded depandencies. Default is `deps'
94 {deps_dir, ["deps"]}.
95
96 %% What dependancies we have, depandencies can be of 3 forms, an application
97 %% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
98 %% an application name, a version and the SCM details on how to fetch it (SCM
99 %% type, location and revision). Rebar currently support git, hg, bzr and svn.
100 {deps, [application_name, {application_name, "1.0.*"},
101 {application_name, "1.0.*"},
102 {hg, "http://bitbucket.org/basho/rebar/", "f3626d5858a6"}]}.
103
104 %% == Subdirectories ==
105
106 %% Subdirectories?
107 {sub_dirs, ["dir1", "dir2"]}.
Something went wrong with that request. Please try again.