Small 1.28 adjustments for Windows build
This commit is contained in:
parent
712fdbb3f8
commit
c6341b2438
@ -121,7 +121,7 @@
|
|||||||
#define PACKAGE_NAME "Recoll"
|
#define PACKAGE_NAME "Recoll"
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
/* Define to the full name and version of this package. */
|
||||||
#define PACKAGE_STRING "Recoll 1.28.0"
|
#define PACKAGE_STRING "Recoll 1.28.3"
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
/* Define to the one symbol short name of this package. */
|
||||||
#define PACKAGE_TARNAME "recoll"
|
#define PACKAGE_TARNAME "recoll"
|
||||||
@ -130,7 +130,7 @@
|
|||||||
#define PACKAGE_URL ""
|
#define PACKAGE_URL ""
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#define PACKAGE_VERSION "1.28.0"
|
#define PACKAGE_VERSION "1.28.3"
|
||||||
|
|
||||||
/* putenv parameter is const */
|
/* putenv parameter is const */
|
||||||
/* #undef PUTENV_ARG_CONST */
|
/* #undef PUTENV_ARG_CONST */
|
||||||
|
|||||||
@ -25,37 +25,37 @@ include_dirs = [
|
|||||||
os.path.join(top, 'query'),
|
os.path.join(top, 'query'),
|
||||||
os.path.join(top, 'internfile'),
|
os.path.join(top, 'internfile'),
|
||||||
]
|
]
|
||||||
|
|
||||||
define_macros = [
|
define_macros = [
|
||||||
('RECOLL_DATADIR', RECOLL_DATADIR),
|
('RECOLL_DATADIR', RECOLL_DATADIR),
|
||||||
('__WIN32__', '1')
|
('__WIN32__', '1')
|
||||||
]
|
]
|
||||||
|
|
||||||
library_dirs = [
|
library_dirs = [
|
||||||
os.path.join(top, "windows", "build-librecoll-Desktop_Qt_5_14_1_MSVC2017_32bit-Release/release"),
|
os.path.join(top, "windows", "build-librecoll-Desktop_Qt_5_14_2_MSVC2017_32bit-Release/release"),
|
||||||
os.path.join(recolldeps, "libxml2/libxml2-2.9.4+dfsg1/win32/bin.msvc"),
|
os.path.join(recolldeps, "libxml2/libxml2-2.9.4+dfsg1/win32/bin.msvc"),
|
||||||
os.path.join(recolldeps, "libxslt/libxslt-1.1.29/win32/bin.msvc"),
|
os.path.join(recolldeps, "libxslt/libxslt-1.1.29/win32/bin.msvc"),
|
||||||
os.path.join(top, "windows", "build-libxapian-Desktop_Qt_5_14_1_MSVC2017_32bit-Release/release"),
|
os.path.join(top, "windows", "build-libxapian-Desktop_Qt_5_14_2_MSVC2017_32bit-Release/release"),
|
||||||
os.path.join(recolldeps, "zlib-1.2.11"),
|
os.path.join(recolldeps, "zlib-1.2.11"),
|
||||||
os.path.join(recolldeps, "build-libiconv-Desktop_Qt_5_14_1_MSVC2017_32bit-Release/release")
|
os.path.join(recolldeps, "build-libiconv-Desktop_Qt_5_14_2_MSVC2017_32bit-Release/release")
|
||||||
]
|
]
|
||||||
|
|
||||||
libraries = ["librecoll", "libxml2_a", "libxslt_a",
|
libraries = ["librecoll", "libxml2_a", "libxslt_a",
|
||||||
"libxapian", "libiconv", "zlib",
|
"libxapian", "libiconv", "zlib",
|
||||||
"rpcrt4", "ws2_32", "shlwapi", "shell32",
|
"rpcrt4", "ws2_32", "shlwapi", "shell32",
|
||||||
"psapi", "user32", "kernel32"
|
"psapi", "user32", "kernel32"
|
||||||
]
|
]
|
||||||
module1 = Extension('recoll',
|
|
||||||
define_macros = define_macros,
|
|
||||||
include_dirs = include_dirs,
|
|
||||||
libraries = libraries,
|
|
||||||
library_dirs = library_dirs,
|
|
||||||
sources = [os.path.join(pytop, 'pyrecoll.cpp')])
|
|
||||||
|
|
||||||
module2 = Extension('rclextract',
|
extra_compile_args = ['-std=c++11']
|
||||||
|
|
||||||
|
module1 = Extension('_recoll',
|
||||||
define_macros = define_macros,
|
define_macros = define_macros,
|
||||||
include_dirs = include_dirs,
|
include_dirs = include_dirs,
|
||||||
extra_compile_args = extra_compile_args,
|
|
||||||
libraries = libraries,
|
libraries = libraries,
|
||||||
library_dirs = library_dirs,
|
library_dirs = library_dirs,
|
||||||
sources = [os.path.join(pytop, 'pyrclextract.cpp')])
|
sources = [os.path.join(pytop, 'pyrecoll.cpp'),
|
||||||
|
os.path.join(pytop, 'pyresultstore.cpp'),
|
||||||
|
os.path.join(pytop, 'pyrclextract.cpp')])
|
||||||
|
|
||||||
setup (name = 'Recoll',
|
setup (name = 'Recoll',
|
||||||
version = VERSION,
|
version = VERSION,
|
||||||
@ -69,4 +69,4 @@ setup (name = 'Recoll',
|
|||||||
''',
|
''',
|
||||||
packages = ['recoll'],
|
packages = ['recoll'],
|
||||||
ext_package = 'recoll',
|
ext_package = 'recoll',
|
||||||
ext_modules = [module1, module2])
|
ext_modules = [module1])
|
||||||
|
|||||||
@ -63,6 +63,7 @@ SOURCES += \
|
|||||||
rclhelp.cpp \
|
rclhelp.cpp \
|
||||||
rclmain_w.cpp \
|
rclmain_w.cpp \
|
||||||
rclm_idx.cpp \
|
rclm_idx.cpp \
|
||||||
|
rclm_menus.cpp \
|
||||||
rclm_preview.cpp \
|
rclm_preview.cpp \
|
||||||
rclm_saveload.cpp \
|
rclm_saveload.cpp \
|
||||||
rclm_view.cpp \
|
rclm_view.cpp \
|
||||||
|
|||||||
@ -25,8 +25,6 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <malloc.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "rcldoc.h"
|
#include "rcldoc.h"
|
||||||
|
|||||||
@ -37,6 +37,8 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// needed for localtime_r under mingw?
|
// needed for localtime_r under mingw?
|
||||||
#define _POSIX_THREAD_SAFE_FUNCTIONS
|
#define _POSIX_THREAD_SAFE_FUNCTIONS
|
||||||
|
#define strncasecmp _strnicmp
|
||||||
|
#define strcasecmp _stricmp
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define localtime_r(a,b) localtime_s(b,a)
|
#define localtime_r(a,b) localtime_s(b,a)
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|||||||
@ -65,6 +65,7 @@ SOURCES += \
|
|||||||
../../query/dynconf.cpp \
|
../../query/dynconf.cpp \
|
||||||
../../query/filtseq.cpp \
|
../../query/filtseq.cpp \
|
||||||
../../query/plaintorich.cpp \
|
../../query/plaintorich.cpp \
|
||||||
|
../../query/qresultstore.cpp \
|
||||||
../../query/recollq.cpp \
|
../../query/recollq.cpp \
|
||||||
../../query/reslistpager.cpp \
|
../../query/reslistpager.cpp \
|
||||||
../../query/sortseq.cpp \
|
../../query/sortseq.cpp \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user