Skip to content

Commit f004511

Browse files
committed
Add CMake build system for SwiftIfConfig
1 parent fc41db4 commit f004511

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Sources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ add_subdirectory(SwiftParser)
1616
add_subdirectory(SwiftParserDiagnostics)
1717
add_subdirectory(SwiftRefactor)
1818
add_subdirectory(SwiftOperators)
19+
add_subdirectory(SwiftIfConfig)
1920
add_subdirectory(SwiftSyntaxBuilder)
2021
add_subdirectory(SwiftSyntaxMacros)
2122
add_subdirectory(SwiftSyntaxMacroExpansion)

Sources/SwiftIfConfig/CMakeLists.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This source file is part of the Swift.org open source project
2+
#
3+
# Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
4+
# Licensed under Apache License v2.0 with Runtime Library Exception
5+
#
6+
# See http://swift.org/LICENSE.txt for license information
7+
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8+
9+
add_swift_host_library(SwiftIfConfig
10+
BuildConfiguration.swift
11+
IfConfigEvaluation.swift
12+
IfConfigFunctions.swift
13+
IfConfigRewriter.swift
14+
IfConfigState.swift
15+
IfConfigVisitor.swift
16+
SyntaxLiteralUtils.swift
17+
VersionTuple.swift
18+
)
19+
20+
target_link_libraries(SwiftIfConfig PUBLIC
21+
SwiftSyntax
22+
SwiftDiagnostics
23+
SwiftOperators
24+
SwiftParser)

0 commit comments

Comments
 (0)