mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +03:00
Using module.modulemap
replace symbol link for public header
This commit is contained in:
@ -11,8 +11,8 @@ let package = Package(
|
|||||||
products: [
|
products: [
|
||||||
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
||||||
.library(
|
.library(
|
||||||
name: "zstd",
|
name: "libzstd",
|
||||||
targets: [ "zstd" ])
|
targets: [ "libzstd" ])
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
// Dependencies declare other packages that this package depends on.
|
// Dependencies declare other packages that this package depends on.
|
||||||
@ -22,10 +22,10 @@ let package = Package(
|
|||||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||||
// Targets can depend on other targets in this package, and on products in packages this package depends on.
|
// Targets can depend on other targets in this package, and on products in packages this package depends on.
|
||||||
.target(
|
.target(
|
||||||
name: "zstd",
|
name: "libzstd",
|
||||||
path: "lib",
|
path: "lib",
|
||||||
sources: [ "common", "compress", "decompress", "dictBuilder" ],
|
sources: [ "common", "compress", "decompress", "dictBuilder" ],
|
||||||
publicHeadersPath: "include",
|
publicHeadersPath: "modulemap",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
.headerSearchPath(".")
|
.headerSearchPath(".")
|
||||||
])
|
])
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../zstd.h
|
|
4
lib/modulemap/module.modulemap
Normal file
4
lib/modulemap/module.modulemap
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
module libzstd {
|
||||||
|
umbrella header "../zstd.h"
|
||||||
|
export *
|
||||||
|
}
|
Reference in New Issue
Block a user