Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 111 lines (75 sloc) 3.013 kB
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
dizzyd authored
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
952b838 @tuncer Document platform_define in sample config
tuncer authored
19 {erl_opts, [{i, "myinclude"}, {src_dirs, ["src1", "src2"]},
20 {platform_define,
21 "(linux|solaris|freebsd|darwin)", 'HAVE_SENDFILE'},
22 {platform_define, "(linux|freebsd)", 'BACKLOG', 128}]}.
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
dizzyd authored
23
24 %% MIB Options?
25 {mib_opts, []}.
26
27 %% SNMP mibs to compile first?
28 {mib_first_files, []}.
29
30 %% == Port Compiler ==
31
32 %% List and wildcard list of files to be compiled. Default is `"c_src/*.c"'
33 {port_sources, []}.
34
35 %% Port compilation environment variables. See rebar_port_compiler.erl for
36 %% more info. Default is `[]'
37 {port_envs, []}.
38
39 %% Tuple which specifies a pre-compilation script to run, and a filename that
40 %% exists as a result of the script running.
41 {port_pre_script, {"script.sh", "skipfile"}}.
42
43 %% String that specifies a script to run during cleanup. Use this to remove
44 %% files/directories created by port_pre_script.
45 {port_cleanup_script, "cleanup.sh"}.
46
47 %% Custom name of the port driver .so file. Defaults to `<Application>_drv.so'.
48 {so_name, "driver.so"}.
49
50 %% == LFE Compiler ==
51
52 %% LFE files to compile before the rest
53 {lfe_first_files, []}.
54
55 %% Options for the LFE compiler
56 {lfe_opts, []}.
57
58 %% == ErlyDTL Compiler ==
59
60 %% Options for the ErlyDTL compiler
61 {erlydtl_opts, []}.
62
63 %% == EUnit ==
64
65 %% Options for eunit:test()
66 {eunit_opts, []}.
67
68 %% Additional compile options for eunit. erl_opts from above is also used
69 {eunit_compile_opts, []}.
70
71 %% Whether to enable coverage reporting. Default is `false'
72 {cover_enabled, false}.
73
74 %% == Dialyzer ==
75
76 %% Options for running the dialyzer, right now only `plt' is supported
77 {dialyzer_opts, []}.
78
79 %% == Cleanup ==
80
81 %% Which files to cleanup
82 {clean_files, ["file", "file2"]}.
83
84 %% == Reltool ==
85
86 %% Target directory for the release
87 {target, "target"}.
88
89 %% == OTP Applications ==
90
91 %% Binaries to link into the erlang path?
92 {app_bin, []}.
93
94 %% == Dependancies ==
95
96 %% Where to put any downloaded depandencies. Default is `deps'
97 {deps_dir, ["deps"]}.
98
99 %% What dependancies we have, depandencies can be of 3 forms, an application
100 %% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
101 %% an application name, a version and the SCM details on how to fetch it (SCM
102 %% type, location and revision). Rebar currently support git, hg, bzr and svn.
5d78928 @dizzyd Fix bug 549; example deps in rebar.config.sample were wrong, as ident…
dizzyd authored
103 {deps, [application_name,
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
dizzyd authored
104 {application_name, "1.0.*"},
5d78928 @dizzyd Fix bug 549; example deps in rebar.config.sample were wrong, as ident…
dizzyd authored
105 {application_name, "1.0.*", {hg, "http://bitbucket.org/basho/rebar/", "f3626d5858a6"}}]}.
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
dizzyd authored
106
107 %% == Subdirectories ==
108
109 %% Subdirectories?
110 {sub_dirs, ["dir1", "dir2"]}.
Something went wrong with that request. Please try again.