passwordfile/passwordfile.pro

89 lines
2.3 KiB
Prolog
Raw Normal View History

2015-04-22 19:06:29 +02:00
projectname = passwordfile
2015-09-22 01:59:16 +02:00
appname = "Passwordfile library"
appauthor = Martchus
QMAKE_TARGET_DESCRIPTION = "C++ library to read/write passwords from/to encrypted files."
2016-01-05 17:15:47 +01:00
VERSION = 3.1.1
2015-04-22 19:06:29 +02:00
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
!include(../../common.pri) {
!include(./general.pri) {
error("Couldn't find the common.pri or the general.pri file!")
}
}
TEMPLATE = lib
CONFIG -= qt
2015-08-26 21:12:09 +02:00
CONFIG += shared
2015-04-22 19:06:29 +02:00
# files
SOURCES += aes/aes.cpp \
io/cryptoexception.cpp \
io/entry.cpp \
io/field.cpp \
io/parsingexception.cpp \
io/passwordfile.cpp \
util/opensslrandomdevice.cpp \
util/openssl.cpp
HEADERS += aes/aes.h \
io/cryptoexception.h \
io/entry.h \
io/field.h \
io/parsingexception.h \
io/passwordfile.h \
util/opensslrandomdevice.h \
util/openssl.h
OTHER_FILES += \
2015-06-08 22:09:37 +02:00
README.md \
2015-12-08 08:36:00 +01:00
LICENSE \
CMakeLists.txt \
config.h.in
2015-04-22 19:06:29 +02:00
# libs and includepath
CONFIG(debug, debug|release) {
2015-08-26 21:12:09 +02:00
LIBS += -lc++utilitiesd
2015-04-22 19:06:29 +02:00
} else {
2015-08-26 21:12:09 +02:00
LIBS += -lc++utilities
2015-04-22 19:06:29 +02:00
}
2015-08-26 21:12:09 +02:00
# TODO: remove build environment specific paths
2015-04-22 19:06:29 +02:00
win32 {
contains(QMAKE_TARGET.arch, x86_64):{
LIBS += -L../../../openssl-mingw_amd64/lib/ -lcrypto
INCLUDEPATH += ../../../build/openssl-mingw_amd64/include
} else {
LIBS += -L../../../openssl-mingw_i386/lib/ -lcrypto
INCLUDEPATH += ../../../build/openssl-mingw_i386/include
}
} else {
android {
LIBS += -L/opt/android-openssl/usr/lib/ -lcrypto
INCLUDEPATH += /opt/android-openssl/usr/include
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
ANDROID_EXTRA_LIBS = /opt/android-openssl/usr/lib/libcrypto.so
} else {
LIBS += -lcrypto
}
}
LIBS += -lz
# installs
2015-07-18 00:41:58 +02:00
mingw-w64-install {
target.path = $$(INSTALL_ROOT)
target.extra = install -m755 -D $${OUT_PWD}/release/lib$(TARGET).a $$(INSTALL_ROOT)/lib/lib$(TARGET).a
INSTALLS += target
dlltarget.path = $$(INSTALL_ROOT)
dlltarget.extra = install -m755 -D $${OUT_PWD}/release/$(TARGET) $$(INSTALL_ROOT)/bin/$(TARGET)
INSTALLS += dlltarget
} else {
2015-04-22 19:06:29 +02:00
target.path = $$(INSTALL_ROOT)/lib
INSTALLS += target
2015-07-18 00:41:58 +02:00
}
for(dir, $$list(io util)) {
eval(inc_$${dir} = $${dir})
inc_$${dir}.path = $$(INSTALL_ROOT)/include/$$projectname/$${dir}
inc_$${dir}.files = $${dir}/*.h
INSTALLS += inc_$${dir}
2015-04-22 19:06:29 +02:00
}