Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build mozc_tip64.dll for ARM64 with GYP #1139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yukawa
Copy link
Collaborator

@yukawa yukawa commented Dec 15, 2024

Description

As a preparation to build Mozc for ARM64 in Windows (#1130), this commit demonstrates that it is technically possible for us to build mozc_tip64.dll as an ARM64 DLL with GYP even though GYP itself does not officially support it.

With this commit you need to install the following additional Visual Studio components even when you do not build Mozc for ARM64 Windows.

  • Microsoft.VisualStudio.Component.VC.Redist.14.Latest
  • Microsoft.VisualStudio.Component.VC.ATL
  • Microsoft.VisualStudio.Component.VC.Tools.x86.x64
  • Microsoft.VisualStudio.Component.VC.ATL.ARM64
  • Microsoft.VisualStudio.Component.VC.Tools.ARM64

Note that mozc_tip64.dll for ARM64 will be built only when explicitly specified in build_mozc.py build. There must be no change in the final artifacts when just building the installer package.

Note also that we still need to build ARM64X DLL to actually support ARM64 Windows environment.

Issue IDs

Steps to test new behaviors (if any)

  • OS: Windows 11 24H2
  • Steps:
  1. python build_mozc.py gyp
  2. python build_mozc.py build out_win/Release_x64:mozc_tip64
  3. python build_mozc.py build out_win/Release_arm64:mozc_tip64
  4. dumpbin /headers out_win/Release_x64/mozc_tip64.dll | findstr machine
  5. dumpbin /headers out_win/Release_arm64/mozc_tip64.dll | findstr machine
  6. Confirm 8664 machine (x64) is shown at the step 4 and AA64 machine (ARM64) is shown at the step 5.

As a preparation to build Mozc for ARM64 in Windows (google#1130), this commit
demonstrates that it is technically possible for us to build
'mozc_tip64.dll' as an ARM64 DLL with GYP even though GYP itself does
not officially support it.

With this commit you need to install the following additional Visual
Studio components even when you do not build Mozc for ARM64 Windows.

  * Microsoft.VisualStudio.Component.VC.Redist.14.Latest
  * Microsoft.VisualStudio.Component.VC.ATL
  * Microsoft.VisualStudio.Component.VC.Tools.x86.x64
  * Microsoft.VisualStudio.Component.VC.ATL.ARM64
  * Microsoft.VisualStudio.Component.VC.Tools.ARM64

Note that 'mozc_tip64.dll' for ARM64 will be built only when explicitly
specified in 'build_mozc.py build'. There must be no change in the final
artifacts when just building the installer package.

Note also that we still need to build ARM64X DLL to actually support
ARM64 Windows environment.
@yukawa
Copy link
Collaborator Author

yukawa commented Jan 9, 2025

Also rebased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants