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, )