changed the include strategy from subdir to direct
This commit is contained in:
parent
a1ed60bfd7
commit
9dabf9b2a1
17 changed files with 48 additions and 63 deletions
|
@ -8,14 +8,17 @@
|
|||
!isEmpty(Qt_GMP_LIB):error("GMP.pri already included")
|
||||
Qt_GMP_LIB = 1
|
||||
|
||||
#DEPENDS
|
||||
CONFIG(release, debug|release): {
|
||||
MINIGMP_LIBRARY_OUTPUT_DIR="$$PWD/build/release"
|
||||
} else {
|
||||
MINIGMP_LIBRARY_OUTPUT_DIR="$$PWD/build/debug"
|
||||
}
|
||||
unix:LIBS += -L$$MINIGMP_LIBRARY_OUTPUT_DIR -lQtBigInt
|
||||
DEFINES += MINIGMP_LIBRARY
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
win32:LIBS += -L$$MINIGMP_LIBRARY_OUTPUT_DIR -lQtBigInt
|
||||
HEADERS += \
|
||||
$$PWD/bigint.h \
|
||||
$$PWD/mini-gmp.h \
|
||||
$$PWD/minigmp_global.h
|
||||
|
||||
INCLUDEPATH += "$$PWD"
|
||||
SOURCES += \
|
||||
$$PWD/bigint.cpp \
|
||||
$$PWD/mini-gmp.c
|
||||
|
||||
|
||||
INCLUDEPATH += $$PWD
|
|
@ -8,17 +8,17 @@
|
|||
!isEmpty(Qt_SECRET_LIB):error("Qt-Secret.pri already included")
|
||||
Qt_SECRET_LIB = 1
|
||||
|
||||
#DEPENDS
|
||||
CONFIG(release, debug|release): {
|
||||
Qt_SECRET_LIB_OUTPUT_DIR="$$PWD/build/release"
|
||||
} else {
|
||||
Qt_SECRET_LIB_OUTPUT_DIR="$$PWD/build/debug"
|
||||
}
|
||||
DEFINES += Qt_SECRET_LIBRARY
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
unix:LIBS += -L$$Qt_SECRET_LIB_OUTPUT_DIR -lQt-Secret
|
||||
HEADERS += \
|
||||
$$PWD/qtsecret_global.h \
|
||||
$$PWD/Qt-RSA/qrsaencryption.h
|
||||
|
||||
win32:LIBS += -L$$Qt_SECRET_LIB_OUTPUT_DIR -lQt-Secret1
|
||||
SOURCES += \
|
||||
$$PWD/Qt-RSA/qrsaencryption.cpp
|
||||
|
||||
INCLUDEPATH += "$$PWD/Qt-RSA"
|
||||
|
||||
INCLUDEPATH += $$PWD $$PWD/Qt-RSA
|
||||
|
||||
include($$PWD/GMP/GMP.pri)
|
|
@ -5,12 +5,32 @@
|
|||
# of this license document, but changing it is not allowed.
|
||||
#
|
||||
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
QT -= gui
|
||||
CONFIG += c++11
|
||||
|
||||
SUBDIRS += \
|
||||
GMP \
|
||||
src
|
||||
TARGET = Qt-Secret
|
||||
TEMPLATE = lib
|
||||
|
||||
GMP.file = src/GMP/GMP.pro
|
||||
src.file = src/Qt-Secret.pro
|
||||
DEFINES += Qt_SECRET_LIBRARY
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
#DEPENDS
|
||||
CONFIG(release, debug|release): {
|
||||
DESTDIR="$$PWD/build/release"
|
||||
} else {
|
||||
DESTDIR="$$PWD/build/debug"
|
||||
}
|
||||
|
||||
include($$PWD/GMP/GMP.pri)
|
||||
|
||||
VERSION = 1.2.0
|
||||
|
||||
HEADERS += \
|
||||
qtsecret_global.h \
|
||||
Qt-RSA/qrsaencryption.h
|
||||
|
||||
SOURCES += \
|
||||
Qt-RSA/qrsaencryption.cpp
|
||||
|
||||
target.path = /usr/local/lib
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
|
|
1
Qt-Secret/src/.gitignore
vendored
1
Qt-Secret/src/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
/build/
|
1
Qt-Secret/src/GMP/.gitignore
vendored
1
Qt-Secret/src/GMP/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
/build/
|
|
@ -1,36 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2018-2019 QuasarApp.
|
||||
# Distributed under the lgplv3 software license, see the accompanying
|
||||
# Everyone is permitted to copy and distribute verbatim copies
|
||||
# of this license document, but changing it is not allowed.
|
||||
#
|
||||
|
||||
QT -= gui
|
||||
CONFIG += c++11
|
||||
|
||||
TARGET = Qt-Secret
|
||||
TEMPLATE = lib
|
||||
|
||||
DEFINES += Qt_SECRET_LIBRARY
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
#DEPENDS
|
||||
CONFIG(release, debug|release): {
|
||||
DESTDIR="$$PWD/build/release"
|
||||
} else {
|
||||
DESTDIR="$$PWD/build/debug"
|
||||
}
|
||||
|
||||
include($$PWD/GMP/GMP.pri)
|
||||
|
||||
VERSION = 1.2.0
|
||||
|
||||
HEADERS += \
|
||||
qtsecret_global.h \
|
||||
Qt-RSA/qrsaencryption.h
|
||||
|
||||
SOURCES += \
|
||||
Qt-RSA/qrsaencryption.cpp
|
||||
|
||||
target.path = /usr/local/lib
|
||||
!isEmpty(target.path): INSTALLS += target
|
Reference in a new issue