mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Migrate the build system to cmake
This commit is contained in:
41
third_party/QsLog/QsLog.pri
vendored
41
third_party/QsLog/QsLog.pri
vendored
@ -1,41 +0,0 @@
|
||||
INCLUDEPATH += $$PWD
|
||||
#DEFINES += QS_LOG_LINE_NUMBERS # automatically writes the file and line for each log message
|
||||
#DEFINES += QS_LOG_DISABLE # logging code is replaced with a no-op
|
||||
DEFINES += QS_LOG_SEPARATE_THREAD # messages are queued and written from a separate thread
|
||||
#DEFINES += QS_LOG_WIN_PRINTF_CONSOLE # Use fprintf instead of OutputDebugString on Windows
|
||||
#DEFINES += QS_LOG_WINDOW # allows easily showing log messages in a UI
|
||||
|
||||
contains(DEFINES, QS_LOG_WINDOW) {
|
||||
message("Will include log window destination")
|
||||
QT += gui
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
SOURCES += $$PWD/QsLogWindow.cpp \
|
||||
$$PWD/QsLogWindowModel.cpp
|
||||
HEADERS += $$PWD/QsLogWindow.h \
|
||||
$$PWD/QsLogWindowModel.h
|
||||
FORMS += $$PWD/QsLogWindow.ui
|
||||
RESOURCES += $$PWD/QsLogWindow.qrc
|
||||
}
|
||||
|
||||
SOURCES += $$PWD/QsLogDest.cpp \
|
||||
$$PWD/QsLog.cpp \
|
||||
$$PWD/QsLogDestConsole.cpp \
|
||||
$$PWD/QsLogDestFile.cpp \
|
||||
$$PWD/QsLogDestFunctor.cpp \
|
||||
$$PWD/QsLogMessage.cpp \
|
||||
$$PWD/QsLogLevel.cpp
|
||||
|
||||
HEADERS += $$PWD/QsLogDest.h \
|
||||
$$PWD/QsLog.h \
|
||||
$$PWD/QsLogDestConsole.h \
|
||||
$$PWD/QsLogLevel.h \
|
||||
$$PWD/QsLogDestFile.h \
|
||||
$$PWD/QsLogDisableForThisFile.h \
|
||||
$$PWD/QsLogDestFunctor.h \
|
||||
$$PWD/QsLogMessage.h \
|
||||
$$PWD/QsLogSharedLibrary.h
|
||||
|
||||
OTHER_FILES += \
|
||||
$$PWD/QsLogChanges.txt \
|
||||
$$PWD/README.md \
|
||||
$$PWD/LICENSE.txt
|
||||
46
third_party/QsLog/QsLogSharedLibrary.pro
vendored
46
third_party/QsLog/QsLogSharedLibrary.pro
vendored
@ -1,46 +0,0 @@
|
||||
# This pro file will build QsLog as a shared library
|
||||
TARGET = QsLog
|
||||
VERSION = "2.1.0"
|
||||
QT -= gui
|
||||
CONFIG -= console
|
||||
CONFIG -= app_bundle
|
||||
CONFIG += shared
|
||||
CONFIG += c++11
|
||||
TEMPLATE = lib
|
||||
|
||||
QSLOG_DESTDIR=$$(QSLOG_DESTDIR)
|
||||
!isEmpty(QSLOG_DESTDIR) {
|
||||
message(Will use $${QSLOG_DESTDIR} as destdir.)
|
||||
DESTDIR = $${QSLOG_DESTDIR}/bin
|
||||
OBJECTS_DIR = $${QSLOG_DESTDIR}
|
||||
MOC_DIR = $${QSLOG_DESTDIR}
|
||||
UI_DIR = $${QSLOG_DESTDIR}
|
||||
RCC_DIR = $${QSLOG_DESTDIR}
|
||||
}
|
||||
|
||||
win32 {
|
||||
DEFINES += QSLOG_IS_SHARED_LIBRARY
|
||||
}
|
||||
|
||||
include(QsLog.pri)
|
||||
|
||||
unix:!macx {
|
||||
DISTRO = $$system(uname -a)
|
||||
|
||||
# make install will install the shared object in the appropriate folders
|
||||
headers.files = QsLog.h QsLogDest.h QsLogLevel.h
|
||||
headers.path = /usr/include/$(QMAKE_TARGET)
|
||||
|
||||
other_files.files = LICENSE.txt QsLogChanges.txt README.md
|
||||
other_files.path = /usr/local/share/$(QMAKE_TARGET)
|
||||
contains(DISTRO, .*ARCH): other_files.path = /usr/share/$(QMAKE_TARGET)
|
||||
|
||||
contains(QT_ARCH, x86_64) {
|
||||
target.path = /usr/lib64
|
||||
contains(DISTRO, .*ARCH): target.path = /usr/lib
|
||||
} else {
|
||||
target.path = /usr/lib
|
||||
}
|
||||
|
||||
INSTALLS += headers target other_files
|
||||
}
|
||||
29
third_party/QsLog/unittest/unittest.pro
vendored
29
third_party/QsLog/unittest/unittest.pro
vendored
@ -1,29 +0,0 @@
|
||||
QT += core
|
||||
|
||||
TARGET = QsLogUnitTest
|
||||
CONFIG += console qtestlib c++11
|
||||
CONFIG -= app_bundle
|
||||
TEMPLATE = app
|
||||
|
||||
# optionally enable address sanitizer
|
||||
linux-g++|macx {
|
||||
QMAKE_CXXFLAGS += -fsanitize=address
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
|
||||
# test-case sources
|
||||
SOURCES += TestLog.cpp
|
||||
|
||||
HEADERS += TestLog.h
|
||||
|
||||
# component sources
|
||||
include(../QsLog.pri)
|
||||
|
||||
SOURCES += \
|
||||
./QtTestUtil/TestRegistry.cpp \
|
||||
./QtTestUtil/SimpleChecker.cpp
|
||||
|
||||
HEADERS += \
|
||||
./QtTestUtil/TestRegistry.h \
|
||||
./QtTestUtil/TestRegistration.h \
|
||||
./QtTestUtil/QtTestUtil.h
|
||||
Reference in New Issue
Block a user