-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from ikesyo/fix-collectpublicheaders-notdupli…
…catedsymlinks Fix collectPublicHeaders' notDuplicatedSymlinks logic
- Loading branch information
Showing
12 changed files
with
129 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Tests/ScipioKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.DS_Store | ||
/.build | ||
/Packages | ||
/*.xcodeproj | ||
xcuserdata/ | ||
DerivedData/ | ||
.swiftpm/config/registries.json | ||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | ||
.netrc |
25 changes: 25 additions & 0 deletions
25
Tests/ScipioKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/Package.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// swift-tools-version: 5.7 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "ClangPackageWithSymbolicLinkHeaders", | ||
platforms: [.iOS(.v11)], | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "some_lib", | ||
targets: ["some_lib"]), | ||
], | ||
dependencies: [ | ||
// Dependencies declare other packages that this package depends on. | ||
// .package(url: /* package url */, from: "1.0.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "some_lib", | ||
dependencies: [] | ||
), | ||
] | ||
) |
3 changes: 3 additions & 0 deletions
3
...ScipioKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ClangPackageWithSymbolicLinkHeaders | ||
|
||
A description of this package. |
1 change: 1 addition & 0 deletions
1
...cipioKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/external_headers/a.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// a.h |
1 change: 1 addition & 0 deletions
1
...cipioKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/external_headers/b.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// b.h |
1 change: 1 addition & 0 deletions
1
...oKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/src/some_lib/include/a.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../external_headers/a.h |
1 change: 1 addition & 0 deletions
1
...oKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/src/some_lib/include/b.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../external_headers/b.h |
10 changes: 10 additions & 0 deletions
10
...ts/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/src/some_lib/include/some_lib.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef some_lib_h | ||
#define some_lib_h | ||
|
||
#include <stdio.h> | ||
#include "a.h" | ||
#include "b.h" | ||
|
||
int add(int lhs, int rhs); | ||
|
||
#endif /* some_lib_h */ |
1 change: 1 addition & 0 deletions
1
...sources/Fixtures/ClangPackageWithSymbolicLinkHeaders/src/some_lib/include/some_lib_dupe.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
some_lib.h |
5 changes: 5 additions & 0 deletions
5
...ioKitTests/Resources/Fixtures/ClangPackageWithSymbolicLinkHeaders/src/some_lib/some_lib.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "include/some_lib.h" | ||
|
||
int add(int lhs, int rhs) { | ||
return lhs + rhs; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters