100mango
(100mango)
1
In Swift Package Manager, we only can support a single public search path:
publicHeadersPath
The path to the directory containing public headers of a C-family target.
.target(
name: "iOS",
dependencies: ["fmt"],
publicHeadersPath: "include")
But in many cases, our public headers are not in the same directory。
In GYP ( Generate Your Projects), we can accomplish this by:
'mac_framework_headers': [
'<!@(python ../script/glob.py ../iOS/Sources/Generation *.h)',
'../CrossPlatform/Sources/Code/platform/usecase/Base/UseCaseDef.hpp',
'../iOS/Sources/Code/XXX.h',
'../iOS/Sources/Code/XXXX.h',
],
So how do we expose these headers together in SPM? Thanks a lot.