Changelog:
build: fix UpdateAppcast.cmakeHardcode `git` instead of using `${GIT_EXECUTABLE}` which we are not
using anymore.
Signed-off-by: Rafael Kitover
build: fix using host pkgconf for ARM64 cross bldSet `VCPKG_HOST_TRIPLET` and `VCPKG_USE_HOST_TOOLS` when using an X64
host for an ARM64 cross build in order to use the host `pkgconf` and
possibly other tools.
Signed-off-by: Rafael Kitover
build: fix linking non-debug pcre for debug wxRemove the cmake code that adds the pcre library because the wxWidgets
cmake code correctly includes it now, on both vcpkg and MSYS2.
Also fix up `wxWidgets_ROOT_DIR` and `wxWidgets_LIB_DIR` for debug
builds.
Signed-off-by: Rafael Kitover
build: do not use debug libs for RelWithDebInfoStop trying to use debug libs for `CMAKE_BUILD_TYPE=RelWithDebInfo`,
this also fixes the current link error with SFML.
Signed-off-by: Rafael Kitover
[GB] Properly set OPRI on startupPreviously, the OPRI register was always set to be in CGB mode when not
using the CGB BIOS, resulting in graphics corruption when running DMG
software in CGB mode without using the CGB BIOS. This fixes the issue by
properly setting bit 1 of the OPRI register as expected.
This was broken in #1119.
build: fix linking FAudio statically on MINGWLink `FAudio.a` explicitly on MINGW toolchains, for some reason linking
`FAudio` with static preference no longer works.
Signed-off-by: Rafael Kitover
[dialogs] Display all controls in AccelConfig on Mac (#1349)Calling `ExpandAll()` on the `wxTreeCtrl` would cause it to display outside of its
intended view, hiding other controls. Instead, this sets a minimum size for the tree
control, so the default window size is reasonable.
Fixes #1348
Disable open menu tracking outside of Windows (#1350)Tracking whether or not the menus are opened is necessary on Windows since menus stop
the main loop. This is not necessary on other platforms. In particular, on Mac, we do
not get a `wxEVT_MENU_CLOSE` event when opening a dialog from a shortcut, resulting in
the menu status tracking being incorrect.
Fixes #1348
build: don’t hardcode Windows certificate passwordUse a file for the Windows code-signing certificate instead of
hardcoding it into the CMake code.
Update the developer manual with instructions on where to put the
Windows code-signing certificate and the file containing the password
for it.
Signed-off-by: Rafael Kitover
Ignore illegal opcodes used by Wii U VC (#1351)The Wii U VC emulator incorrectly allows for armv6 thumb instructions
(like LSRS). These cause an undefined instruction error on real hardware
but the Wii U VC emulator just ignores them. This change mimicks the Wii
U VC emulator behavior.
build: update harfbuzz for macOS builderUpdate harfbuzz in the macOS builder from the ancient version to the
current release and switch it to using Meson.
Signed-off-by: Rafael Kitover
build: rename dependencies submodule -> win32-depsRename the Git submodule `dependencies` used for some dependent files
for Win32 builds to `win32-deps` and make the necessary adjustments to
the CMake code.
Signed-off-by: Rafael Kitover
cherry pick d5d01a8
[Input] Reset keyboard tracking on focus loss (#1357)When pressing Alt+Tab, the “Alt” and “Tab” keys were considered in the
“pressed” state until the user pressed them again because the window is
no longer receiving keyboard events. This resulted in some shortcuts no
longer working, since “Alt” was always in the pressed state. This
changes the keyboard tracking to be reset when the application loses
focus, fixing the issue.
This change also adds tests for the keyboard tracking.
translations: transifex pullSigned-off-by: Rafael Kitover
translations: transifex pullSigned-off-by: Rafael Kitover
[GB] Add support for per-game overrides (#1370)* [GB] Add support for per-game overrides
Alleyway is a buggy game that does not work properly when a Game Boy
Printer is connected. In order to work around this issue, this adds
upport for built-in per-software Game Boy overrides. In addition, this
renames various variables to make their meaning clearer.
* This only supports built-in overrides. External INI files are not
supported.
* Only the Game Boy Printer option is supported, this only takes effect
on game startup and the general configuration option is restored when
the game is unloaded.
* As a result, it is possible to override the per-game override by
manually setting the option while the game is running, this is working
as intended.
* Future refactors of the option handling will manage overrides better.
* Switch `gbPrinterEnabled` default to off.
Fixes #1368
[gtest] Use googletest as a submodule (#1373)Some Linux distributions use a hermetic build environment to build. This
resulted in issues with `FetchContent` attempting to download googletest
at configure time.
This fixes the issue by integrating googletest as a git submodule
instead of downloading it at configure time.
[win32-deps] Use specific commit in submodule (#1374)This will help make older builds reproducible.
[win32-deps] Update win32-deps (#1375)
translations: transifex pullSigned-off-by: Rafael Kitover
build: initialize GTest submodule in CMakeTry to initialize the GTest Git submodule from the CMake code if it has
not been.
If that fails, turn off `BUILD_TESTING`.
We do not want to require recursive clones or initializing submodules
for users by default.
Signed-off-by: Rafael Kitover
build: link avrt for OpenAL on WIN32For static builds for Windows, link `avrt`, a system library that is now
required by OpenAL.
Also remove our version of `FindOpenAL.cmake` in favor of the
system-provided version.
Signed-off-by: Rafael Kitover
Change domain to temporaryDomain has expired, change links to temporary domain.
Signed-off-by: Rafael Kitover
Revert “Change domain to temporary”This reverts commit 72364fd.
Set developer id/component type in metainfo.xmlAdd developer block to `metainfo.xml` with id ‘visualboyadvance-m.org’.
Also set component type to ‘desktop-application’.
This file is used to describe the application on Linux.
Signed-off-by: Rafael Kitover
Atualizações:
build: corrigir UpdateAppcast.cmake
“Hardcode git em vez de usar ${GIT_EXECUTABLE}, que não estamos mais utilizando.”
build: corrigir uso do pkgconf host para build cruzado ARM64
“Definir VCPKG_HOST_TRIPLET e VCPKG_USE_HOST_TOOLS quando usar um host X64 para uma build cruzada ARM64, a fim de usar o pkgconf do host e possivelmente outras ferramentas.”
build: corrigir linkagem do pcre não-debug para wxDebug
“Remover o código cmake que adiciona a biblioteca pcre porque o código cmake do wxWidgets agora a inclui corretamente, tanto no vcpkg quanto no MSYS2. Também ajustar wxWidgets_ROOT_DIR e wxWidgets_LIB_DIR para builds de depuração.”
build: não usar bibliotecas de depuração para RelWithDebInfo
“Parar de tentar usar bibliotecas de depuração para CMAKE_BUILD_TYPE=RelWithDebInfo, o que também corrige o erro de link atual com o SFML.”
[GB] Configuração correta do OPRI na inicialização
“Anteriormente, o registrador OPRI era sempre configurado para o modo CGB quando não estava usando o BIOS CGB, resultando em corrupção gráfica ao rodar software DMG em modo CGB sem usar o BIOS CGB. Isso corrige o problema configurando corretamente o bit 1 do registrador OPRI como esperado.”
build: corrigir linkagem estática do FAudio no MINGW
“Linkar explicitamente o FAudio.a nos toolchains MINGW, porque por algum motivo a preferência de linkar estáticamente o FAudio não está funcionando mais.”
[dialogs] Exibir todos os controles na configuração AccelConfig no Mac (#1349)
“Chamar ExpandAll() no wxTreeCtrl causaria exibição fora da sua área de visualização, ocultando outros controles. Agora, é configurado um tamanho mínimo para o controle de árvore, fazendo com que o tamanho da janela padrão seja razoável.”
Desabilitar rastreamento de menus fora do Windows (#1350)
“Rastrear se os menus estão abertos é necessário no Windows, já que os menus param o loop principal. Isso não é necessário em outras plataformas. Especificamente, no Mac, não recebemos um evento wxEVT_MENU_CLOSE ao abrir um diálogo a partir de um atalho, resultando em rastreamento incorreto do status do menu.”
build: não hardcodificar senha do certificado no Windows
“Usar um arquivo para o certificado de código do Windows em vez de hardcodificar a senha no código CMake. Atualizar o manual do desenvolvedor com instruções sobre onde colocar o certificado de código do Windows e o arquivo contendo a senha.”
Ignorar opcodes ilegais usados pelo Wii U VC (#1351)
“O emulador Wii U VC permite incorretamente instruções armv6 thumb (como LSRS). Isso causa um erro de instrução indefinida no hardware real, mas o emulador apenas ignora. Essa mudança imita o comportamento do emulador Wii U VC.”
build: atualizar harfbuzz para o construtor macOS
“Atualizar o harfbuzz no construtor macOS para a versão atual e mudar para o uso do Meson.”
build: renomear submódulo de dependências para win32-deps
“Renomear o submódulo Git dependencies usado para alguns arquivos dependentes para win32-deps e fazer os ajustes necessários no código CMake.”
cherry pick d5d01a8
[Input] Redefinir rastreamento de teclado quando a janela perde foco (#1357)
“Ao pressionar Alt+Tab, as teclas ‘Alt’ e ‘Tab’ eram consideradas pressionadas até que o usuário as pressionasse novamente, pois a janela não estava mais recebendo eventos de teclado. Isso resultava em alguns atalhos não funcionando, pois ‘Alt’ estava sempre pressionado. Essa mudança redefine o rastreamento do teclado quando a aplicação perde foco, corrigindo o problema.”
traduções: transifex pull
(Repetição do comando de pull para traduções.)
[GB] Adicionar suporte para substituições por jogo (#1370)
“Alleyway é um jogo com falha que não funciona corretamente quando uma Impressora Game Boy está conectada. Para contornar esse problema, adiciona-se suporte para substituições por jogo embutidas. Além disso, renomeia-se várias variáveis para tornar seu significado mais claro.”
[gtest] Usar googletest como submódulo (#1373)
“Algumas distribuições Linux usam um ambiente de build hermético. Isso causava problemas com FetchContent ao tentar baixar o googletest no momento da configuração. Isso corrige o problema integrando o googletest como um submódulo Git, em vez de baixá-lo no momento da configuração.”
[win32-deps] Usar commit específico no submódulo (#1374)
“Isso ajudará a tornar builds mais antigos reprodutíveis.”
[win32-deps] Atualizar win32-deps (#1375)
traduções: transifex pull
(Repetição do comando de pull para traduções.)
build: inicializar submódulo GTest no CMake
“Tentar inicializar o submódulo Git do GTest a partir do código CMake, caso ele ainda não tenha sido inicializado. Se falhar, desativar BUILD_TESTING. Não queremos exigir clones recursivos ou inicialização de submódulos por padrão.”
build: linkar avrt para OpenAL no WIN32
“Para builds estáticos no Windows, linkar avrt, uma biblioteca do sistema agora exigida pelo OpenAL. Também remover nossa versão do FindOpenAL.cmake em favor da versão fornecida pelo sistema.”
Alterar domínio para domínio temporário
“O domínio expirou, alterando os links para o domínio temporário.”
Reverter “Alterar domínio para temporário”
“Reverte o commit 72364fd.”
Definir ID de desenvolvedor/tipo de componente em metainfo.xml
“Adicionar bloco de desenvolvedor no metainfo.xml com id ‘visualboyadvance-m.org’. Também definir o tipo de componente como ‘desktop-application’. Este arquivo é usado para descrever a aplicação no Linux.”
Comentários