mirror of
https://github.com/apple/swift-log
synced 2026-11-28 04:14:20 +00:00
add CMake configurations for Sources targets
This commit is contained in:
1 parent
8cf29c68bb
commit
890fd0ba3a
3 files changed
+44
No files matched your search
@@ -0,0 +1,2 @@
|
||||
add_subdirectory(Logging)
|
||||
add_subdirectory(InMemoryLogging)
|
||||
@@ -0,0 +1,17 @@
|
||||
add_library(InMemoryLogging
|
||||
InMemoryLogHandler.swift)
|
||||
|
||||
set_target_properties(InMemoryLogging PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
||||
|
||||
target_compile_options(InMemoryLogging PRIVATE
|
||||
-enable-upcoming-feature ExistentialAny
|
||||
-enable-upcoming-feature MemberImportVisibility
|
||||
-enable-upcoming-feature InternalImportsByDefault
|
||||
-enable-upcoming-feature NonisolatedNonsendingByDefault
|
||||
-Xfrontend -require-explicit-sendable)
|
||||
|
||||
target_link_libraries(InMemoryLogging PRIVATE Logging)
|
||||
|
||||
_install_target(InMemoryLogging)
|
||||
set_property(GLOBAL APPEND PROPERTY SwiftLog_EXPORTS InMemoryLogging)
|
||||
@@ -0,0 +1,25 @@
|
||||
add_library(Logging
|
||||
Locks.swift
|
||||
LogEvent.swift
|
||||
LogHandler.swift
|
||||
Logger+Attributes.swift
|
||||
Logger+With.swift
|
||||
Logger.swift
|
||||
LoggingSystem.swift
|
||||
MetadataProvider.swift
|
||||
Handlers/MultiplexLogHandler.swift
|
||||
Handlers/StreamLogHandler.swift
|
||||
Handlers/SwiftLogNoOpLogHandler.swift)
|
||||
|
||||
set_target_properties(Logging PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
||||
|
||||
target_compile_options(Logging PRIVATE
|
||||
-enable-upcoming-feature ExistentialAny
|
||||
-enable-upcoming-feature MemberImportVisibility
|
||||
-enable-upcoming-feature InternalImportsByDefault
|
||||
-enable-upcoming-feature NonisolatedNonsendingByDefault
|
||||
-Xfrontend -require-explicit-sendable)
|
||||
|
||||
_install_target(Logging)
|
||||
set_property(GLOBAL APPEND PROPERTY SwiftLog_EXPORTS Logging)
|
||||
Reference in new issue
Block a user