mirror of
https://github.com/facebook/zstd.git
synced 2024-11-27 12:17:45 +08:00
Using module.modulemap
replace symbol link for public header
This commit is contained in:
parent
27455638aa
commit
81b96205af
@ -11,8 +11,8 @@ let package = Package(
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
||||
.library(
|
||||
name: "zstd",
|
||||
targets: [ "zstd" ])
|
||||
name: "libzstd",
|
||||
targets: [ "libzstd" ])
|
||||
],
|
||||
dependencies: [
|
||||
// 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 can depend on other targets in this package, and on products in packages this package depends on.
|
||||
.target(
|
||||
name: "zstd",
|
||||
name: "libzstd",
|
||||
path: "lib",
|
||||
sources: [ "common", "compress", "decompress", "dictBuilder" ],
|
||||
publicHeadersPath: "include",
|
||||
publicHeadersPath: "modulemap",
|
||||
cSettings: [
|
||||
.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 *
|
||||
}
|
Loading…
Reference in New Issue
Block a user