Fix cmark wrap

This commit is contained in:
Nicolas Werner 2021-12-12 02:57:41 +01:00
parent 0307f8e9ef
commit 0bca772760
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 18 additions and 1 deletions

View file

@ -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 */

View file

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