Commit Graph

10 Commits

Author SHA1 Message Date
Eric Miotto
4efbe16a6b [Runtimes][CMake] Refactor FindSwiftCore to put focus on targets...
...instead of platforms.

Notable changes/flags:
* Append to variables controlling paths and names, to allow for user
  configuration
* add `SwiftCore_USE_STATIC_LIBS` to generate static archives
* use PlatformInfo variables to get the platform and arch subfolders
  (where appropriate)
* add include guards to ensure PlatformInfo and FindSwiftCore are
    included once in a project
* search for the appropriate static or import library under Windows

Addresses rdar://152838903
2025-06-17 15:39:16 -07:00
Saleem Abdulrasool
ce681898b3 runtimes: add Android search handling for SwiftCore
This updates the search handling to account for Android SDK searches on
Windows. This is required to repair the nightly builds.
2025-06-02 17:36:18 -07:00
Eric Miotto
794fe00351 Merge pull request #81680 from edymtt/edymtt/fix-target-case-find-swift-core
[Runtimes][CMake] Rename `SwiftCore` target to `swiftCore`
2025-05-22 11:19:15 -07:00
Eric Miotto
64da069187 [Runtimes][CMake] Rename SwiftCore target to swiftCore
This matches the case that we use in the Runtimes build system, so we
rely the exported target instead of adding `-lswiftCore`.

Addresses rdar://151700669
2025-05-21 08:52:15 -07:00
Justice Adams
dfa4bf7348 [cmake] include CheckCompilerFlag in CatalystSupport (#81623)
add missing import
2025-05-20 11:33:14 -05:00
Justice Adams
758ae18063 [cmake] add FindSwiftCore module for supplemental libraries (#81215)
Add FindSwiftCore to Supplemental cmake modules so we can link against
libswiftCore in a given end users SDK if `SwiftCore_DIR ` is not
provided
2025-05-15 10:55:48 -05:00
Saleem Abdulrasool
babfa098fc Runtimes: install the .swiftdoc interface as well
This is part of the development component for the module and is part of
the interface definition. This content is consumed by the user during
development.
2025-05-12 17:36:18 -07:00
Saleem Abdulrasool
0f2ed0eb43 Runtimes: refactor swift interface installation
Extract the `install_swift_interface` function into a new file. This
is always invoked to perform the installation of the Swift interfaces as
well as the binary module. Additionally, it prepares for a future
refactoring which will also install the swift documentation interface.
2025-05-12 17:34:43 -07:00
Justice Adams
c8f1de2738 [Cmake] Add supplemental cmake modules (#81180)
Adds common CMAKE modules to be used by the supplemental libraries.
Namely:
* ResourceEmbedding
* PlatformInfo
* gyb
* EmitSwiftInterface
* CatalystSupport
2025-04-30 14:23:31 -07:00
Evan Wilde
bab0db68ad [CMake] Build _StringProcessing and RegexBuilder
First pass at getting the StringProcessing and RegexBuilder runtime
libraries built with pure CMake.
2025-03-26 17:37:11 -07:00