From 48513422f53824ec6a142d0c76dfb2ec2a982128 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 31 Aug 2020 18:33:58 -0400 Subject: [PATCH] add some mame build notes so I don't forget. --- embedded/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 embedded/README.md diff --git a/embedded/README.md b/embedded/README.md new file mode 100644 index 0000000..d21236b --- /dev/null +++ b/embedded/README.md @@ -0,0 +1,22 @@ + +This folder should contain SDL2.framework and a mame64 executable. These will be included in the build. + +* [SDL2](http://libsdl.org/download-2.0.php) +* [MAME](https://github.com/mamedev/mame) (requires building from source) + +Not tested, but perhaps you could also download a [pre-built MAME](https://wiki.mamedev.org/index.php/SDL_Supported_Platforms) 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` + +