src: Updated to Botan 2.1.0

This commit is contained in:
Eberhard Graether
2017-07-18 12:55:13 +02:00
parent 7bc89acdf5
commit 94551bf689
2 changed files with 12 additions and 5 deletions
+6 -2
View File
@@ -119,7 +119,7 @@ find_package(Boost 1.59 COMPONENTS system program_options filesystem date_time R
# Botan -------------------------------------------------------------------------
set(BOTAN_VERSION "botan-1.11" "botan-2")
set(BOTAN_VERSION "botan-2")
if(APPLE)
find_library(BOTAN ${BOTAN_VERSION} $ENV{BOTAN_DIR}/release NO_DEFAULT_PATH)
@@ -157,7 +157,11 @@ elseif(WIN32)
set(BOTAN_INCLUDE_DIR "$ENV{BOTAN_DIR}/win64/build/include")
endif()
else()
set(BOTAN_INCLUDE_DIR "$ENV{BOTAN_DIR}/build/include")
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(BOTAN_INCLUDE_DIR "$ENV{BOTAN_DIR}/release/build/include")
else()
set(BOTAN_INCLUDE_DIR "$ENV{BOTAN_DIR}/debug/build/include")
endif()
endif()
if(NOT BOTAN_INCLUDE_DIR)
+6 -3
View File
@@ -10,7 +10,7 @@
* Valgrind 3.9.0 (linux)
* Clang & LLVM 4.0.1 (doesnt quite work for windows, use unix setup below and skip all the ninja stuff)(installation guide http://clang.llvm.org/docs/LibASTMatchersTutorial.html)
* Boost 1.59
* Botan 1.11.34
* Botan 2.1.0
also something about java, but who knows...
@@ -19,7 +19,7 @@ also something about java, but who knows...
* CXX_TEST_DIR - .../cxxtest-4.3
* CLANG_DIR - .../clang-llvm
* BOOST_159_DIR - .../boost_1_59_0
* BOTAN_DIR - .../Botan-1.11.34
* BOTAN_DIR - .../Botan-2.1.0
For MacOS and Linux
* QT_DIR - .../Qt/Qt5.8.0/5.8/<IDE>
@@ -71,7 +71,10 @@ Build release lib in ${BOTAN_DIR}/release
Build debug lib in ${BOTAN_DIR}/debug
for Mac:
$ python configure.py --disable-shared --disable-modules=darwin_secrandom
$ mkdir debug/release
$ cd debug/release
$ python ../configure.py --disable-shared --disable-modules=darwin_secrandom (--with-debug-info)
$ make -j 4
for Linux:
$ python configure.py --disable-shared