-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial Vcpkg + CMake build for Windows. It don't need prebuilt…
… binaries
- Loading branch information
1 parent
e7c5967
commit 3856e1e
Showing
9 changed files
with
168 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
find_package(BZip2 REQUIRED) | ||
find_package(Iconv REQUIRED) | ||
find_package(LibLZMA REQUIRED) | ||
find_package(Vorbis CONFIG REQUIRED) | ||
find_package(ZLIB REQUIRED) | ||
|
||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(PKGCONFIG_DEPS IMPORTED_TARGET | ||
hunspell | ||
libzim | ||
lzo2 | ||
opencc | ||
xapian-core | ||
) | ||
|
||
target_link_libraries(${GOLDENDICT} | ||
PRIVATE | ||
PkgConfig::PKGCONFIG_DEPS | ||
BZip2::BZip2 | ||
Iconv::Iconv | ||
LibLZMA::LibLZMA | ||
Vorbis::vorbis | ||
Vorbis::vorbisfile | ||
ZLIB::ZLIB | ||
) | ||
|
||
if (WITH_EPWING_SUPPORT) | ||
add_subdirectory(thirdparty/eb EXCLUDE_FROM_ALL) | ||
target_include_directories(${GOLDENDICT} PRIVATE | ||
thirdparty | ||
) | ||
target_link_libraries(${GOLDENDICT} PRIVATE eb) | ||
|
||
set_target_properties(eb PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${GD_WIN_OUTPUT_DIR}) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#include <string> | ||
#ifdef _MSC_VER | ||
#if !defined(strcasecmp) | ||
# define strcasecmp _strcmpi | ||
#endif | ||
#if !defined(strncasecmp) | ||
# define strncasecmp _strnicmp | ||
#endif | ||
|
||
#ifndef _SSIZE_T | ||
#define _SSIZE_T | ||
#define ssize_t long | ||
#endif | ||
#endif | ||
|
||
#include <string> | ||
#ifdef _MSC_VER | ||
#if !defined(strcasecmp) | ||
# define strcasecmp _strcmpi | ||
#endif | ||
#if !defined(strncasecmp) | ||
# define strncasecmp _strnicmp | ||
#endif | ||
|
||
#ifndef _SSIZE_T | ||
#define _SSIZE_T | ||
#define ssize_t long | ||
#endif | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"default-registry": { | ||
"kind": "git", | ||
"baseline": "a1212c93cabaa9c5c36c1ffdb4bddd59fdf31e43", | ||
"repository": "https://github.com/microsoft/vcpkg" | ||
}, | ||
"registries": [ | ||
{ | ||
"kind": "artifact", | ||
"location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip", | ||
"name": "microsoft" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "goldendict-ng", | ||
"version": "24.5.5", | ||
"dependencies": [ | ||
"bzip2", | ||
"hunspell", | ||
"libiconv", | ||
"liblzma", | ||
"libvorbis", | ||
"libzim", | ||
"lzo", | ||
"opencc", | ||
"xapian", | ||
"zlib", | ||
"openssl" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters