Package.swift 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // swift-tools-version:5.3
  2. // The swift-tools-version declares the minimum version of Swift required to build this package.
  3. /*
  4. * Copyright 2021 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. let package = Package(
  20. name: "CodeCoverage",
  21. products: [
  22. // Products define the executables and libraries a package produces, and make them visible to
  23. // other packages.
  24. .executable(
  25. name: "CoverageReportGenerator",
  26. targets: ["CoverageReportGenerator"]
  27. ),
  28. .executable(
  29. name: "UpdatedFilesCollector",
  30. targets: ["UpdatedFilesCollector"]
  31. ),
  32. .executable(
  33. name: "IncrementalCoverageReportGenerator",
  34. targets: ["IncrementalCoverageReportGenerator"]
  35. ),
  36. .executable(
  37. name: "BinarySizeReportGenerator",
  38. targets: ["BinarySizeReportGenerator"]
  39. ),
  40. ],
  41. dependencies: [
  42. .package(url: "https://github.com/apple/swift-argument-parser", from: "0.2.0"),
  43. ],
  44. targets: [
  45. .target(
  46. name: "CoverageReportGenerator",
  47. dependencies: [
  48. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  49. "Utils",
  50. ]
  51. ),
  52. .target(
  53. name: "UpdatedFilesCollector",
  54. dependencies: [
  55. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  56. ]
  57. ),
  58. .target(
  59. name: "IncrementalCoverageReportGenerator",
  60. dependencies: [
  61. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  62. "Utils",
  63. ]
  64. ),
  65. .target(
  66. name: "BinarySizeReportGenerator",
  67. dependencies: [
  68. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  69. "Utils",
  70. ]
  71. ),
  72. .target(
  73. name: "Utils"
  74. ),
  75. ]
  76. )