mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add SwiftShims as an interface library
This commit is contained in:
@@ -12,3 +12,4 @@ include(CompilerSettings)
|
||||
include_directories(include)
|
||||
|
||||
add_subdirectory(LLVMSupport)
|
||||
add_subdirectory(SwiftShims/swift/shims)
|
||||
|
||||
37
Runtimes/Core/SwiftShims/swift/shims/CMakeLists.txt
Normal file
37
Runtimes/Core/SwiftShims/swift/shims/CMakeLists.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
# Swift shim header files
|
||||
install(FILES
|
||||
AssertionReporting.h
|
||||
CoreFoundationShims.h
|
||||
EmbeddedShims.h
|
||||
FoundationShims.h
|
||||
GlobalObjects.h
|
||||
HeapObject.h
|
||||
KeyPath.h
|
||||
LibcOverlayShims.h
|
||||
LibcShims.h
|
||||
MetadataSections.h
|
||||
Random.h
|
||||
RefCount.h
|
||||
Reflection.h
|
||||
RuntimeShims.h
|
||||
RuntimeStubs.h
|
||||
SwiftStdbool.h
|
||||
SwiftStddef.h
|
||||
SwiftStdint.h
|
||||
System.h
|
||||
Target.h
|
||||
ThreadLocalStorage.h
|
||||
UnicodeData.h
|
||||
Visibility.h
|
||||
_SwiftConcurrency.h
|
||||
_SwiftDistributed.h
|
||||
_SynchronizationShims.h
|
||||
module.modulemap
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/swift/shims")
|
||||
|
||||
add_library(swiftShims INTERFACE)
|
||||
target_include_directories(swiftShims INTERFACE
|
||||
$<$<COMPILE_LANGUAGE:C,CXX>:${CMAKE_CURRENT_SOURCE_DIR}/../../>
|
||||
$<$<COMPILE_LANGUAGE:Swift>:${CMAKE_CURRENT_SOURCE_DIR}>)
|
||||
target_compile_options(swiftShims INTERFACE
|
||||
$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc$<SEMICOLON>-fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR}/module.modulemap>)
|
||||
@@ -52,7 +52,8 @@ endfunction()
|
||||
copy_library_sources(include "" "Core")
|
||||
|
||||
set(CoreLibs
|
||||
LLVMSupport)
|
||||
LLVMSupport
|
||||
SwiftShims)
|
||||
|
||||
# Add these as we get them building
|
||||
# core
|
||||
|
||||
Reference in New Issue
Block a user