mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
and its transitive closure of overlay dependencies. [utils]:find-overlay-deps-closure.sh: Add a bash script to find the closure of all other overlays required by a target overlay.
24 lines
994 B
CMake
24 lines
994 B
CMake
# All libraries in this directory tree are overlays that depend on Darwin SDK.
|
|
|
|
set(SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES)
|
|
if(SWIFT_BUILD_DYNAMIC_SDK_OVERLAY)
|
|
list(APPEND SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES SHARED)
|
|
endif()
|
|
if(SWIFT_BUILD_STATIC_SDK_OVERLAY)
|
|
list(APPEND SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES STATIC)
|
|
endif()
|
|
|
|
set(all_overlays "AppKit;AssetsLibrary;AVFoundation;CallKit;CloudKit;Contacts;CoreAudio;CoreData;CoreGraphics;CoreImage;CoreLocation;CoreMedia;CryptoTokenKit;Dispatch;Foundation;GameplayKit;GLKit;HomeKit;IOKit;Intents;MapKit;ObjectiveC;OpenCL;os;Photos;QuartzCore;SafariServices;SceneKit;simd;SpriteKit;UIKit;WatchKit;XCTest;XPC")
|
|
|
|
if(DEFINED SWIFT_OVERLAY_TARGETS)
|
|
set(overlays_to_build ${SWIFT_OVERLAY_TARGETS})
|
|
else()
|
|
set(overlays_to_build ${all_overlays})
|
|
endif()
|
|
|
|
message(STATUS "Building overlays: ${overlays_to_build}")
|
|
foreach(overlay ${overlays_to_build})
|
|
message(STATUS "INCLUDING OVERLAY: ${overlay}")
|
|
add_subdirectory(${overlay})
|
|
endforeach()
|