Rotorheads map exporter 1.1.0 -- building it yourself
====================================================

This zip is the complete source of the exporter: the DLL, the DCS hook and the
export-side script.


What you need
-------------

1. rustup, from https://rustup.rs
   The toolchain version is pinned in rust-toolchain.toml, and rustup installs
   it the first time you build. You do not need to pick a version yourself.

2. MinGW-w64, which provides the linker. Any recent MinGW-w64 build works; it
   must be on your PATH, so that `gcc --version` and `dlltool --version` both
   answer in a new terminal. One source is
   https://github.com/niXman/mingw-builds-binaries/releases

Visual Studio is not used and does not need to be installed.


Building
--------

Open PowerShell in this folder and run:

    .\build.ps1

It builds the release DLL:

    target\x86_64-pc-windows-gnu\release\rotorheads_exporter.dll

Copy that DLL where README.txt says, in place of the one in the binary zip.
The two Lua scripts in lua\ are the same files that zip contains; they are
plain text and need no building.


Tests
-----

    cargo test

runs the exporter's own tests. They need neither DCS nor the DLL.


What the source contains
------------------------

    src\            the DLL
    lua\            the DCS hook and the export-side script
    install\        README.txt, the sample settings file, and this file
    build.ps1       the release build
    Cargo.toml      the package, its one dependency and the release profile
    Cargo.lock      the exact dependency versions the build uses
