2017-04-16 01:00:50 -05:00
|
|
|
FROM wombatant/devenv:latest
|
2017-04-14 04:08:13 -05:00
|
|
|
|
|
|
|
ENV DEVKITPRO /opt/devkitPro
|
|
|
|
ENV DEVKITARM ${DEVKITPRO}/devkitARM
|
|
|
|
|
2017-04-18 17:49:35 -05:00
|
|
|
RUN dnf install -y qt5-devel llvm libasan
|
2017-04-16 01:00:50 -05:00
|
|
|
|
2017-04-14 04:08:13 -05:00
|
|
|
###############################################################################
|
|
|
|
# Install Ox
|
|
|
|
|
2017-04-21 06:12:17 -05:00
|
|
|
RUN git clone https://github.com/wombatant/ox.git /usr/local/src/ox && \
|
2017-04-14 04:08:13 -05:00
|
|
|
cd /usr/local/src/ox && \
|
2017-04-21 06:12:17 -05:00
|
|
|
git checkout -b install 7bce077ea81d7dbe10f7ba33eec0e061453f3f12
|
|
|
|
|
2017-04-14 04:08:13 -05:00
|
|
|
# setup build dirs
|
2017-04-21 06:12:17 -05:00
|
|
|
RUN mkdir -p \
|
2017-04-14 04:08:13 -05:00
|
|
|
/usr/local/src/ox/build/release \
|
|
|
|
/usr/local/src/ox/build/windows \
|
2017-04-21 06:12:17 -05:00
|
|
|
/usr/local/src/ox/build/gba;
|
|
|
|
|
2017-04-14 04:08:13 -05:00
|
|
|
# install Ox for native environment
|
2017-04-21 06:12:17 -05:00
|
|
|
RUN cd /usr/local/src/ox/build/release && \
|
2017-04-14 04:08:13 -05:00
|
|
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ../../ && \
|
2017-04-21 06:12:17 -05:00
|
|
|
make -j install
|
|
|
|
|
2017-04-14 04:08:13 -05:00
|
|
|
# install Ox for GBA
|
2017-04-21 06:12:17 -05:00
|
|
|
RUN cd /usr/local/src/ox/build/gba && \
|
2017-04-14 04:08:13 -05:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=cmake/Modules/GBA.cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/opt/devkitPro/devkitARM \
|
|
|
|
-DOX_USE_STDLIB=OFF ../../ && \
|
2017-04-21 06:12:17 -05:00
|
|
|
make -j install
|
|
|
|
|
2017-04-14 04:08:13 -05:00
|
|
|
# install Ox for Windows
|
2017-04-21 06:12:17 -05:00
|
|
|
RUN cd /usr/local/src/ox/build/windows && \
|
2017-04-14 04:08:13 -05:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=cmake/Modules/Mingw.cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr/x86_64-w64-mingw32 \
|
|
|
|
-DOX_BUILD_EXEC=OFF ../../ && \
|
|
|
|
make -j install
|