2018-11-11 05:21:34 -05:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018, Retroshare team <retroshare.team@gmailcom>
|
|
|
|
# All rights reserved.
|
|
|
|
# Contributors: retroshare team. The Contributors have asserted
|
|
|
|
# their moral rights under the UK Copyright Design and Patents Act 1988 to
|
|
|
|
# be recorded as the authors of this copyright work.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
|
|
# use this file except in compliance with the License.
|
|
|
|
#
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
#
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2018-11-04 09:48:33 -05:00
|
|
|
# #
|
2015-08-31 11:55:30 -04:00
|
|
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
|
|
|
|
2012-03-24 11:58:18 -04:00
|
|
|
TEMPLATE = lib
|
2016-07-16 17:10:00 -04:00
|
|
|
CONFIG += staticlib
|
2012-03-24 11:58:18 -04:00
|
|
|
|
|
|
|
DEFINES *= OPENSSL_NO_IDEA
|
|
|
|
|
2013-10-07 19:11:10 -04:00
|
|
|
QMAKE_CXXFLAGS *= -Wall -Werror -W
|
2012-03-24 11:58:18 -04:00
|
|
|
|
|
|
|
TARGET = ops
|
2012-07-01 09:05:48 -04:00
|
|
|
DESTDIR = lib
|
2018-04-15 07:41:52 -04:00
|
|
|
|
|
|
|
!include(use_openpgpsdk.pri):error("Including")
|
2012-03-24 11:58:18 -04:00
|
|
|
|
2012-06-09 20:29:46 -04:00
|
|
|
#################################### Windows #####################################
|
|
|
|
|
2012-07-01 09:05:48 -04:00
|
|
|
linux-* {
|
|
|
|
OBJECTS_DIR = temp/linux/obj
|
|
|
|
}
|
|
|
|
|
2018-04-15 07:41:52 -04:00
|
|
|
win32-g++ {
|
|
|
|
|
|
|
|
HEADERS += openpgpsdk/opsstring.h
|
|
|
|
SOURCES += openpgpsdk/opsstring.c
|
|
|
|
|
2018-10-07 07:07:22 -04:00
|
|
|
DEFINES *= WIN32_LEAN_AND_MEAN
|
2013-10-07 19:11:10 -04:00
|
|
|
|
2012-08-02 19:25:28 -04:00
|
|
|
# Switch off optimization for release version
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -O0
|
|
|
|
QMAKE_CFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CFLAGS_RELEASE += -O0
|
|
|
|
|
2018-04-15 07:41:52 -04:00
|
|
|
mLibs = bz2 z ssl crypto
|
|
|
|
static {
|
|
|
|
LIBS += $$linkStaticLibs(mLibs)
|
|
|
|
PRE_TARGETDEPS += $$pretargetStaticLibs(mLibs)
|
|
|
|
} else {
|
|
|
|
LIBS += $$linkDynamicLibs(mLibs)
|
|
|
|
}
|
2016-07-16 17:10:00 -04:00
|
|
|
}
|
|
|
|
|
2012-08-02 19:25:28 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
macx {
|
|
|
|
for(lib, LIB_DIR):LIBS += -L"$$lib"
|
|
|
|
for(bin, BIN_DIR):LIBS += -L"$$bin"
|
|
|
|
DEFINES += OPENSSL_NO_CAMELLIA
|
2012-06-09 20:29:46 -04:00
|
|
|
}
|
|
|
|
|
2012-03-24 11:58:18 -04:00
|
|
|
# Input
|
2012-07-01 09:05:48 -04:00
|
|
|
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 \
|
2012-12-03 10:58:44 -05:00
|
|
|
openpgpsdk/keyring_local.h \
|
2016-07-16 17:10:00 -04:00
|
|
|
openpgpsdk/opsdir.h
|
2012-07-01 09:05:48 -04:00
|
|
|
|
|
|
|
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 \
|
2012-12-03 10:58:44 -05:00
|
|
|
openpgpsdk/writer_stream_encrypt_se_ip.c \
|
2016-07-16 17:10:00 -04:00
|
|
|
openpgpsdk/opsdir.c
|
2018-04-15 07:41:52 -04:00
|
|
|
|
2016-09-04 09:01:44 -04:00
|
|
|
|
|
|
|
################################# Android #####################################
|
|
|
|
|
2018-01-30 12:11:31 -05:00
|
|
|
android-* {
|
2016-09-04 09:01:44 -04:00
|
|
|
|
2018-01-30 12:25:04 -05:00
|
|
|
## Add this here because static library are very sensible to order in
|
|
|
|
## command line
|
2017-03-15 18:11:50 -04:00
|
|
|
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
|
2016-09-04 09:01:44 -04:00
|
|
|
}
|