Skip to content
rdipardo edited this page Dec 31, 2024 · 4 revisions

Building HTML Tag

Installing the Visual Studio C++ workload

Download and install Visual Studio Community Edition or the Visual Studio Build Tools

Find the Visual Studio Installer in the start menu and launch it.

Select the Desktop Development with C++ workload.

Click the Individual components tab. Find and select the ARM64 development files:

adding-cpp-arm64-component-in-vs-installer

Getting the source code

Clone the repository:

git clone https://bitbucket.org/rdipardo/htmltag.git

Note

The GitHub mirror is open to contributions from those with no Bitbucket account. Be aware that pull requests will be merged in the Bitbucket repo first, then pushed to GitHub.

If you are preparing a pull request, make sure to clone from the URL of your fork.

Installing CMake

Important

The location of python3.exe must be in your PATH environment variable.

Run:

python3 -m pip install cmake

If you installed python with Scoop, your user account’s PATH will be configured automatically. Test your installation with the command: python3 --version

If python is not in your PATH variable, configure it as shown below.

Windows version 10.0.19042.x (20H2) or later

• Press (Windows key) + X
• Click System, or type Y
• If you’re running…
Windows 11 – open the Device specifications tab, find Related links, and select Advanced system settings
Windows 10 – select Advanced system settings from the menu on the far right

Older Windows versions

• Press + Pause/Break

When the System Properties dialog appears:
• Click on the Advanced tab
• Click the Environment Variables button near the bottom of the dialog
• In the dialog box labelled User variables for %Username%, select PATH and click the Edit button
• If you’re running…
Windows 8 or newer – in the Edit environment variable dialog, click the New button
An older Windows version – in the Variable value text field, type a semicolon (;) after the current value
• Paste in the directory containing python.exe, e.g., C:\Program Files\Python
• Click OK

Generating DLLs

  1. Open the Visual Studio Developer Command Prompt
  2. cd into the source code directory
  3. Run the build script as shown (all parameters are optional):
build.cmd [Debug,Release,MinSizeRel,RelWithDebInfo] [x86,x64,ARM64] [clean] [nmake,clang]
.........................................................................................
Debug
  set CMAKE_BUILD_TYPE to Debug (selected by default)
Release, MinSizeRel, RelWithDebInfo
  set CMAKE_BUILD_TYPE to Release, MinSizeRel or RelWithDebInfo
x86
  build in 32-bit Intel processor mode
x64
  build in 64-bit Intel processor mode (selected by default)
ARM64
  build in 64-bit ARM processor mode
clean
  delete all CMake caches before building
nmake
  build with NMake (sets CMAKE_GENERATOR to "NMake Makefiles")
clang
  use the C++ Clang tools for Windows, if installed (*)
---
 (*) https://learn.microsoft.com/cpp/build/clang-support-msbuild