| 1 |
Building Dasher for Microsoft Windows |
| 2 |
===================================== |
| 3 |
|
| 4 |
Prerequisites |
| 5 |
------------- |
| 6 |
|
| 7 |
Expat XML Parser |
| 8 |
|
| 9 |
Downloads can be found at http://expat.sourceforge.net |
| 10 |
|
| 11 |
The project files use environment variables to locate the root directories of |
| 12 |
the prerequisites. You can set these in the Windows control panel: |
| 13 |
Control Panels->System->Advanced->Environment Variables. |
| 14 |
|
| 15 |
Here are the variable names and their default install locations (you may |
| 16 |
need to change these to reflect reality on your system): |
| 17 |
|
| 18 |
EXPAT C:\Program Files\Expat 2.0.1 |
| 19 |
|
| 20 |
Additional Prerequisits For Building HTML Help |
| 21 |
---------------------------------------------- |
| 22 |
|
| 23 |
If you aren't building a release, and don't otherwise want to build the Windows |
| 24 |
help (.chm) file, you can ignore these and disable the 'Manual' project in the |
| 25 |
solution. This project is only built for the 'Release' configurations anyway. |
| 26 |
|
| 27 |
LibXML2 |
| 28 |
docbook-xsl |
| 29 |
Microsoft HTML Help Workshop |
| 30 |
|
| 31 |
LibXML2 is available at: http://www.zlatkovic.com/libxml.en.html. The minimum |
| 32 |
requirement here is xslproc.exe, which can be installed along with the required |
| 33 |
dependencies by copying the contents of the bin directories from the libxml and |
| 34 |
libxslt packages to (eg) C:\Program Files\LibXML2. If you want to be able to |
| 35 |
use these libraries more generally you should probably put them somewhere in |
| 36 |
the system wide library path. |
| 37 |
|
| 38 |
These need a few more environment variables |
| 39 |
|
| 40 |
LIBXML C:\Program Files\LibXML2 |
| 41 |
DOCBOOK_XSL C:\Program Files\docbook-xsl-1.73.2 |
| 42 |
HELP_COMPILER C:\Program Files\HTML Help Workshop\hhc.exe |
| 43 |
|
| 44 |
Note that the last of these must be the full path of the compiler executable. This |
| 45 |
is due to technical limitations connected with hhc.exe (a) doing a bad job of |
| 46 |
parsing the command line and (b) giving a non-zero return value on success. |
| 47 |
|
| 48 |
** NOTE ** |
| 49 |
The automated build step doesn't (yet) handle the image files, so you'll need to |
| 50 |
manually copy Data\Help\Gnome\C\figures to Data\Help\Win32 before building. |
| 51 |
|
| 52 |
Building |
| 53 |
-------- |
| 54 |
|
| 55 |
Visual Studio 2013 solution/project files are included in the |
| 56 |
Src/Win32 directory. This should hopefully build without modification on |
| 57 |
any system. |
| 58 |
|
| 59 |
Building the installers |
| 60 |
----------------------- |
| 61 |
|
| 62 |
To build the installer MSI files, you need to install the Windows Install |
| 63 |
XML (WiX) toolset, from http://wix.sourceforge.net/. For Visual Studio |
| 64 |
2005, you first should install "ProjectAggregator" and then the 3.0 (beta) |
| 65 |
version of WiX. If it installs successfully, you should see "Windows |
| 66 |
Installer XML Version 3.0" listed in the about box of Visual Studio. |
| 67 |
|
| 68 |
The Visual Studio 2013 project files use the environment variable called |
| 69 |
"WIX" which should be set to the install directory of WiX. |
| 70 |
|
| 71 |
setup.exe |
| 72 |
--------- |
| 73 |
|
| 74 |
The installation itself is carried out by a small utility, setup.exe, which |
| 75 |
downloads the .msi file and installs it. This is (a) to ensure that the |
| 76 |
correct version of the Windows Installer is present, and (b) to make sure |
| 77 |
that the installer is run with the right options to enable the desired |
| 78 |
upgrade behaviour. |
| 79 |
|
| 80 |
The setup.exe binary is built from source shipped as part of the MS Platform |
| 81 |
SDK, as si MSIStuff, which is a utility for configuring the resulting |
| 82 |
binary. The whole process is described in MS KB article 888473: |
| 83 |
|
| 84 |
http://support.microsoft.com/kb/888473 |