Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 131 lines (89 sloc) 3.516 kb
c466076 @tuncer Clean up emacs file local variables
tuncer authored
1 %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
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
be209f2 @tuncer Make debug_info default
tuncer authored
19 {erl_opts, [no_debug_info, {i, "myinclude"}, {src_dirs, ["src1", "src2"]},
952b838 @tuncer Document platform_define in sample config
tuncer authored
20 {platform_define,
21 "(linux|solaris|freebsd|darwin)", 'HAVE_SENDFILE'},
5b05e54 @norton Add otp_release to platform string
norton authored
22 {platform_define, "(linux|freebsd)", 'BACKLOG', 128},
23 {platform_define, "R13", 'old_inets'}]}.
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
24
25 %% MIB Options?
26 {mib_opts, []}.
27
28 %% SNMP mibs to compile first?
29 {mib_first_files, []}.
30
9cafd06 @Vagabond Document edoc_opts
Vagabond authored
31 %% == EDoc ==
32
33 %% EDoc options
34 {edoc_opts, []}.
35
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
36 %% == Port Compiler ==
37
38 %% List and wildcard list of files to be compiled. Default is `"c_src/*.c"'
39 {port_sources, []}.
40
41 %% Port compilation environment variables. See rebar_port_compiler.erl for
42 %% more info. Default is `[]'
43 {port_envs, []}.
44
45 %% Custom name of the port driver .so file. Defaults to `<Application>_drv.so'.
46 {so_name, "driver.so"}.
47
48 %% == LFE Compiler ==
49
50 %% LFE files to compile before the rest
51 {lfe_first_files, []}.
52
53 %% Options for the LFE compiler
54 {lfe_opts, []}.
55
56 %% == ErlyDTL Compiler ==
57
58 %% Options for the ErlyDTL compiler
59 {erlydtl_opts, []}.
60
61 %% == EUnit ==
62
63 %% Options for eunit:test()
64 {eunit_opts, []}.
65
66 %% Additional compile options for eunit. erl_opts from above is also used
67 {eunit_compile_opts, []}.
68
e407838 @tuncer Document eunit_first_files
tuncer authored
69 %% Same as erl_first_files, but used only when running 'eunit'
70 {eunit_first_files, []}.
71
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
72 %% Whether to enable coverage reporting. Default is `false'
73 {cover_enabled, false}.
f2244b2 @Vagabond Add optional eunit coverage report to terminal
Vagabond authored
74
75 %% Whether to print coverage report to console. Default is `false'
76 {cover_print_enabled, false}.
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
77
78 %% == Dialyzer ==
79
2d2aed6 @tuncer Refactor Dialyzer support to make it more usable
tuncer authored
80 %% Options for running dialyzer
81 %% {plt, PltFile}
82 %% 'src': run Dialyzer on the source files as in 'dialyzer --src'
83 %% {warnings, [WarnOpts]}: turn on/off Dialyzer warnings
b2e7e5b @tuncer Fix dialyzer_opts documentation
tuncer authored
84 {dialyzer_opts, [{plt, PltFile}, {warnings, [WarnOpts]}, src]}.
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
85
86 %% == Cleanup ==
87
88 %% Which files to cleanup
89 {clean_files, ["file", "file2"]}.
90
91 %% == Reltool ==
92
93 %% Target directory for the release
94 {target, "target"}.
95
96 %% == OTP Applications ==
97
98 %% Binaries to link into the erlang path?
99 {app_bin, []}.
100
852edb0 @tuncer Document validate_app_modules option
tuncer authored
101 %% Enable validation of the OTP app module list. Default is 'true'
102 {validate_app_modules, true}.
103
86753c4 @tuncer Cleanup rebar.config.sample
tuncer authored
104 %% == Dependencies ==
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
105
106 %% Where to put any downloaded depandencies. Default is `deps'
107 {deps_dir, ["deps"]}.
108
109 %% What dependancies we have, depandencies can be of 3 forms, an application
110 %% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
111 %% an application name, a version and the SCM details on how to fetch it (SCM
86753c4 @tuncer Cleanup rebar.config.sample
tuncer authored
112 %% type, location and revision). Rebar currently supports git, hg, bzr and svn.
5d78928 @dizzyd Fix bug 549; example deps in rebar.config.sample were wrong, as identifi...
dizzyd authored
113 {deps, [application_name,
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
114 {application_name, "1.0.*"},
86753c4 @tuncer Cleanup rebar.config.sample
tuncer authored
115 {application_name, "1.0.*",
116 {git, "git://github.com/basho/rebar.git", {branch, "master"}}}]}.
cad24b2 @dizzyd Adding rebar.config.sample from vagabond (http://bitbucket.org/vagabond/...
dizzyd authored
117
118 %% == Subdirectories ==
119
120 %% Subdirectories?
121 {sub_dirs, ["dir1", "dir2"]}.
e767705 @hyperthunk Add pre and post script support for all commands
hyperthunk authored
122
123 %% == Pre/Post Command Hooks ==
124
125 {pre_hooks, [{clean, "./prepare_package_files.sh"},
126 {compile, "escript generate_headers"}]}.
127
128 {post_hooks, [{clean, "touch file1.out"},
129 {eunit, "touch file2.out"},
130 {compile, "touch postcompile.out"}]}.
Something went wrong with that request. Please try again.