[CMAKE] Add Plist creation to swiftCore (#77960)

* update Resync to copy plist template

* include Plist in linked library for Darwin platforms

* only embedd plist on apple platforms

* formatting fix
This commit is contained in:
Justice Adams
2024-12-17 15:49:54 -08:00
committed by GitHub
parent a7dcab5045
commit 4666a418e0
4 changed files with 47 additions and 0 deletions

View File

@@ -59,6 +59,18 @@ copy_library_sources(include "" "Core")
# Copy magic linker symbols
copy_library_sources("linker-support" "" "Core")
# Copy Plist
message(STATUS "plist[${StdlibSources}/Info.plist.in] -> Core/Info.plist.in")
file(COPY_FILE
"${StdlibSources}/Info.plist.in" # From
"${CMAKE_CURRENT_LIST_DIR}/Core/Info.plist.in" # To
RESULT _output
ONLY_IF_DIFFERENT)
if(_output)
message(SEND_ERROR
"Copy ${StdlibSources}/Info.plist.in] -> Core/Info.plist.in Failed: ${_output}")
endif()
set(CoreLibs
LLVMSupport
SwiftShims