1
0
mirror of synced 2024-11-30 16:24:27 +01:00

update to fedora 36, massive build speedups (Thanks Felix!)

This commit is contained in:
Hay1tsme 2023-01-04 14:24:44 -05:00
parent 55978cc2a3
commit 3158f60709
4 changed files with 37 additions and 43 deletions

View File

@ -1,38 +1,34 @@
FROM fedora:31 FROM fedora:36
LABEL description="Build environment for bananatools" LABEL description="Build environment for bananatools"
RUN yum -y install meson RUN dnf -y install meson ninja-build make zip clang mingw64-gcc.x86_64 mingw32-gcc.x86_64 git
RUN yum -y install ninja-build
RUN yum -y install make
RUN yum -y install zip
RUN yum -y install clang
RUN yum -y install mingw64-gcc.x86_64
RUN yum -y install mingw32-gcc.x86_64
RUN yum -y install git
RUN mkdir /bananatools RUN mkdir /bananatools
WORKDIR /bananatools WORKDIR /bananatools
COPY hooklib hooklib VOLUME [ "/bananatools" ]
COPY ferrumhook ferrumhook
COPY ferrumio ferrumio
COPY taikohook taikohook
COPY taikoio taikoio
COPY platform platform
COPY subprojects subprojects
COPY gfxhook gfxhook
COPY jvs jvs
COPY amcus amcus
COPY board board
COPY util util
COPY dist dist
COPY cross-mingw-32.txt cross-mingw-32.txt
COPY cross-mingw-64.txt cross-mingw-64.txt
COPY Makefile Makefile
COPY meson.build meson.build
COPY Package.mk Package.mk
COPY precompiled.h precompiled.h
COPY README.md README.md
RUN make dist # COPY hooklib hooklib
# COPY ferrumhook ferrumhook
# COPY ferrumio ferrumio
# COPY taikohook taikohook
# COPY taikoio taikoio
# COPY platform platform
# COPY subprojects subprojects
# COPY gfxhook gfxhook
# COPY jvs jvs
# COPY amcus amcus
# COPY board board
# COPY util util
# COPY dist dist
# COPY cross-mingw-32.txt cross-mingw-32.txt
# COPY cross-mingw-64.txt cross-mingw-64.txt
# COPY Makefile Makefile
# COPY meson.build meson.build
# COPY Package.mk Package.mk
# COPY precompiled.h precompiled.h
# COPY README.md README.md
#RUN make dist
ENTRYPOINT [ "make", "dist" ]

View File

@ -3,7 +3,6 @@ amcus_lib = static_library(
include_directories : inc, include_directories : inc,
implicit_include_directories : false, implicit_include_directories : false,
c_pch : '../precompiled.h', c_pch : '../precompiled.h',
vs_module_defs : 'amcus.def',
dependencies : [ dependencies : [
capnhook.get_variable('hook_dep'), capnhook.get_variable('hook_dep'),
], ],

View File

@ -13,7 +13,7 @@ if ERRORLEVEL 1 (
goto failure goto failure
) )
docker create --name %CONTAINER_NAME% %IMAGE_NAME% docker run -it --rm -v %~dp0:/bananatools --name %CONTAINER_NAME% %IMAGE_NAME%
if ERRORLEVEL 1 ( if ERRORLEVEL 1 (
goto failure goto failure
@ -22,9 +22,8 @@ if ERRORLEVEL 1 (
rd /s /q "!BUILD_OUTPUT_PATH!" rd /s /q "!BUILD_OUTPUT_PATH!"
mkdir "!BUILD_OUTPUT_PATH!" mkdir "!BUILD_OUTPUT_PATH!"
docker cp %CONTAINER_NAME%:/bananatools/build/zip %BUILD_OUTPUT_PATH% REM docker cp %CONTAINER_NAME%:/bananatools/build/zip %BUILD_OUTPUT_PATH%
docker rm -f %CONTAINER_NAME%
docker image rm -f %IMAGE_NAME% docker image rm -f %IMAGE_NAME%
goto success goto success

View File

@ -20,7 +20,7 @@
void amfw_dongle_insert_hooks(HMODULE target); void amfw_dongle_insert_hooks(HMODULE target);
static int my_nbamUsbFinderInitialize(); static int my_nbamUsbFinderInitialize();
static int my_nbamUsbFinderGetSerialNumber(int a1, char *serial); static int my_nbamUsbFinderGetSerialNumber(int a1, char serial[32]);
static int my_nbamUsbFinder_GetInformation(int a1, int a2, uint64_t a3, uint16_t a4, void *a5); static int my_nbamUsbFinder_GetInformation(int a1, int a2, uint64_t a3, uint16_t a4, void *a5);
static const struct hook_symbol dongle_hooks[] = { static const struct hook_symbol dongle_hooks[] = {