mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Add test for all systems
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
#include "../../Common/OfficeFileFormatChecker.h"
|
||||
#include "../../DesktopEditor/common/File.h"
|
||||
|
||||
#ifndef _QT
|
||||
|
||||
#if defined(_WIN64)
|
||||
#pragma comment(lib, "../../build/bin/icu/win_64/icuuc.lib")
|
||||
#elif defined (_WIN32)
|
||||
@ -20,6 +22,8 @@
|
||||
#pragma comment(lib, "../../build/bin/icu/win_32/icuuc.lib")
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
int _tmain(int argc, _TCHAR* argv[])
|
||||
{
|
||||
#define __CRTDBG_MAP_ALLOC
|
||||
|
||||
58
OfficeCryptReader/Test/test.pro
Normal file
58
OfficeCryptReader/Test/test.pro
Normal file
@ -0,0 +1,58 @@
|
||||
TEMPLATE = app
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
CONFIG -= qt
|
||||
|
||||
TARGET = test
|
||||
CORE_ROOT_DIR = $$PWD/../..
|
||||
PWD_ROOT_DIR = $$PWD
|
||||
|
||||
CONFIG += core_static_link_libstd
|
||||
include($$CORE_ROOT_DIR/Common/base.pri)
|
||||
include($$CORE_ROOT_DIR/Common/3dParty/boost/boost.pri)
|
||||
|
||||
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lCryptoPPLib -lCompoundFileLib
|
||||
ADD_DEPENDENCY(UnicodeConverter, kernel)
|
||||
|
||||
include($$CORE_ROOT_DIR/Common/3dParty/icu/icu.pri)
|
||||
|
||||
CONFIG += open_ssl_common
|
||||
include($$CORE_ROOT_DIR/Common/3dParty/openssl/openssl.pri)
|
||||
|
||||
DEFINES += CRYPTOPP_DISABLE_ASM
|
||||
DESTDIR = $$CORE_BUILDS_BINARY_PATH
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/../source/ECMACryptFile.h \
|
||||
$$PWD/../source/CryptTransform.h \
|
||||
$$PWD/../source/simple_xml_writer.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/../source/ECMACryptFile.cpp \
|
||||
$$PWD/../source/CryptTransform.cpp
|
||||
|
||||
SOURCES += \
|
||||
$$CORE_ROOT_DIR/Common/OfficeFileFormatChecker2.cpp \
|
||||
$$CORE_ROOT_DIR/Common/3dParty/pole/pole.cpp \
|
||||
$$CORE_ROOT_DIR/MsBinaryFile/DocFile/MemoryStream.cpp \
|
||||
$$CORE_ROOT_DIR/OOXML/Base/unicode_util.cpp
|
||||
|
||||
SOURCES += $$PWD/Test.cpp
|
||||
DEFINES += _QT
|
||||
|
||||
core_windows {
|
||||
DEFINES -= UNICODE
|
||||
|
||||
LIBS += -lAdvapi32
|
||||
LIBS += -lShell32
|
||||
LIBS += -lGdi32
|
||||
LIBS += -lUser32
|
||||
LIBS += -lcrypt32
|
||||
LIBS += -lcryptui
|
||||
LIBS += -lws2_32
|
||||
}
|
||||
|
||||
core_linux {
|
||||
LIBS += -lz -pthread -ldl
|
||||
QMAKE_LFLAGS += -Wl,--rpath=./
|
||||
}
|
||||
Reference in New Issue
Block a user