premake/README-mingw.txt
author Sam Lantinga
Thu, 01 Sep 2016 01:26:56 -0700
changeset 10304 ee83e0b4a36f
parent 7925 f090a47eb7f7
permissions -rwxr-xr-x
wayland: Add support for relative mouse mode, by Jonas Ådahl <jadahl@gmail.com>

Generate the C protocol files from the protocol XML files installed by
wayland-protocols, and use them to implement support for relative pointer
motions and pointer locking.

Note that at the time, the protocol is unstable and may change in the future.
Any future breaking changes will, however, fail gracefully and result in no
regressions compared to before this patch.
icculus@7925
     1
MinGW requires both the MinGW system and MSYS.
icculus@7925
     2
icculus@7925
     3
There is a script for generating a series of GNU makefiles targeted
icculus@7925
     4
at MinGW on Windows. These makefiles will build the SDL library and
icculus@7925
     5
test executables with static links to libgcc and the same features
icculus@7925
     6
as the Visual Studio builds. That is, they have full OpenGL support
icculus@7925
     7
and they have no dependency on MinGW.
icculus@7925
     8
icculus@7925
     9
After generating the scripts, simply navigate to the directory in
icculus@7925
    10
a MSYS terminal and execute:
icculus@7925
    11
icculus@7925
    12
    make
icculus@7925
    13
icculus@7925
    14
If you wish to clean the directory, you can use either the clean
icculus@7925
    15
batch file, or call:
icculus@7925
    16
icculus@7925
    17
    make clean
icculus@7925
    18
icculus@7925
    19
The former will remove the actual makefiles and the latter will
icculus@7925
    20
perform a typical clean operation. You can target specific
icculus@7925
    21
build configurations as such:
icculus@7925
    22
icculus@7925
    23
    make config=debug
icculus@7925
    24
icculus@7925
    25
Verbosity is initially set to off. All verbosity controls is
icculus@7925
    26
whether the resulting gcc and ar commands are printed to the
icculus@7925
    27
console. You can enable verbose output by setting verbose to any
icculus@7925
    28
value:
icculus@7925
    29
icculus@7925
    30
    make verbose=1
icculus@7925
    31
icculus@7925
    32
There is currently no install target, but that is intended
icculus@7925
    33
eventually.
icculus@7925
    34
icculus@7925
    35
Ben:
icculus@7925
    36
There is no DirectX support currently, but you can use the
icculus@7925
    37
command option '--directx' when generating the makefiles to
icculus@7925
    38
explicitly force the DirectX dependency on. This may have
icculus@7925
    39
undefined behavior, so use it cautiously.