Commit Graph

7 Commits

Author SHA1 Message Date
Hamish Knight
38c1d28197 [xcodegen] Fix hasPrefix for paths
The intention here was to do a component-wise
prefix check, not sure why I did a string prefix
check. Switch to component prefix and rename to
`starts(with:)` to match `FilePath`.
2025-01-02 15:06:24 +00:00
Hamish Knight
14aec1bd3d [xcodegen] Clean up buildable folder checking a bit
Factor out the checking and consistently apply the
"all sources files must be covered" rule across
both Clang and Swift targets.
2024-12-15 17:47:54 +00:00
Hamish Knight
486cd42bba [xcodegen] Avoid buildable folders for mixed Swift targets
If a Swift target has sources in its folder that
aren't part of the target, we can't form a buildable
folder.
2024-12-14 19:53:51 +00:00
Hamish Knight
54bf65b2e9 [xcodegen] Include Obj-C(++) sources
Can't believe I missed these for so long.
2024-12-14 19:53:51 +00:00
Hamish Knight
dfe1f9cc53 [xcodegen] Infer project root from xcodegen location
Instead of inferring from the build directory location,
infer from the location of swift-xcodegen itself since
we know that's in the swift repo.
2024-12-14 14:30:55 +00:00
Hamish Knight
5ff60d014b [xcodegen] Add file references to project first
This requires ensuring we check that we're not
ever attempting to add a group under an existing
folder reference. This will be required for
buildable folders.
2024-11-09 20:01:37 +00:00
Hamish Knight
03d8ea5248 Introduce swift-xcodegen
This is a tool specifically designed to generate
Xcode projects for the Swift repo (as well as a
couple of adjacent repos such as LLVM and Clang).
It aims to provide a much more user-friendly experience
than the CMake Xcode generation (`build-script --xcode`).
2024-11-05 22:42:10 +00:00