Package.swift 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 other packages.
  23. .executable(
  24. name: "CoverageReportGenerator",
  25. targets: ["CoverageReportGenerator"]
  26. ),
  27. .executable(
  28. name: "UpdatedFilesCollector",
  29. targets: ["UpdatedFilesCollector"]
  30. ),
  31. .executable(
  32. name: "IncrementalCoverageReportGenerator",
  33. targets: ["IncrementalCoverageReportGenerator"]
  34. ),
  35. .executable(
  36. name: "BinarySizeReportGenerator",
  37. targets: ["BinarySizeReportGenerator"]
  38. ),
  39. ],
  40. dependencies: [
  41. .package(url: "https://github.com/apple/swift-argument-parser", from: "0.2.0"),
  42. ],
  43. targets: [
  44. .target(
  45. name: "CoverageReportGenerator",
  46. dependencies: [
  47. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  48. "Utils",
  49. ]
  50. ),
  51. .target(
  52. name: "UpdatedFilesCollector",
  53. dependencies: [
  54. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  55. ]
  56. ),
  57. .target(
  58. name: "IncrementalCoverageReportGenerator",
  59. dependencies: [
  60. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  61. "Utils",
  62. ]
  63. ),
  64. .target(
  65. name: "BinarySizeReportGenerator",
  66. dependencies: [
  67. .product(name: "ArgumentParser", package: "swift-argument-parser"),
  68. "Utils",
  69. ]
  70. ),
  71. .target(
  72. name: "Utils"
  73. ),
  74. ]
  75. )