diff --git a/bypy/linux/__main__.py b/bypy/linux/__main__.py index 0f1728b6a0..f2794f9713 100644 --- a/bypy/linux/__main__.py +++ b/bypy/linux/__main__.py @@ -41,7 +41,7 @@ def binary_includes(): ] + list(map( get_dll_path, ('usb-1.0 mtp expat sqlite3 ffi z poppler dbus-1 iconv xml2 xslt jpeg png16' - ' webp webpmux webpdemux exslt ncursesw readline chm' + ' webp webpmux webpdemux exslt ncursesw readline chm hunspell-1.7' ' icudata icui18n icuuc icuio gcrypt gpg-error' ' gobject-2.0 glib-2.0 gthread-2.0 gmodule-2.0 gio-2.0 dbus-glib-1').split() )) + [ diff --git a/bypy/macos/__main__.py b/bypy/macos/__main__.py index 2b632a9d34..9a1e648fc9 100644 --- a/bypy/macos/__main__.py +++ b/bypy/macos/__main__.py @@ -504,7 +504,7 @@ class Freeze(object): @flush def add_misc_libraries(self): for x in ( - 'usb-1.0.0', 'mtp.9', 'chm.0', 'sqlite3.0', + 'usb-1.0.0', 'mtp.9', 'chm.0', 'sqlite3.0', 'hunspell-1.7.0', 'icudata.64', 'icui18n.64', 'icuio.64', 'icuuc.64', 'xslt.1', 'exslt.0', 'xml2.2', 'z.1', 'unrar', 'crypto.1.0.0', 'ssl.1.0.0', 'iconv.2', # 'ltdl.7' diff --git a/bypy/sources.json b/bypy/sources.json index 8b07ddf40e..cfe4d42b05 100644 --- a/bypy/sources.json +++ b/bypy/sources.json @@ -390,6 +390,11 @@ "filename": "hunspell-1.7.0.tar.gz", "hash": "sha256:57be4e03ae9dd62c3471f667a0d81a14513e314d4d92081292b90435944ff951", "urls": ["https://github.com/hunspell/hunspell/files/2573619/{filename}"] + }, + "windows": { + "filename": "hunspell-1.7.0.zip", + "hash": "sha256:7089cc01ffd9122c960e1f8c7930a75be989ca4e9468773cef1b0a655bfb4368", + "urls": ["https://github.com/hunspell/hunspell/archive/v1.7.0.zip"] } }, diff --git a/setup/build_environment.py b/setup/build_environment.py index de4ea9644b..f0a57b3ff3 100644 --- a/setup/build_environment.py +++ b/setup/build_environment.py @@ -145,6 +145,8 @@ if iswindows: ft_lib_dirs = [sw_lib_dir] ft_libs = ['freetype'] ft_inc_dirs = [os.path.join(sw_inc_dir, 'freetype2'), sw_inc_dir] + hunspell_inc_dirs = [os.path.join(sw_inc_dir, 'hunspell')] + hunspell_lib_dirs = [sw_lib_dir] zlib_inc_dirs = [sw_inc_dir] zlib_lib_dirs = [sw_lib_dir] podofo_inc = os.path.join(sw_inc_dir, 'podofo') diff --git a/setup/extensions.json b/setup/extensions.json index 0720cb3976..a484d04ddd 100644 --- a/setup/extensions.json +++ b/setup/extensions.json @@ -4,7 +4,8 @@ "sources": "calibre/utils/spell/hunspell_wrapper.cpp", "inc_dirs": "!hunspell_inc_dirs", "lib_dirs": "!hunspell_lib_dirs", - "libraries": "hunspell", + "libraries": "hunspell-1.7", + "windows_libraries": "libhunspell", "needs_c++11": true }, {