From 74917be38af93e8f64091a9805768f2d24a9260d Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Wed, 15 May 2024 10:57:13 +0100 Subject: [PATCH 1/2] Stop recommending minimingw for hxcpp target It is a very outdated distribution of mingw and projects no longer compile with it. --- content/12-target-details.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/12-target-details.md b/content/12-target-details.md index 400fbe3a..68c8dadf 100644 --- a/content/12-target-details.md +++ b/content/12-target-details.md @@ -693,7 +693,7 @@ On Mac, it is recommended that you install the latest Xcode from the Mac App Sto On Linux, it is recommended that you use the system package manager to install the compilers. -On Windows, Microsoft Visual Studio is recommended. On Windows, you can also use `gcc`-based compilers. A minimal distribution is included in a Haxelib library, and can be installed with `haxelib install minimingw`. +On Windows, Microsoft Visual Studio is recommended. You can also use `gcc`-based compilers. ##### Cross Compilers From 31716bc566e102e29a583753bc81951695bb8152 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Wed, 15 May 2024 11:16:32 +0100 Subject: [PATCH 2/2] Add information about setting up MSVC for hxcpp --- content/12-target-details.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/12-target-details.md b/content/12-target-details.md index 68c8dadf..1022ceeb 100644 --- a/content/12-target-details.md +++ b/content/12-target-details.md @@ -695,6 +695,13 @@ On Linux, it is recommended that you use the system package manager to install t On Windows, Microsoft Visual Studio is recommended. You can also use `gcc`-based compilers. +To compile with Microsoft Visual Studio, you need to install the Builds Tools and `vswhere`. You can install the 2022 Build Tools and `vswhere` using the following winget commands: + +```pwsh +winget install -e --id Microsoft.VisualStudio.2022.BuildTools +winget install -e --id Microsoft.VisualStudio.Locator +``` + ##### Cross Compilers `hxcpp` can be used to compile for non-host architectures if you have a suitable cross-compiler installed. The compilers are usually supplied in the form of a Software Development Kits (SDK), or in the case of iOS devices, come with the system compiler (Xcode). Selecting which compiler to use is achieved by defining particular variables in the `hxcpp` build environment. Note that the `hxcpp` build tool is only responsible for producing a native executable or a native library (static or dynamic), not the complete bundling and packaging of assets and meta-data that is typically required for mobile devices. Additional Haxe libraries can be used for this task.