Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Compiling-on-Windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ powershell -ExecutionPolicy ByPass -File win32\setup-wix.ps1
Install dependencies via vcpkg:

```powershell
$env:VCPKG_INSTALLED = "vcpkg_installed"
$env:VCPKG_DEFAULT_TRIPLET = "x64-windows-static"
$env:VCPKG_INSTALLED = "$PWD\vcpkg_installed"
vcpkg install `
--overlay-ports win32/ports `
--triplet x64-windows-static `
--x-feature=zlib `
--x-feature=openpace `
--x-feature=tests `
--x-manifest-root win32 `
--x-install-root $env:VCPKG_INSTALLED
```

Omit --x-feature flags for features you don't need or skip this step if you do not need OpenSSL.
The `tests` feature installs cmocka, which enables building the unit tests.

## Build OpenSC

Expand All @@ -36,6 +38,14 @@ Open a Visual Studio _Developer Command Prompt_ and change to the OpenSC directo
nmake /f Makefile.mak OpenSC.msi
```

## Run Unit Tests

Requires the `tests` vcpkg feature. Build and run the unit tests:

```powershell
nmake /f Makefile.mak check
```

## Code Signing

Free code signing provided by [SignPath.io](https://about.signpath.io), certificate by [SignPath](https://signpath.org/) Foundation.
Loading