mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
4876a0ea3b
Restructure and document retroshare.pri variables and helper functions Link sqlite statically like other libraries on Android qmake has multiple win32-* specs match them correctly Move a buch of generic thing to retroshare.pri instead of having them replocated accross project specific .pro Fix retroshare-gui too many symbols exported on windows liking error by adding QMAKE_LFLAGS+=-Wl,--exclude-libs,ALL Rename retroshare-gui/src/util/win32.h because the name is too prone to confusion and build conflicts libreasapi avoid usage of cretar_prl link_prl that seems unreliable on some platforms libreasapi rename LIBRESAPI_QT to more understendable LIBRESAPI_SETTINGS Use use_*.pri instead of copy pasting error prone qmake snippets around Expose bitdht option to retroshare.pri Add RS_THREAD_LIB qmake variable for better crossplatform support Move debug and profiling generic options to retroshare.pri (avoid copy/pasting) Remove Qt script module in qmake as it is not available anymore
142 lines
4.3 KiB
Prolog
142 lines
4.3 KiB
Prolog
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
|
|
|
TEMPLATE = lib
|
|
CONFIG += staticlib
|
|
|
|
DEFINES *= OPENSSL_NO_IDEA
|
|
|
|
QMAKE_CXXFLAGS *= -Wall -Werror -W
|
|
|
|
TARGET = ops
|
|
DESTDIR = lib
|
|
|
|
!include(use_openpgpsdk.pri):error("Including")
|
|
|
|
#################################### Windows #####################################
|
|
|
|
linux-* {
|
|
OBJECTS_DIR = temp/linux/obj
|
|
}
|
|
|
|
win32-g++ {
|
|
|
|
HEADERS += openpgpsdk/opsstring.h
|
|
SOURCES += openpgpsdk/opsstring.c
|
|
|
|
DEFINES *= WIN32_LEAN_AND_MEAN _USE_32BIT_TIME_T
|
|
|
|
# Switch off optimization for release version
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
QMAKE_CXXFLAGS_RELEASE += -O0
|
|
QMAKE_CFLAGS_RELEASE -= -O2
|
|
QMAKE_CFLAGS_RELEASE += -O0
|
|
|
|
mLibs = bz2 z ssl crypto
|
|
static {
|
|
LIBS += $$linkStaticLibs(mLibs)
|
|
PRE_TARGETDEPS += $$pretargetStaticLibs(mLibs)
|
|
} else {
|
|
LIBS += $$linkDynamicLibs(mLibs)
|
|
}
|
|
}
|
|
|
|
|
|
macx {
|
|
for(lib, LIB_DIR):LIBS += -L"$$lib"
|
|
for(bin, BIN_DIR):LIBS += -L"$$bin"
|
|
DEFINES += OPENSSL_NO_CAMELLIA
|
|
}
|
|
|
|
# Input
|
|
HEADERS += openpgpsdk/writer.h \
|
|
openpgpsdk/writer_armoured.h \
|
|
openpgpsdk/version.h \
|
|
openpgpsdk/validate.h \
|
|
openpgpsdk/util.h \
|
|
openpgpsdk/types.h \
|
|
openpgpsdk/streamwriter.h \
|
|
openpgpsdk/std_print.h \
|
|
openpgpsdk/signature.h \
|
|
openpgpsdk/readerwriter.h \
|
|
openpgpsdk/random.h \
|
|
openpgpsdk/partial.h \
|
|
openpgpsdk/packet-show.h \
|
|
openpgpsdk/packet-show-cast.h \
|
|
openpgpsdk/packet-parse.h \
|
|
openpgpsdk/packet.h \
|
|
openpgpsdk/memory.h \
|
|
openpgpsdk/literal.h \
|
|
openpgpsdk/lists.h \
|
|
openpgpsdk/keyring.h \
|
|
openpgpsdk/hash.h \
|
|
openpgpsdk/final.h \
|
|
openpgpsdk/defs.h \
|
|
openpgpsdk/errors.h \
|
|
openpgpsdk/crypto.h \
|
|
openpgpsdk/create.h \
|
|
openpgpsdk/configure.h \
|
|
openpgpsdk/compress.h \
|
|
openpgpsdk/callback.h \
|
|
openpgpsdk/accumulate.h \
|
|
openpgpsdk/armour.h \
|
|
openpgpsdk/parse_local.h \
|
|
openpgpsdk/keyring_local.h \
|
|
openpgpsdk/opsdir.h
|
|
|
|
SOURCES += openpgpsdk/accumulate.c \
|
|
openpgpsdk/compress.c \
|
|
openpgpsdk/create.c \
|
|
openpgpsdk/crypto.c \
|
|
openpgpsdk/errors.c \
|
|
openpgpsdk/fingerprint.c \
|
|
openpgpsdk/hash.c \
|
|
openpgpsdk/keyring.c \
|
|
openpgpsdk/lists.c \
|
|
openpgpsdk/memory.c \
|
|
openpgpsdk/openssl_crypto.c \
|
|
openpgpsdk/packet-parse.c \
|
|
openpgpsdk/packet-print.c \
|
|
openpgpsdk/packet-show.c \
|
|
openpgpsdk/random.c \
|
|
openpgpsdk/reader.c \
|
|
openpgpsdk/reader_armoured.c \
|
|
openpgpsdk/reader_encrypted_se.c \
|
|
openpgpsdk/reader_encrypted_seip.c \
|
|
openpgpsdk/reader_fd.c \
|
|
openpgpsdk/reader_hashed.c \
|
|
openpgpsdk/reader_mem.c \
|
|
openpgpsdk/readerwriter.c \
|
|
openpgpsdk/signature.c \
|
|
openpgpsdk/symmetric.c \
|
|
openpgpsdk/util.c \
|
|
openpgpsdk/validate.c \
|
|
openpgpsdk/writer.c \
|
|
openpgpsdk/writer_armour.c \
|
|
openpgpsdk/writer_partial.c \
|
|
openpgpsdk/writer_literal.c \
|
|
openpgpsdk/writer_encrypt.c \
|
|
openpgpsdk/writer_encrypt_se_ip.c \
|
|
openpgpsdk/writer_fd.c \
|
|
openpgpsdk/writer_memory.c \
|
|
openpgpsdk/writer_skey_checksum.c \
|
|
openpgpsdk/writer_stream_encrypt_se_ip.c \
|
|
openpgpsdk/opsdir.c
|
|
|
|
|
|
################################# Android #####################################
|
|
|
|
android-* {
|
|
|
|
## Add this here because static library are very sensible to order in
|
|
## command line
|
|
LIBS += -L$$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/lib/ -lssl
|
|
INCLUDEPATH += $$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/include
|
|
DEPENDPATH += $$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/include
|
|
PRE_TARGETDEPS += $$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/lib/libssl.a
|
|
|
|
LIBS += -L$$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/lib/ -lcrypto
|
|
INCLUDEPATH += $$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/include
|
|
DEPENDPATH += $$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/include
|
|
PRE_TARGETDEPS += $$NATIVE_LIBS_TOOLCHAIN_PATH/sysroot/usr/lib/libcrypto.a
|
|
}
|