diff options
author | René Schümann <white06tiger@gmail.com> | 2015-03-20 12:32:51 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2015-03-20 12:32:51 +0000 |
commit | 7c2e448fa7e1339da2937ef0b41a45ba1d01f87b (patch) | |
tree | d909494486ab5bf7d1126202cee14954702b1bf6 /plugins/MirOTR/DEPENDENCIES.txt | |
parent | 539705d58fc39a28388ff18c695dd406f4ffd1d9 (diff) |
MirOTR: added DEPENDENCIES.txt with information about MirOTR's dependencies incl. how to build/update them.
- removed seemingly unneeded libotr/inc directory
- removed _CRT_SECURE_NO_WARNINGS define from MirOTR stdafx.h as it's not needed there.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12450 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/DEPENDENCIES.txt')
-rw-r--r-- | plugins/MirOTR/DEPENDENCIES.txt | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/plugins/MirOTR/DEPENDENCIES.txt b/plugins/MirOTR/DEPENDENCIES.txt new file mode 100644 index 0000000000..855d7eb456 --- /dev/null +++ b/plugins/MirOTR/DEPENDENCIES.txt @@ -0,0 +1,99 @@ +ekhtml ( http://ekhtml.sourceforge.net/ || Github mirror: https://github.com/hilbix/ekhtml )
+ 0.3.3-pre 2004-06-12 (from Github mirror, hash 0092d9d)
+Libgpg-error ( https://gnupg.org/download/ )
+ 1.18
+Libgcrypt ( https://gnupg.org/download/ )
+ 1.6.3
+libotr ( https://otr.cypherpunks.ca/ )
+ 3.2.0
+
+
+
+
+HOW TO UPDATE DEPENDENCIES
+ in theory, it's possible to use MSYS + MSVC to do the following, but I've used GCC for convenience as my MSVC didn't want to :P
+ I've used MSYS2 and its own GCC (used 32bit as reference in hope that it will work for 64bit as well)
+
+
+ - ekhtml (clean checkout from Git repo mentioned above)
+ - run MSYS and navigate to ekhtml root
+ ./autogen.sh
+ make
+ - make failed on me, so I had to do ekhtml_mktables myself (make somehow failed to setup include dirs)
+ cd src
+ gcc -g -O2 -I../include ekhtml_mktables.c -o ekhtml_mktables
+ ./ekhtml_mktables > ../include/ekhtml_tables.h
+ - copy .c and .h files from include/ and src/ to our ekhtml
+ - ekhtml_config.h: see CONVERT_CONFIG_H_FROM_GCC_TO_MSVC
+
+ - Libgpg-error (from tarball)
+ - run MSYS
+ tar xvf libgpg-error-1.18.tar.bz2
+ cd libgpg-error-1.18
+ ./configure
+ make
+ - copy .c,.h,.def,.rc files from src/ to our Libgpg-error
+ - copy src/gpg-error-config to our Libgpg-error
+ since we don't build Libgpg-error but include it directly into Libgcrypt, config.h isn't really needed
+
+ - Libgcrypt (from tarball)
+ - run MSYS
+ tar xvf libgcrypt-1.6.3.tar.bz2
+ cd libgcrypt-1.6.3
+ export GPG_ERROR_CONFIG=$(pwd)/../Libgpg-error/gpg-error-config
+ ./configure
+ - copy .c and .h files from cipher/ to our Libgcrypt
+ - copy .c and .h files from compat/ to our Libgcrypt
+ - copy mpi/ and random/ to our Libgcrypt
+ - copy .c,.h,.def files from src/ to our Libgcrypt
+ - copy config.h to our Libgcrypt custom/
+ - cipher/cipher-ccm.c: replace "tmp[blocksize];" with "tmp[16];" as MSVC is quite dumb
+ - cipher/stribog.c: replace "u64 Z[8] = {};" with "u64 Z[8] = {0};"
+ - config.h: see CONVERT_CONFIG_H_FROM_GCC_TO_MSVC
+
+ - libotr (from Git)
+ - tbd
+
+CONVERT_CONFIG_H_FROM_GCC_TO_MSVC
+ convert from GCC configured config to MSVC settings
+ - define disabling ( simply comment them out or replace with /* #undef <define> */ )
+ // generic
+ HAVE_INTTYPES_H
+ HAVE_STRINGS_H
+ HAVE_UNISTD_H
+ // needed for Libgcrypt
+ HAVE_BUILTIN_BSWAP32
+ HAVE_BUILTIN_BSWAP64
+ HAVE_CLOCK_GETTIME
+ HAVE_GCC_ASM_VOLATILE_MEMORY
+ HAVE_GCC_ATTRIBUTE_ALIGNED
+ HAVE_GCC_INLINE_ASM_AVX
+ HAVE_GCC_INLINE_ASM_AVX2
+ HAVE_GCC_INLINE_ASM_BMI2
+ HAVE_GCC_INLINE_ASM_PCLMUL
+ HAVE_GCC_INLINE_ASM_SSSE3
+ HAVE_GETPAGESIZE
+ HAVE_GETTIMEOFDAY
+ HAVE_VLA
+
+ - replacing (first line is "find", indented line is "replace by")
+ /* #undef inline */
+ #define inline __inline
+
+ - see CUSTOM_CONFIG_H_MODIFICATIONS
+
+CUSTOM_CONFIG_H_MODIFICATIONS
+ we do some Miranda NG / MSVC related modifications to *config.h files
+ simply append:
+/* Miranda NG modifications */
+#define GPGRT_ENABLE_ES_MACROS 1
+#include <string.h>
+#define strdup _strdup
+#define stricmp _stricmp
+#define snprintf _snprintf
+#ifdef _WIN64
+# define __x86_64__ 1
+#else
+# define __i386__ 1
+#endif
+
|