AliceLR 52197ee67f Update notes on GL renderers for Switch 5 rokov pred
..
3ds 6b32bbb8c7 Add stdio redirection support, enable for console ports 5 rokov pred
amiga 366fbe0e58 Allow argument passing to CONFIG.arch scripts 5 rokov pred
android c0dc80e6c7 Re-add libgcc linkage but fix it up. 14 rokov pred
darwin ec391ffced Fix typo in darwin README 6 rokov pred
gp2x b2ef1987e8 Add generic context-sensitive joystick actions (#157) 5 rokov pred
mingw d3af12a7cd Use -Wl,-Bstatic and -Wl,-Bdynamic for mingw builds 5 rokov pred
msvc cbbbdcd890 Clipboard Handler Reorganization (#122) 6 rokov pred
nds 9c675e37cc Silence spurious NDS ram.c warnings 5 rokov pred
none 47ee71dc32 Implement side-by-side debug symbol file on all platforms. 14 rokov pred
pandora c01f7ac930 Initial SDL2 port. Backwards compat is broken. Software only. 11 rokov pred
psp 6b32bbb8c7 Add stdio redirection support, enable for console ports 5 rokov pred
switch 52197ee67f Update notes on GL renderers for Switch 5 rokov pred
unix 659eac3a36 Removed deprecated elements/categories from .desktop files. (#162) 5 rokov pred
wii ad624dc648 Add "softscale" renderer for SDL 2 builds (#175) 5 rokov pred
xcode 648018bfcb Updated Xcode project for the v2.91g build. (#148) 6 rokov pred
README 03f9d92a21 package.sh is dead 14 rokov pred
install.inc b2ef1987e8 Add generic context-sensitive joystick actions (#157) 5 rokov pred
lha.inc 5a3f02c3dd Re-implement 7 package.sh architectures as build system extensions. 14 rokov pred
manifest.sh b121feaedb Move updater restart code to main, add core_full_restart 5 rokov pred
zip.inc 5a3f02c3dd Re-implement 7 package.sh architectures as build system extensions. 14 rokov pred

README

MULTI-PLATFORM SUPPORT FOR MEGAZEUX

The arch/ directory structure contains any code/machinery which is platform
specific. Though is it dubiously named "arch" this refers to the platform
"architecture" rather than the CPU architecture. For example, although GP2X
and NDS both use ARM CPUs, they require different library and build system
machinery to work correctly.

DIRECTORY LAYOUT

Most directories here contain at least a README file describing what toolchain
and dependencies they require to work correctly. Some might also define
additional targets, for post-processing binaries or installing them on the
system.

Additionally, all of these directories must have a Makefile.in which the build
system will automatically include. This file should initialize any variables
that can be tweaked, for example the location of libraries or compiler flags.
The existing Makefile.in files should be a reasonable guide to this
functionality.

ADDING A PLATFORM TO MEGAZEUX

Adding support for a new platform is trivial. Think of a short name for the
platform (for example, Nintendo Dual-Screen is "nds") then create a directory
in arch/ with that name. Create a Makefile.in for your platform. Initially,
you may find configuring for "unix" and then manually altering the
"platform.inc" in the top level is enough to get your build to succeed.

Then, some changes must be made to config.sh to automatically generate both
the src/config.h header (which is fully generic) and the platform.inc. This
script is what users of your port will invoke to build the package.

You may also want to make sure the "build" and "archive" targets do something
for your platform. These targets make auto-builds and shipping binary
packages much easier.

--ajs.