mirror of
https://github.com/facebook/zstd.git
synced 2025-11-29 00:04:37 -05:00
Merge pull request #2953 from felixhandte/modulemap-improvements
Improve Module Map File
This commit is contained in:
commit
26d88c05f0
@ -25,7 +25,7 @@ let package = Package(
|
|||||||
name: "libzstd",
|
name: "libzstd",
|
||||||
path: "lib",
|
path: "lib",
|
||||||
sources: [ "common", "compress", "decompress", "dictBuilder" ],
|
sources: [ "common", "compress", "decompress", "dictBuilder" ],
|
||||||
publicHeadersPath: "modulemap",
|
publicHeadersPath: ".",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
.headerSearchPath(".")
|
.headerSearchPath(".")
|
||||||
])
|
])
|
||||||
|
|||||||
25
lib/module.modulemap
Normal file
25
lib/module.modulemap
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
module libzstd [extern_c] {
|
||||||
|
header "zstd.h"
|
||||||
|
export *
|
||||||
|
config_macros [exhaustive] /* zstd.h */ \
|
||||||
|
ZSTD_STATIC_LINKING_ONLY, \
|
||||||
|
ZSTDLIB_VISIBLE, \
|
||||||
|
ZSTD_DLL_EXPORT, \
|
||||||
|
ZSTDLIB_STATIC_API, \
|
||||||
|
ZSTD_DISABLE_DEPRECATE_WARNINGS, \
|
||||||
|
ZSTD_CLEVEL_DEFAULT, \
|
||||||
|
/* zdict.h */ ZDICT_STATIC_LINKING_ONLY, \
|
||||||
|
ZDICTLIB_VISIBILITY, \
|
||||||
|
ZDICT_DISABLE_DEPRECATE_WARNINGS, \
|
||||||
|
/* zstd_errors.h */ ZSTDERRORLIB_VISIBILITY
|
||||||
|
|
||||||
|
module dictbuilder [extern_c] {
|
||||||
|
header "zdict.h"
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
|
||||||
|
module errors [extern_c] {
|
||||||
|
header "zstd_errors.h"
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +0,0 @@
|
|||||||
module libzstd [extern_c] {
|
|
||||||
header "../zstd.h"
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user