From 0bca77276066eba96f8b0fd40dd106951794b3d5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 12 Dec 2021 02:57:41 +0100 Subject: [PATCH] Fix cmark wrap --- subprojects/packagefiles/cmark/cmark_export.h.in | 12 ++++++++++++ subprojects/packagefiles/cmark/meson.build | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 subprojects/packagefiles/cmark/cmark_export.h.in diff --git a/subprojects/packagefiles/cmark/cmark_export.h.in b/subprojects/packagefiles/cmark/cmark_export.h.in new file mode 100644 index 00000000..e88be6a7 --- /dev/null +++ b/subprojects/packagefiles/cmark/cmark_export.h.in @@ -0,0 +1,12 @@ +#ifndef CMARK_EXPORT_H +#define CMARK_EXPORT_H + +#define CMARK_EXPORT +#define CMARK_NO_EXPORT +#define CMARK_DEPRECATED +#define CMARK_DEPRECATED_EXPORT CMARK_EXPORT CMARK_DEPRECATED +#define CMARK_DEPRECATED_NO_EXPORT CMARK_NO_EXPORT CMARK_DEPRECATED +#define CMARK_NO_DEPRECATED + +#endif /* CMARK_EXPORT_H */ + diff --git a/subprojects/packagefiles/cmark/meson.build b/subprojects/packagefiles/cmark/meson.build index dc6925d8..5c3694a6 100644 --- a/subprojects/packagefiles/cmark/meson.build +++ b/subprojects/packagefiles/cmark/meson.build @@ -57,18 +57,23 @@ version_file = configure_file(input: 'src/cmark_version.h.in', format: 'cmake@', ) +export_file = configure_file(input: 'cmark_export.h.in', output: 'cmark_export.h', copy: true) + + install_headers( 'src/cmark.h', config_file, version_file, + export_file, ) -inc = include_directories('src') +inc = include_directories('src', '.') cmark = library( 'cmark', sources, config_file, version_file, + export_file, include_directories: inc, )