Changeset 4f3fe48 in buchla-emu for readme.txt


Ignore:
Timestamp:
07/23/2017 04:41:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8e1b163
Parents:
2a75e87
Message:

Support cross-build for Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • readme.txt

    r2a75e87 r4f3fe48  
    3232  https://www.freetype.org/
    3333
    34 Currently, the emulator supports Linux and OS X. A port to Windows
    35 should be pretty easy, given that it doesn't use any platform-specific
    36 features, just C99 and SDL2.
     34Currently, we build the emulator code natively on Linux and OS X. The
     35Windows version is cross-compiled on Linux using a x86_64-w64-mingw32
     36toolchain.
    3737
    38 Our Makefile expects all of the above libraries to reside in
    39 /opt/sdl2. This is how we typically install them:
     38For Linux and OS X, our Makefile expects all of the above libraries to
     39reside in /opt/sdl2. This is how we typically install them:
    4040
    4141  # Build and install FreeType first
     
    8585
    8686from the top-level directory of this repository to build the emulator.
     87
     88The cross-build for Windows is done similarly, with the following
     89differences when configuring the libraries:
     90
     91  * We use "--prefix=/opt/sdl2-win" instead of "--prefix=/opt/sdl2",
     92    so that the Windows versions of the libraries go to a different
     93    directory.
     94
     95  * We additionally specify "--host=x86_64-w64-mingw32" to enable
     96    cross-compilation.
     97
     98Then, to cross-build the emulator, invoke
     99
     100  make buchla WIN=1
     101
     102from the top-level directory of this repository.
    87103
    88104
Note: See TracChangeset for help on using the changeset viewer.