25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

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