... | ... | @@ -37,11 +37,26 @@ Few extra notes: |
|
|
* Windows: you need MS Visual Studio with all the required workloads installed. Please refer to [this](https://github.com/microsoft/vcpkg/blob/master/scripts/azure-pipelines/windows/deploy-visual-studio.ps1) script for details (search for `Workloads`).
|
|
|
* for any additional required package that needs to be installed by hand, vcpkg will warn (but not fail) about it at the compilation time, so pay attention to its messages in terminal/console.
|
|
|
|
|
|
## Choosing the right triplet
|
|
|
|
|
|
Triplet is a standard term used in cross compiling as a way to completely capture the target environment (cpu, os, compiler, runtime, etc) in a single convenient name.
|
|
|
|
|
|
vcpkg supports several of them officially, which means all of the ports are undergoing CI/CD.
|
|
|
Additionally, several community triplets are provided. See. `./vcpkg help triplet` for a complete list.
|
|
|
|
|
|
[Neither macOS nor Linux](https://vcpkg.io/en/docs/examples/overlay-triplets-linux-dynamic.html) currently have _official_ *dynamic* build support, and so the default triplets – `x64-osx` and `x64-linux`, respectively – default to *static* linkage.
|
|
|
|
|
|
On the other hand, Windows triplets – e.g. `x64-windows` – default to *shared* linkage.
|
|
|
|
|
|
This means that, depending on the platform you will be working on, a default triplet used will cause different linkage, which in effect will require different set of CMake parameters to be passed when compiling KMyMoney. Refer to the [switches](Compilation#cmake-switches) section for details on that.
|
|
|
|
|
|
|
|
|
## Setting-up your dev environment
|
|
|
|
|
|
Simply enable an additional switch in your CMake command:\
|
|
|
`-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake`
|
|
|
|
|
|
|
|
|
Refer to [Using vcpkg with CMake](https://github.com/microsoft/vcpkg#using-vcpkg-with-cmake) guide on project's website for more details, as well as [CMake integration](https://github.com/microsoft/vcpkg/blob/master/docs/users/integration.md#cmake-integration) section of the documentation. Additional vcpkg CMake switches are documented [here](https://github.com/microsoft/vcpkg/blob/master/docs/users/manifests.md#cmake-integration).
|
|
|
|
|
|
## Compiling the dependencies
|
... | ... | |