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

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.