Package.swift 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // swift-tools-version:6.0
  2. // The swift-tools-version declares the minimum version of Swift required to build this package.
  3. /*
  4. * Copyright 2025 Google LLC
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. import PackageDescription
  19. /// Package containing CLI executables for our larger scripts that are a bit harder to follow in
  20. /// bash form, or that need more advanced flag/optional requirements.
  21. let package = Package(
  22. name: "RepoScripts",
  23. platforms: [.macOS(.v15)],
  24. products: [
  25. .executable(name: "tests", targets: ["Tests"]),
  26. ],
  27. dependencies: [
  28. .package(url: "https://github.com/apple/swift-argument-parser", exact: "1.6.2"),
  29. .package(url: "https://github.com/apple/swift-log", exact: "1.6.2"),
  30. ],
  31. targets: [
  32. .executableTarget(
  33. name: "Tests",
  34. dependencies: [
  35. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  36. .product(name: "Logging", package: "swift-log"),
  37. .byName(name: "Util"),
  38. ]
  39. ),
  40. .target(
  41. name: "Util",
  42. dependencies: [
  43. .product(name: "Logging", package: "swift-log"),
  44. ]
  45. ),
  46. ]
  47. )