You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.9 KiB

  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. %% == Core ==
  6. %% Additional library directories to add to the code path
  7. {lib_dirs, []}.
  8. %% == Erlang Compiler ==
  9. %% Erlang files to compile before the rest. Rebar automatically compiles
  10. %% parse_transforms and custom behaviours before anything other than the files
  11. %% in this list.
  12. {erl_first_files, ["mymib1", "mymib2"]}.
  13. %% Erlang compiler options
  14. {erl_opts, [{i, "myinclude"}, {src_dirs, ["src1", "src2"]},
  15. {platform_define,
  16. "(linux|solaris|freebsd|darwin)", 'HAVE_SENDFILE'},
  17. {platform_define, "(linux|freebsd)", 'BACKLOG', 128}]}.
  18. %% MIB Options?
  19. {mib_opts, []}.
  20. %% SNMP mibs to compile first?
  21. {mib_first_files, []}.
  22. %% == Port Compiler ==
  23. %% List and wildcard list of files to be compiled. Default is `"c_src/*.c"'
  24. {port_sources, []}.
  25. %% Port compilation environment variables. See rebar_port_compiler.erl for
  26. %% more info. Default is `[]'
  27. {port_envs, []}.
  28. %% Tuple which specifies a pre-compilation script to run, and a filename that
  29. %% exists as a result of the script running.
  30. {port_pre_script, {"script.sh", "skipfile"}}.
  31. %% String that specifies a script to run during cleanup. Use this to remove
  32. %% files/directories created by port_pre_script.
  33. {port_cleanup_script, "cleanup.sh"}.
  34. %% Custom name of the port driver .so file. Defaults to `<Application>_drv.so'.
  35. {so_name, "driver.so"}.
  36. %% == LFE Compiler ==
  37. %% LFE files to compile before the rest
  38. {lfe_first_files, []}.
  39. %% Options for the LFE compiler
  40. {lfe_opts, []}.
  41. %% == ErlyDTL Compiler ==
  42. %% Options for the ErlyDTL compiler
  43. {erlydtl_opts, []}.
  44. %% == EUnit ==
  45. %% Options for eunit:test()
  46. {eunit_opts, []}.
  47. %% Additional compile options for eunit. erl_opts from above is also used
  48. {eunit_compile_opts, []}.
  49. %% Whether to enable coverage reporting. Default is `false'
  50. {cover_enabled, false}.
  51. %% == Dialyzer ==
  52. %% Options for running the dialyzer, right now only `plt' is supported
  53. {dialyzer_opts, []}.
  54. %% == Cleanup ==
  55. %% Which files to cleanup
  56. {clean_files, ["file", "file2"]}.
  57. %% == Reltool ==
  58. %% Target directory for the release
  59. {target, "target"}.
  60. %% == OTP Applications ==
  61. %% Binaries to link into the erlang path?
  62. {app_bin, []}.
  63. %% == Dependancies ==
  64. %% Where to put any downloaded depandencies. Default is `deps'
  65. {deps_dir, ["deps"]}.
  66. %% What dependancies we have, depandencies can be of 3 forms, an application
  67. %% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
  68. %% an application name, a version and the SCM details on how to fetch it (SCM
  69. %% type, location and revision). Rebar currently support git, hg, bzr and svn.
  70. {deps, [application_name, {application_name, "1.0.*"},
  71. {application_name, "1.0.*"},
  72. {hg, "http://bitbucket.org/basho/rebar/", "f3626d5858a6"}]}.
  73. %% == Subdirectories ==
  74. %% Subdirectories?
  75. {sub_dirs, ["dir1", "dir2"]}.