Commit c09f17cf authored by Oleg Korshul's avatar Oleg Korshul

.

parent ce73dd59
...@@ -11,18 +11,7 @@ TEMPLATE = lib ...@@ -11,18 +11,7 @@ TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -Wall -g QMAKE_CXXFLAGS += -Wall -g
DEFINES += \ CONFIG += core_static_link_xml_full
LIBXML_READER_ENABLED \
LIBXML_PUSH_ENABLED \
LIBXML_HTML_ENABLED \
LIBXML_XPATH_ENABLED \
LIBXML_OUTPUT_ENABLED \
LIBXML_C14N_ENABLED \
LIBXML_SAX1_ENABLED \
LIBXML_TREE_ENABLED \
LIBXML_XPTR_ENABLED \
IN_LIBXML \
LIBXML_STATIC
CORE_ROOT_DIR = $$PWD/../../../.. CORE_ROOT_DIR = $$PWD/../../../..
PWD_ROOT_DIR = $$PWD PWD_ROOT_DIR = $$PWD
......
...@@ -19,7 +19,8 @@ PWD_ROOT_DIR = $$PWD ...@@ -19,7 +19,8 @@ PWD_ROOT_DIR = $$PWD
include($$CORE_ROOT_DIR/Common/base.pri) include($$CORE_ROOT_DIR/Common/base.pri)
INCLUDEPATH += \ INCLUDEPATH += \
$$PWD_ROOT_DIR/xmlsec/include $$PWD_ROOT_DIR/xmlsec/include \
$$CORE_ROOT_DIR/DesktopEditor/xml/build/qt
DEFINES += \ DEFINES += \
LIBXML_READER_ENABLED \ LIBXML_READER_ENABLED \
...@@ -38,15 +39,15 @@ include($$CORE_ROOT_DIR/DesktopEditor/xml/build/qt/libxml2_src.pri) ...@@ -38,15 +39,15 @@ include($$CORE_ROOT_DIR/DesktopEditor/xml/build/qt/libxml2_src.pri)
DEFINES += PACKAGE=\\\"xmlsec1\\\" DEFINES += PACKAGE=\\\"xmlsec1\\\"
DEFINES += VERSION=\\\"1.2.23\\\" DEFINES += VERSION=\\\"1.2.23\\\"
DEFINES += XMLSEC_DEFAULT_CRYPTO=\\\"mscrypto\\\" DEFINES += XMLSEC_DEFAULT_CRYPTO=\\\"openssl\\\"
DEFINES += \ DEFINES += \
IN_XMLSEC \ IN_XMLSEC \
XMLSEC_STATIC XMLSEC_STATIC
core_linux { core_linux {
CONFIG += use_gcrypt #CONFIG += use_gcrypt
CONFIG += use_gnutls #CONFIG += use_gnutls
#CONFIG += use_mscrypto #CONFIG += use_mscrypto
#CONFIG += use_nss #CONFIG += use_nss
CONFIG += use_openssl CONFIG += use_openssl
...@@ -246,6 +247,10 @@ SOURCES += \ ...@@ -246,6 +247,10 @@ SOURCES += \
use_openssl { use_openssl {
DEFINES += XMLSEC_OPENSSL_110
INCLUDEPATH += $$PWD/openssl/include
HEADERS += \ HEADERS += \
xmlsec/include/xmlsec/openssl/app.h \ xmlsec/include/xmlsec/openssl/app.h \
xmlsec/include/xmlsec/openssl/bn.h \ xmlsec/include/xmlsec/openssl/bn.h \
...@@ -258,21 +263,21 @@ HEADERS += \ ...@@ -258,21 +263,21 @@ HEADERS += \
xmlsec/src/openssl/openssl11_wrapper.h xmlsec/src/openssl/openssl11_wrapper.h
SOURCES += \ SOURCES += \
xmlsec/src/openssl/app.c \ xmlsec/src/openssl/_app.c \
xmlsec/src/openssl/bn.c \ xmlsec/src/openssl/_bn.c \
xmlsec/src/openssl/ciphers.c \ xmlsec/src/openssl/_ciphers.c \
xmlsec/src/openssl/crypto.c \ xmlsec/src/openssl/_crypto.c \
xmlsec/src/openssl/digests.c \ xmlsec/src/openssl/_digests.c \
xmlsec/src/openssl/evp.c \ xmlsec/src/openssl/_evp.c \
xmlsec/src/openssl/evp_signatures.c \ xmlsec/src/openssl/_evp_signatures.c \
xmlsec/src/openssl/hmac.c \ xmlsec/src/openssl/_hmac.c \
xmlsec/src/openssl/kt_rsa.c \ xmlsec/src/openssl/_kt_rsa.c \
xmlsec/src/openssl/kw_aes.c \ xmlsec/src/openssl/_kw_aes.c \
xmlsec/src/openssl/kw_des.c \ xmlsec/src/openssl/_kw_des.c \
xmlsec/src/openssl/signatures.c \ xmlsec/src/openssl/_signatures.c \
xmlsec/src/openssl/symkeys.c \ xmlsec/src/openssl/_symkeys.c \
xmlsec/src/openssl/x509.c \ xmlsec/src/openssl/_x509.c \
xmlsec/src/openssl/x509vfy.c xmlsec/src/openssl/_x509vfy.c
} }
......
...@@ -15,7 +15,7 @@ PWD_ROOT_DIR = $$PWD ...@@ -15,7 +15,7 @@ PWD_ROOT_DIR = $$PWD
include($$CORE_ROOT_DIR/Common/base.pri) include($$CORE_ROOT_DIR/Common/base.pri)
#DEFINES += XMLSEC_CRYPTO_DYNAMIC_LOADING #DEFINES += XMLSEC_CRYPTO_DYNAMIC_LOADING
DEFINES += XMLSEC_CRYPTO_MSCRYPTO DEFINES += XMLSEC_CRYPTO_OPENSSL
INCLUDEPATH += \ INCLUDEPATH += \
$$CORE_ROOT_DIR/DesktopEditor/xml/libxml2/include \ $$CORE_ROOT_DIR/DesktopEditor/xml/libxml2/include \
...@@ -40,8 +40,8 @@ DEFINES += XMLSEC_STATIC ...@@ -40,8 +40,8 @@ DEFINES += XMLSEC_STATIC
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -llibxmlsec LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -llibxmlsec
LIBS += -lcrypt32 LIBS += -L$$PWD/../../openssl -lcrypto -lssl
LIBS += -lcryptui
LIBS += -lAdvapi32 LIBS += -ldl
SOURCES += main.cpp SOURCES += main.cpp
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment