-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [libzim] No uwp * [libzim] Update to 9.0.0
- Loading branch information
Showing
8 changed files
with
48 additions
and
66 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
This file was deleted.
Oops, something went wrong.
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,52 +1,16 @@ | ||
diff --git a/include/zim/zim.h b/include/zim/zim.h | ||
index 5d1af80..6171f56 100644 | ||
index 80e8596..631cfab 100644 | ||
--- a/include/zim/zim.h | ||
+++ b/include/zim/zim.h | ||
@@ -33,14 +33,16 @@ | ||
#define DEPRECATED | ||
#endif | ||
@@ -35,8 +35,10 @@ | ||
|
||
#include <zim/zim_config.h> | ||
|
||
-#if (defined _WIN32 || defined __CYGWIN__) && defined LIBZIM_EXPORT_DLL | ||
+#include <zim/zim_config.h> | ||
+ | ||
+#if defined(LIBZIM_DLL) && defined(LIBZIM_BUILDING_LIBRARY) | ||
-#if defined(_MSC_VER) && defined(LIBZIM_EXPORT_DLL) | ||
+#if defined(_WIN32) && defined(LIBZIM_EXPORT_DLL) | ||
#define LIBZIM_API __declspec(dllexport) | ||
+#elif defined(LIBZIM_DLL) | ||
+#elif defined(_WIN32) && defined(LIBZIM_IMPORT_DLL) | ||
+ #define LIBZIM_API __declspec(dllimport) | ||
#else | ||
#define LIBZIM_API | ||
#endif | ||
|
||
-#include <zim/zim_config.h> | ||
- | ||
namespace zim | ||
{ | ||
// An index of an entry (in a zim file) | ||
diff --git a/meson.build b/meson.build | ||
index 7f97dbc..8fd13d7 100644 | ||
--- a/meson.build | ||
+++ b/meson.build | ||
@@ -14,6 +14,10 @@ sizeof_size_t = cpp.sizeof('size_t') | ||
private_conf = configuration_data() | ||
public_conf = configuration_data() | ||
|
||
+if host_machine.system() == 'windows' and get_option('default_library') == 'shared' | ||
+ public_conf.set('LIBZIM_DLL', true) | ||
+endif | ||
+ | ||
private_conf.set('VERSION', '"@0@"'.format(meson.project_version())) | ||
public_conf.set('LIBZIM_VERSION', '"@0@"'.format(meson.project_version())) | ||
private_conf.set('DIRENT_CACHE_SIZE', get_option('DIRENT_CACHE_SIZE')) | ||
diff --git a/src/meson.build b/src/meson.build | ||
index 4529b7c..956b145 100644 | ||
--- a/src/meson.build | ||
+++ b/src/meson.build | ||
@@ -75,7 +75,7 @@ libzim = library('zim', | ||
include_directories : inc, | ||
dependencies : deps, | ||
link_args : extra_link_args, | ||
- cpp_args : extra_cpp_args, | ||
+ cpp_args : extra_cpp_args + '-DLIBZIM_BUILDING_LIBRARY', | ||
version: meson.project_version(), | ||
install : true) | ||
libzim_dep = declare_dependency(link_with: libzim, |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/meson.build b/meson.build | ||
index d946c49..eded01d 100644 | ||
--- a/meson.build | ||
+++ b/meson.build | ||
@@ -90,6 +90,7 @@ subdir('include') | ||
subdir('scripts') | ||
subdir('static') | ||
subdir('src') | ||
+if false | ||
if get_option('examples') | ||
subdir('examples') | ||
endif | ||
@@ -97,6 +98,7 @@ subdir('test') | ||
if get_option('doc') | ||
subdir('docs') | ||
endif | ||
+endif | ||
|
||
pkg_mod = import('pkgconfig') | ||
pkg_mod.generate(libraries : libzim, |
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