Skip to content
This repository
Newer
Older
100644 114 lines (77 sloc) 3.111 kb
cad24b28 »
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
952b838d »
2010-06-12 Document platform_define in sample config
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}]}.
cad24b28 »
2010-06-03 Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
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}.
f2244b26 »
2010-10-06 Add optional eunit coverage report to terminal
73
74 %% Whether to print coverage report to console. Default is `false'
75 {cover_print_enabled, false}.
cad24b28 »
2010-06-03 Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
76
77 %% == Dialyzer ==
78
79 %% Options for running the dialyzer, right now only `plt' is supported
80 {dialyzer_opts, []}.
81
82 %% == Cleanup ==
83
84 %% Which files to cleanup
85 {clean_files, ["file", "file2"]}.
86
87 %% == Reltool ==
88
89 %% Target directory for the release
90 {target, "target"}.
91
92 %% == OTP Applications ==
93
94 %% Binaries to link into the erlang path?
95 {app_bin, []}.
96
97 %% == Dependancies ==
98
99 %% Where to put any downloaded depandencies. Default is `deps'
100 {deps_dir, ["deps"]}.
101
102 %% What dependancies we have, depandencies can be of 3 forms, an application
103 %% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
104 %% an application name, a version and the SCM details on how to fetch it (SCM
105 %% type, location and revision). Rebar currently support git, hg, bzr and svn.
5d789283 »
2010-08-20 Fix bug 549; example deps in rebar.config.sample were wrong, as ident…
106 {deps, [application_name,
cad24b28 »
2010-06-03 Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
107 {application_name, "1.0.*"},
5d789283 »
2010-08-20 Fix bug 549; example deps in rebar.config.sample were wrong, as ident…
108 {application_name, "1.0.*", {hg, "http://bitbucket.org/basho/rebar/", "f3626d5858a6"}}]}.
cad24b28 »
2010-06-03 Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabo…
109
110 %% == Subdirectories ==
111
112 %% Subdirectories?
113 {sub_dirs, ["dir1", "dir2"]}.
Something went wrong with that request. Please try again.