{sys, [
       {lib_dirs, ["../../apps","../../deps"]},
       {erts, [{mod_cond, derived}, {app_file, strip}]},
       {app_file, strip},
       {rel, "node", "1",
        [
         kernel,
         stdlib,
         avz,
         sasl,
         shen,
         gproc,
         cowlib,
         n2o,
         erlydtl,
         db,
         server,
         sync,
         kvs,
         web
        ]},
       {rel, "start_clean", "",
        [
         kernel,
         stdlib
        ]},
       {boot_rel, "node"},
       {profile, embedded},
       {incl_cond, derived},
       {mod_cond, derived},
       {excl_archive_filters, [".*"]}, %% Do not archive built libs
       {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",
                           "^erts.*/(doc|info|include|lib|man|src)"]},
       {excl_app_filters, ["\.gitignore"]},
       {app, hipe, [{mod_cond, app}, {incl_cond, exclude}]},
       {app, db, [{mod_cond, app}, {incl_cond, include}]}
       {app, server, [{mod_cond, app}, {incl_cond, include}]}
       {app, face, [{mod_cond, app}, {incl_cond, include}]}
      ]}.

{target_dir, "node"}.

{overlay, [
           {mkdir, "log/sasl"},
           {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
           {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
           {copy, "files/node", "bin/node"},
           {copy, "files/node.cmd", "bin/node.cmd"},
           {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},
           {copy, "files/install_upgrade.escript", "bin/install_upgrade.escript"},
           {copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},
           {copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}
          ]}.
