Skip to content

Commit 6ac67f3

Browse files
committed
Updated Compiling on Windows (markdown)
1 parent 6ab054d commit 6ac67f3

File tree

1 file changed

+1
-51
lines changed

1 file changed

+1
-51
lines changed

Compiling-on-Windows.md

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## Build Requirements
44

55
* New Microsoft's [Cryptographic Provider Development Kit](https://www.microsoft.com/en-us/download/details.aspx?id=30688)
6-
* [WiX Toolset](http://wixtoolset.org/)
76
* [OpenSSL](https://www.openssl.org/) (optional)
87
* [OpenPACE](https://frankmorgner.github.io/openpace/) (optional)
98
* [zlib](https://zlib.net/) (optional)
@@ -47,24 +46,6 @@ Compile the library for 64 bit:
4746
nmake -f win32/Makefile.msc AS=ml64 LOC="-DASMV -DASMINF -I." OBJA="inffasx64.obj gvmat64.obj inffas8664.obj" zlib.lib
4847
```
4948

50-
### CPDK
51-
52-
When the new CPDK is used, you shall update the Include path:
53-
54-
```diff
55-
--- a/win32/Make.rules.mak
56-
+++ b/win32/Make.rules.mak
57-
@@ -131,7 +131,7 @@ CANDLEFLAGS = -dOpenPACE="$(OPENPACE_DIR)" $(CANDLEFLAGS)
58-
59-
60-
# Used for MiniDriver
61-
-CNGSDK_INCL_DIR = "/IC:\Program Files (x86)\Microsoft CNG Development Kit\Include"
62-
+CNGSDK_INCL_DIR = "/IC:\Program Files (x86)\Windows Kits\10\Cryptographic Provider Development Kit\Include"
63-
!IF "$(PROCESSOR_ARCHITECTURE)" == "x86" && "$(PROCESSOR_ARCHITEW6432)" == ""
64-
CNGSDK_INCL_DIR = "/IC:\Program Files\Microsoft CNG Development Kit\Include"
65-
!ENDIF</code></pre>
66-
```
67-
6849
## Build Configuration
6950

7051
### Edit `Make.rules.mak`
@@ -76,44 +57,13 @@ Change `win32/Make.rules.mak` according to your desired build configuration. Spe
7657
* `OPENPACE_DEF` and `OPENPACE_DIR` for OpenPACE
7758
* `ZLIBSTATIC_DEF`, `ZLIB_LIB` and `ZLIB_INCL_DIR` for zlib
7859

79-
### Creation of Build Source Files
80-
81-
#### Creating Built Source Files Using Autoconf
82-
83-
Use [Cygwin](https://cygwin.com/install.html) or [MSYS2](http://www.msys2.org/) to install
84-
85-
* autoconf
86-
* automake
87-
* libtool
88-
* make
89-
* gcc or mingw-w64 (will not be used for build)
90-
* pkg-config
91-
92-
Open a Cygwin/MSYS2 terminal or console and change to the OpenSC directory (the previously installed tools need to be found in the `%PATH%`). Create the built source files:
93-
94-
```powershell
95-
autoreconf -i
96-
./configure --disable-openssl --disable-readline --disable-zlib
97-
make -C etc opensc.conf
98-
cp win32/winconfig.h config.h
99-
```
100-
101-
#### Manually Creating Built Source Files
102-
103-
```powershell
104-
copy win32\OpenSC.wxs.in win32\OpenSC.wxs
105-
copy win32\winconfig.h.in win32\winconfig.h
106-
```
107-
108-
The resulting files still contain strings that are encapsulated in @@@. You need to replace these place holders with meaningful values.
109-
11060
## Build OpenSC
11161

11262
Open a Visual Studio _Developer Command Prompt_ and change to the OpenSC directory. Build the OpenSC binaries and installer:
11363

11464
```powershell
11565
nmake /f Makefile.mak
116-
cd win32
66+
powershell -ExecutionPolicy ByPass -File .github\setup-wix.ps1
11767
nmake /f Makefile.mak OpenSC.msi
11868
```
11969

0 commit comments

Comments
 (0)