From 076c0210e56d799849ddc1fb9234fd8a10c1b055 Mon Sep 17 00:00:00 2001 From: Nate Cook Date: Mon, 29 Sep 2025 09:48:37 -0500 Subject: [PATCH] Remove CMakeList.txts This library doesn't support CMake builds directly, only via inclusion in the Swift project, so these files are out of date and aren't necessary to maintain. --- CMakeLists.txt | 17 ----- Sources/CMakeLists.txt | 5 -- Sources/RegexBuilder/CMakeLists.txt | 11 ---- Sources/VariadicsGenerator/CMakeLists.txt | 7 --- Sources/_RegexParser/CMakeLists.txt | 30 --------- Sources/_StringProcessing/CMakeLists.txt | 76 ----------------------- 6 files changed, 146 deletions(-) delete mode 100644 CMakeLists.txt delete mode 100644 Sources/CMakeLists.txt delete mode 100644 Sources/RegexBuilder/CMakeLists.txt delete mode 100644 Sources/VariadicsGenerator/CMakeLists.txt delete mode 100644 Sources/_RegexParser/CMakeLists.txt delete mode 100644 Sources/_StringProcessing/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index ad640f43..00000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ - -cmake_minimum_required(VERSION 3.18) -project(SwiftExperimentalStringProcessing - LANGUAGES Swift) - -if(CMAKE_SYSTEM_NAME STREQUAL Windows OR CMAKE_SYSTEM_NAME STREQUAL Darwin) - option(BUILD_SHARED_LIBS "Build shared libraries by default" YES) -endif() - -set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) -set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift) - -find_package(ArgumentParser CONFIG) - -add_subdirectory(Sources) diff --git a/Sources/CMakeLists.txt b/Sources/CMakeLists.txt deleted file mode 100644 index 0cd79e24..00000000 --- a/Sources/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ - -add_subdirectory(RegexBuilder) -add_subdirectory(_RegexParser) -add_subdirectory(_StringProcessing) -add_subdirectory(VariadicsGenerator) diff --git a/Sources/RegexBuilder/CMakeLists.txt b/Sources/RegexBuilder/CMakeLists.txt deleted file mode 100644 index 77a8340c..00000000 --- a/Sources/RegexBuilder/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ - -add_library(RegexBuilder - Algorithms.swift - Anchor.swift - Builder.swift - CharacterClass.swift - DSL.swift - Variadics.swift) -target_compile_options(RegexBuilder PRIVATE - -enable-library-evolution - -Xfrontend -enable-experimental-pairwise-build-block) diff --git a/Sources/VariadicsGenerator/CMakeLists.txt b/Sources/VariadicsGenerator/CMakeLists.txt deleted file mode 100644 index 8ea54397..00000000 --- a/Sources/VariadicsGenerator/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ - -add_executable(VariadicsGenerator - VariadicsGenerator.swift) -target_compile_options(VariadicsGenerator PRIVATE - -parse-as-library) -target_link_libraries(VariadicsGenerator PUBLIC - ArgumentParser) diff --git a/Sources/_RegexParser/CMakeLists.txt b/Sources/_RegexParser/CMakeLists.txt deleted file mode 100644 index 1df1b767..00000000 --- a/Sources/_RegexParser/CMakeLists.txt +++ /dev/null @@ -1,30 +0,0 @@ - -add_library(_RegexParser - AST/AST.swift - AST/ASTAction.swift - AST/ASTProtocols.swift - AST/Atom.swift - AST/Conditional.swift - AST/CustomCharClass.swift - AST/Group.swift - AST/MatchingOptions.swift - AST/Quantification.swift - Parse/CaptureList.swift - Parse/CaptureStructure.swift - Parse/CharacterPropertyClassification.swift - Parse/CompilerInterface.swift - Parse/DelimiterLexing.swift - Parse/Diagnostics.swift - Parse/LexicalAnalysis.swift - Parse/Parse.swift - Parse/Sema.swift - Parse/Source.swift - Parse/SourceLocation.swift - Parse/SyntaxOptions.swift - Printing/DumpAST.swift - Printing/PrettyPrinter.swift - Printing/PrintAsCanonical.swift - Printing/RenderRanges.swift - TreeProtocols.swift) -target_compile_options(_RegexParser PRIVATE - -enable-library-evolution) diff --git a/Sources/_StringProcessing/CMakeLists.txt b/Sources/_StringProcessing/CMakeLists.txt deleted file mode 100644 index 0ebe2aed..00000000 --- a/Sources/_StringProcessing/CMakeLists.txt +++ /dev/null @@ -1,76 +0,0 @@ - -add_library(_StringProcessing - Algorithms/Algorithms/Contains.swift - Algorithms/Algorithms/FirstRange.swift - Algorithms/Algorithms/Ranges.swift - Algorithms/Algorithms/Replace.swift - Algorithms/Algorithms/Split.swift - Algorithms/Algorithms/StartsWith.swift - Algorithms/Algorithms/Trim.swift - Algorithms/Consumers/CollectionConsumer.swift - Algorithms/Consumers/FixedPatternConsumer.swift - Algorithms/Consumers/RegexConsumer.swift - Algorithms/Matching/FirstMatch.swift - Algorithms/Matching/Matches.swift - Algorithms/Matching/MatchingCollectionSearcher.swift - Algorithms/Matching/MatchReplace.swift - Algorithms/Matching/MatchResult.swift - Algorithms/Searchers/CollectionSearcher.swift - Algorithms/Searchers/ZSearcher.swift - Engine/Backtracking.swift - Engine/InstPayload.swift - Engine/Instruction.swift - Engine/MEBuilder.swift - Engine/MEBuiltins.swift - Engine/MECapture.swift - Engine/MEProgram.swift - Engine/MEQuantify.swift - Engine/Metrics.swift - Engine/Processor.swift - Engine/Registers.swift - Engine/Structuralize.swift - Engine/Tracing.swift - Regex/AnyRegexOutput.swift - Regex/ASTConversion.swift - Regex/Core.swift - Regex/CustomComponents.swift - Regex/DSLTree.swift - Regex/Match.swift - Regex/Options.swift - Unicode/ASCII.swift - Unicode/CaseConversion.swift - Unicode/CharacterProps.swift - Unicode/Comparison.swift - Unicode/Decoding.swift - Unicode/Encodings.swift - Unicode/Formatting.swift - Unicode/NecessaryEvils.swift - Unicode/NFC.swift - Unicode/NumberParsing.swift - Unicode/ScalarProps.swift - Unicode/Transcoding.swift - Unicode/UCD.swift - Unicode/Validation.swift - Unicode/WordBreaking.swift - Utility/AsciiBitset.swift - Utility/ASTBuilder.swift - Utility/Misc.swift - Utility/Protocols.swift - Utility/RegexFactory.swift - Utility/Traced.swift - Utility/TypedIndex.swift - Utility/TypedInt.swift - Utility/TypeVerification.swift - _CharacterClassModel.swift - ByteCodeGen.swift - Capture.swift - Compiler.swift - ConsumerInterface.swift - Executor.swift - LiteralPrinter.swift - MatchingOptions.swift - PrintAsPattern.swift) -target_compile_options(_StringProcessing PRIVATE - -enable-library-evolution) -target_link_libraries(_StringProcessing PUBLIC - _RegexParser)