diff options
| author | PikalaxALT <PikalaxALT@gmail.com> | 2019-07-29 09:01:55 -0400 |
|---|---|---|
| committer | PikalaxALT <PikalaxALT@gmail.com> | 2019-07-29 09:01:55 -0400 |
| commit | 3e27227b83c2c602237f016f04f2c5fa1e31de87 (patch) | |
| tree | 4bce050a1fc6c364f937c33dcf58daf283a241d1 /CONTRIBUTING.md | |
| parent | 7d02658bfce6a57a5f845f44cbda412b9777113a (diff) | |
Add sources and compilation guide
Diffstat (limited to 'CONTRIBUTING.md')
| -rw-r--r-- | CONTRIBUTING.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..bf91000 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,36 @@ +## Compilation instructions + +Set up your MSYS2 environment using pacman to obtain native and mingw-w64-cross compilers (C,C++), mingw-w64-cross-zlib, wget, and git. Then run the following: +```bash +# Set environment options to catch errors. Please report any issues. +set -xe + +# Set this variable to the path of pokeruby-tools if different. +TOOLSDIR=$(pwd)/pokeruby-tools + +# Edit this variable if libpng updates or you want to use an older version of libpng. +PNGVER=1.6.37 + +# Clone this repository if you haven't already. +git clone https://github.com/pret/pokeruby-tools + +# Clone and install agbcc if you haven't already. +git clone https://github.com/pret/agbcc +cd agbcc +sh build.sh +sh install.sh ${TOOLSDIR} +cd .. + +# gbagfx and rsfont require static libpng targeting i686-w64-mingw32, so we compile it here. +wget http://prdownloads.sourceforge.net/libpng/libpng-${PNGVER}.tar.xz +tar -xJf libpng-${PNGVER}.tar.xz +cd libpng-${PNGVER} +./configure --host=i686-w64-mingw32 --prefix=${TOOLSDIR}/tools/.local +make +make install +cd .. + +# Now build the tools. +cd pokeruby-tools +sh build.sh +``` |
