ample/embedded
Kelvin Sherlock e89536c932 version bump, add host.fst.po, move mame-data.tgz to the shared support directory. 2024-03-27 21:16:06 -04:00
..
Host.FST.po version bump, add host.fst.po, move mame-data.tgz to the shared support directory. 2024-03-27 21:16:06 -04:00
README.md add some mame build notes so I don't forget. 2020-08-31 18:33:58 -04:00
download-sdl.sh bump sdl version 2023-02-28 15:41:03 -05:00
download-sparkle.sh use sparkle 2.2.0 2022-09-28 18:41:17 -04:00
install_name_tool.pl install_name_tool fixes 2023-11-04 21:29:52 -04:00
mame64.entitlements codesign mame w/ entitlements 2021-06-15 19:16:23 -04:00

README.md

This folder should contain SDL2.framework and a mame64 executable. These will be included in the build.

  • SDL2
  • MAME (requires building from source)

Not tested, but perhaps you could also download a pre-built MAME and use install_name_tool to fix the rpath.

Alternatively, adjust the xcode project to not embed them.

Building MAME:

This will build a subset of MAME which only includes apple2 support.

git clone mame ...
cd mame
make SOURCES=src/mame/drivers/apple1.cpp,src/mame/drivers/apple2.cpp,src/mame/drivers/apple2e.cpp,src/mame/drivers/apple2gs.cpp,src/mame/drivers/apple3.cpp SDL_FRAMEWORK_PATH=`pwd`/..

you can use `$LDFLAGS` to set the rpath (`LDFLAGS="-rpath @executable_path/../Frameworks" make ...`) or set it after with the `install_name_tool` tool - ``install_name_tool -add_rpath @executable_path/../Frameworks mame64`