2016-06-14 00:52:17 +00:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2016-06-14T04:53:04
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT += core gui
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
TARGET = i2pd_qt
|
|
|
|
TEMPLATE = app
|
2016-06-14 17:21:22 +00:00
|
|
|
QMAKE_CXXFLAGS *= -std=c++11
|
2016-06-14 00:52:17 +00:00
|
|
|
|
2016-06-16 22:20:07 +00:00
|
|
|
# git clone https://github.com/PurpleI2P/Boost-for-Android-Prebuilt.git
|
2016-06-19 09:26:34 +00:00
|
|
|
# git clone https://github.com/PurpleI2P/OpenSSL-for-Android-Prebuilt.git
|
2016-06-17 13:49:49 +00:00
|
|
|
# git clone https://github.com/PurpleI2P/android-ifaddrs.git
|
2016-06-15 17:18:04 +00:00
|
|
|
# change to your own
|
|
|
|
BOOST_PATH = /mnt/media/android/Boost-for-Android-Prebuilt
|
|
|
|
OPENSSL_PATH = /mnt/media/android/OpenSSL-for-Android-Prebuilt
|
|
|
|
IFADDRS_PATH = /mnt/media/android/android-ifaddrs
|
2016-06-15 13:31:52 +00:00
|
|
|
|
2016-06-19 12:35:17 +00:00
|
|
|
# Steps in Android SDK manager:
|
|
|
|
# 1) Check Extras/Google Support Library https://developer.android.com/topic/libraries/support-library/setup.html
|
|
|
|
# 2) Check API 11
|
|
|
|
# Finally, click Install.
|
|
|
|
|
2016-06-15 16:20:31 +00:00
|
|
|
SOURCES += DaemonQT.cpp\
|
2016-06-14 00:52:17 +00:00
|
|
|
mainwindow.cpp \
|
|
|
|
../../HTTPServer.cpp ../../I2PControl.cpp ../../UPnP.cpp ../../Daemon.cpp ../../Config.cpp \
|
|
|
|
../../AddressBook.cpp \
|
|
|
|
../../api.cpp \
|
|
|
|
../../Base.cpp \
|
|
|
|
../../BOB.cpp \
|
|
|
|
../../ClientContext.cpp \
|
|
|
|
../../Crypto.cpp \
|
|
|
|
../../Datagram.cpp \
|
|
|
|
../../Destination.cpp \
|
|
|
|
../../Family.cpp \
|
|
|
|
../../FS.cpp \
|
|
|
|
../../Garlic.cpp \
|
|
|
|
../../HTTP.cpp \
|
|
|
|
../../HTTPProxy.cpp \
|
|
|
|
../../I2CP.cpp \
|
|
|
|
../../I2NPProtocol.cpp \
|
|
|
|
../../I2PEndian.cpp \
|
|
|
|
../../I2PService.cpp \
|
|
|
|
../../I2PTunnel.cpp \
|
|
|
|
../../Identity.cpp \
|
|
|
|
../../LeaseSet.cpp \
|
|
|
|
../../Log.cpp \
|
|
|
|
../../NetDb.cpp \
|
|
|
|
../../NetDbRequests.cpp \
|
|
|
|
../../NTCPSession.cpp \
|
|
|
|
../../Profiling.cpp \
|
|
|
|
../../Reseed.cpp \
|
|
|
|
../../RouterContext.cpp \
|
|
|
|
../../RouterInfo.cpp \
|
|
|
|
../../SAM.cpp \
|
|
|
|
../../Signature.cpp \
|
|
|
|
../../SOCKS.cpp \
|
|
|
|
../../SSU.cpp \
|
|
|
|
../../SSUData.cpp \
|
|
|
|
../../SSUSession.cpp \
|
|
|
|
../../Streaming.cpp \
|
|
|
|
../../TransitTunnel.cpp \
|
|
|
|
../../Transports.cpp \
|
|
|
|
../../Tunnel.cpp \
|
|
|
|
../../TunnelEndpoint.cpp \
|
|
|
|
../../TunnelGateway.cpp \
|
|
|
|
../../TunnelPool.cpp \
|
|
|
|
../../util.cpp \
|
2016-06-15 16:20:31 +00:00
|
|
|
../../i2pd.cpp \
|
2016-06-17 20:30:50 +00:00
|
|
|
$$IFADDRS_PATH/ifaddrs.c
|
2016-06-14 00:52:17 +00:00
|
|
|
|
2016-06-17 13:49:49 +00:00
|
|
|
HEADERS += DaemonQT.h mainwindow.h \
|
2016-06-14 00:52:17 +00:00
|
|
|
../../HTTPServer.h ../../I2PControl.h ../../UPnP.h ../../Daemon.h ../../Config.h \
|
|
|
|
../../AddressBook.h \
|
|
|
|
../../api.h \
|
|
|
|
../../Base.h \
|
|
|
|
../../BOB.h \
|
|
|
|
../../ClientContext.h \
|
|
|
|
../../Crypto.h \
|
|
|
|
../../Datagram.h \
|
|
|
|
../../Destination.h \
|
|
|
|
../../Family.h \
|
|
|
|
../../FS.h \
|
|
|
|
../../Garlic.h \
|
|
|
|
../../HTTP.h \
|
|
|
|
../../HTTPProxy.h \
|
|
|
|
../../I2CP.h \
|
|
|
|
../../I2NPProtocol.h \
|
|
|
|
../../I2PEndian.h \
|
|
|
|
../../I2PService.h \
|
|
|
|
../../I2PTunnel.h \
|
|
|
|
../../Identity.h \
|
|
|
|
../../LeaseSet.h \
|
|
|
|
../../LittleBigEndian.h \
|
|
|
|
../../Log.h \
|
|
|
|
../../NetDb.h \
|
|
|
|
../../NetDbRequests.h \
|
|
|
|
../../NTCPSession.h \
|
|
|
|
../../Profiling.h \
|
|
|
|
../../Queue.h \
|
|
|
|
../../Reseed.h \
|
|
|
|
../../RouterContext.h \
|
|
|
|
../../RouterInfo.h \
|
|
|
|
../../SAM.h \
|
|
|
|
../../Signature.h \
|
|
|
|
../../SOCKS.h \
|
|
|
|
../../SSU.h \
|
|
|
|
../../SSUData.h \
|
|
|
|
../../SSUSession.h \
|
|
|
|
../../Streaming.h \
|
|
|
|
../../Timestamp.h \
|
|
|
|
../../TransitTunnel.h \
|
|
|
|
../../Transports.h \
|
|
|
|
../../TransportSession.h \
|
|
|
|
../../Tunnel.h \
|
|
|
|
../../TunnelBase.h \
|
|
|
|
../../TunnelConfig.h \
|
|
|
|
../../TunnelEndpoint.h \
|
|
|
|
../../TunnelGateway.h \
|
|
|
|
../../TunnelPool.h \
|
|
|
|
../../util.h \
|
|
|
|
../../version.h \
|
2016-06-17 20:30:50 +00:00
|
|
|
$$IFADDRS_PATH/ifaddrs.h
|
2016-06-14 00:52:17 +00:00
|
|
|
|
|
|
|
FORMS += mainwindow.ui
|
|
|
|
|
|
|
|
CONFIG += mobility
|
|
|
|
|
|
|
|
MOBILITY =
|
|
|
|
|
|
|
|
LIBS += -lz
|
|
|
|
|
|
|
|
android {
|
|
|
|
message("Using Android settings")
|
|
|
|
DEFINES += ANDROID=1
|
2016-06-19 18:49:41 +00:00
|
|
|
DEFINES += __ANDROID__
|
2016-06-15 17:18:04 +00:00
|
|
|
INCLUDEPATH += $$BOOST_PATH/boost_1_53_0/include \
|
|
|
|
$$OPENSSL_PATH/openssl-1.0.2/include \
|
|
|
|
$$IFADDRS_PATH
|
2016-06-17 13:49:49 +00:00
|
|
|
DISTFILES += \
|
|
|
|
android/AndroidManifest.xml
|
|
|
|
|
|
|
|
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
|
|
|
|
2016-06-14 00:52:17 +00:00
|
|
|
equals(ANDROID_TARGET_ARCH, armeabi-v7a){
|
2016-06-19 18:49:41 +00:00
|
|
|
|
|
|
|
DEFINES += ANDROID_ARM7A
|
|
|
|
|
2016-06-14 05:20:34 +00:00
|
|
|
# http://stackoverflow.com/a/30235934/529442
|
2016-06-15 17:18:04 +00:00
|
|
|
LIBS += -L$$BOOST_PATH/boost_1_53_0/armeabi-v7a/lib \
|
2016-06-14 00:52:17 +00:00
|
|
|
-lboost_system-gcc-mt-1_53 \
|
|
|
|
-lboost_date_time-gcc-mt-1_53 \
|
|
|
|
-lboost_filesystem-gcc-mt-1_53 \
|
2016-06-14 05:20:34 +00:00
|
|
|
-lboost_program_options-gcc-mt-1_53 \
|
2016-06-15 17:18:04 +00:00
|
|
|
-L$$OPENSSL_PATH/openssl-1.0.2/armeabi-v7a/lib/ -lcrypto -lssl
|
2016-06-14 05:20:34 +00:00
|
|
|
|
2016-06-15 17:18:04 +00:00
|
|
|
PRE_TARGETDEPS += $$OPENSSL_PATH/openssl-1.0.2/armeabi-v7a/lib/libcrypto.a \
|
|
|
|
$$OPENSSL_PATH/openssl-1.0.2/armeabi-v7a/lib/libssl.a
|
2016-06-14 05:20:34 +00:00
|
|
|
|
2016-06-15 17:18:04 +00:00
|
|
|
DEPENDPATH += $$OPENSSL_PATH/openssl-1.0.2/include
|
2016-06-14 05:20:34 +00:00
|
|
|
|
2016-06-16 18:29:32 +00:00
|
|
|
ANDROID_EXTRA_LIBS += $$OPENSSL_PATH/openssl-1.0.2/armeabi-v7a/lib/libcrypto_1_0_0.so \
|
|
|
|
$$OPENSSL_PATH/openssl-1.0.2/armeabi-v7a/lib/libssl_1_0_0.so
|
2016-06-14 00:52:17 +00:00
|
|
|
}
|
2016-06-16 15:42:34 +00:00
|
|
|
equals(ANDROID_TARGET_ARCH, x86){
|
|
|
|
# http://stackoverflow.com/a/30235934/529442
|
|
|
|
LIBS += -L$$BOOST_PATH/boost_1_53_0/x86/lib \
|
|
|
|
-lboost_system-gcc-mt-1_53 \
|
|
|
|
-lboost_date_time-gcc-mt-1_53 \
|
|
|
|
-lboost_filesystem-gcc-mt-1_53 \
|
|
|
|
-lboost_program_options-gcc-mt-1_53 \
|
|
|
|
-L$$OPENSSL_PATH/openssl-1.0.2/x86/lib/ -lcrypto -lssl
|
|
|
|
|
|
|
|
PRE_TARGETDEPS += $$OPENSSL_PATH/openssl-1.0.2/x86/lib/libcrypto.a \
|
|
|
|
$$OPENSSL_PATH/openssl-1.0.2/x86/lib/libssl.a
|
|
|
|
|
|
|
|
DEPENDPATH += $$OPENSSL_PATH/openssl-1.0.2/include
|
|
|
|
|
2016-06-16 18:29:32 +00:00
|
|
|
ANDROID_EXTRA_LIBS += $$OPENSSL_PATH/openssl-1.0.2/x86/lib/libcrypto_1_0_0.so \
|
|
|
|
$$OPENSSL_PATH/openssl-1.0.2/x86/lib/libssl_1_0_0.so
|
2016-06-16 15:42:34 +00:00
|
|
|
}
|
2016-06-14 00:52:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
linux:!android {
|
|
|
|
message("Using Linux settings")
|
|
|
|
LIBS += -lcrypto -lssl -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread
|
|
|
|
}
|
|
|
|
|