       description: "Fast Expat-based Erlang / Elixir XML parsing library",
       version: "1.1.11",
       elixir: "~> 1.2",
-      compilers: [:make] ++ Mix.compilers,
+      compilers: [:fastXML | Mix.compilers],
       aliases: aliases,
       deps: deps,
       package: package


  def application do
    [mod: {:fast_xml, []}]
    end
     
  defp package do
    [# These are the default files included in the package
     files: ["src", "lib", "c_src/*.c", "mix.exs", "rebar.config", "rebar.config.script", "Makefile.mix", "priv", "include", "README.md", "LICENSE.txt"],


  defp aliases do
    # Execute the usual mix clean and our Makefile clean task
    [clean: ["clean", "clean.fastXML"]]
  end
end

# Define
defmodule Mix.Tasks.Compile.FastXML do
  @shortdoc "Compiles helper in c_src"

  # TODO refactor
  def run(_) do
    if match? {:win32, _}, :os.type do
      {result, _error_code} = System.cmd("nmake", ["/F", "Makefile.mix", "priv\\lib\\fxml_stream.dll"], stderr_to_stdout: true)
