summaryrefslogtreecommitdiff
path: root/config/wix.mpb
blob: 434847d2125bfe67f046cbe6ec2ce23a09d9c8f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
project {
  custom_only = 1

  Define_Custom (WXS) {
    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) {
    inputext = .wxi
  }


  specific {
    wix_flags += -dtype=<%prj_type%>

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