Open athairus opened 8 years ago
Build instructions need an overhaul. On console, only build frontend, the others will be implicitly built. Also, only run make install
or whatever for the frontend.
Note to self: C:\Windows\System32\cmd.exe /C "SET PATH=C:\msys64\usr\bin;%PATH% & start C:\msys64\mingw64\bin\qtcreator"
or (Environment of the default kit): PATH=C:\msys64\usr\bin;${PATH}
This has been fairly well-tested on Windows and OS X. OS X and Linux are similar enough that I'd say this is good to go, at least for now.
The addition of the backend plugin makes this complicated, especially on Linux... I'm going to consider installed mode unsupported until I spend time later to think this through.
Linux installed mode is now fixed, though it could break later. It's not a top priority at the moment.
Building
To build the portable version of Phoenix into PREFIX:
To build the installed version of Phoenix into PREFIX:
Runtime
Phoenix will either work in "portable" or "installed" mode based on the presence of a file called
PHOENIX-PORTABLE
in the same folder as the executable. If it exists, run in portable mode. If not, run in installed mode.Structure
Portable mode
For portable builds, the Phoenix binary will sit at the root with the following structure within:
Installed mode
Windows location:
%PROGRAMFILES%\Phoenix\
OS X location: Usually/Applications/Phoenix.app/Contents/MacOS/
Structure:Linux location: Depends, for example
/usr/local
Core folders
Windows:
%PROGRAMFILES%\Libretro\Cores
OS X:/usr/local/lib/libretro
Linux:/usr/lib/libretro