]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Visual Studio HOWTO
authorDmitry Belyavskiy <beldmit@gmail.com>
Thu, 23 Nov 2017 19:18:42 +0000 (22:18 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Thu, 23 Nov 2017 19:18:42 +0000 (22:18 +0300)
INSTALL.md
READMEWIN.txt [new file with mode: 0644]

index 007d9e19d49be27dd3c8a9e1a4985535b0c72aaf..85b4c3000c420de0e5943c136a6b4bbd98005469 100644 (file)
@@ -26,6 +26,8 @@ shared libraries of the desirable OpenSSL instance
 
     $ cmake -DCMAKE_C_FLAGS='-I/PATH/TO/OPENSSL/include -L/PATH/TO/OPENSSL/lib' ..
 
+If you use Visual Studio, see READMEWIN.txt for details.
+
 How to Install
 --------------
 
@@ -119,4 +121,4 @@ Value of this parameter can be either short name, defined in OpenSSL
 `obj_dat.h` header file or numeric representation of OID, defined in
 [RFC 4357][1].
 
-[1]:https://tools.ietf.org/html/rfc4357 "RFC 4357"
\ No newline at end of file
+[1]:https://tools.ietf.org/html/rfc4357 "RFC 4357"
diff --git a/READMEWIN.txt b/READMEWIN.txt
new file mode 100644 (file)
index 0000000..c2023d7
--- /dev/null
@@ -0,0 +1,43 @@
+It can be build via Visual Studio.
+
+1. Clone repository
+C:
+cd /projects/openssl/out32
+git clone git@github.com:gost-engine/engine.git
+
+2. Add to CMakeLists.txt references to OpenSSL
+
+ include_directories("C:/projects/openssl/out32/openssl-x86-shared-release-vs2015/include")
+
+link_libraries("C:/projects/openssl/out32/openssl-x86-shared-release-vs2015/lib/libcrypto.lib", "C:/projects/openssl/out32/openssl-x86-shared-release-vs2015/lib/libssl.lib")
+
+3. At CMakeLists.txt replace rows
+
+add_library(gost STATIC ${GOST_LIB_SOURCE_FILES})
+set_target_properties(gost PROPERTIES POSITION_INDEPENDENT_CODE ON)
+target_link_libraries(gost_engine gost)
+target_link_libraries(gost12sum gost)
+target_link_libraries(gostsum gost)
+
+with
+
+add_library(libgost STATIC ${GOST_LIB_SOURCE_FILES})
+set_target_properties(libgost PROPERTIES POSITION_INDEPENDENT_CODE ON)
+target_link_libraries(gost_engine libgost)
+target_link_libraries(gost12sum libgost)
+target_link_libraries(gostsum libgost)
+
+4. Generate project for Visual Studio 14 (2015)
+
+cd /projects/openssl/tmp32
+mkdir engine
+cd engine
+cmake -G "Visual Studio 14" --build /projects/openssl/out32/engine
+In gost_engine.vcxproj replace
+;,.lib; to ;
+
+5. Open solution ccgost.sln into Visual Studio, select configuration Release and build solution.
+
+6. Use C:\projects\openssl\out32\engine\bin\Release\gost.dll
+
+