// $Id: wix.mpb 1592 2009-06-24 21:20:17Z hillj $

project {
  custom_only = 1

  Define_Custom (WXS) {
    automatic             = 1
    command               = <%quote%>$(WIX_ROOT)/bin/candle.exe<%quote%>

    inputext              = .wxs
    output_option         = -out
    commandflags          = -nologo
    generic_outputext     = .wixobj
    keyword wix_flags     = commandflags
  }

  Define_Custom (WXI) {
    automatic             = 1
    inputext              = .wxi
  }

  postbuild = \
    <%quote%>$(WIX_ROOT)/bin/light.exe<%quote%> -out <%project_name%>.msi \
    <%light_flags%> <%foreach(wxs_files)%><%noextension(wxs_file)%>.wixobj <%endfor%>

  specific(vc71) {
    wix_flags += -dtype=vc71
  }

  specific(vc8) {
    wix_flags += -dtype=vc8
  }
}
