Package.swift 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // swift-tools-version:5.3
  2. // The swift-tools-version declares the minimum version of Swift required to build this package.
  3. // Copyright 2021 Google LLC
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. import PackageDescription
  17. let package = Package(
  18. name: "GoogleSignIn",
  19. platforms: [.iOS(.v9)],
  20. products: [
  21. .library(
  22. name: "GoogleSignIn",
  23. targets: ["GoogleSignIn"]
  24. ),
  25. ],
  26. dependencies: [
  27. .package(
  28. name: "AppAuth",
  29. url: "https://github.com/openid/AppAuth-iOS.git",
  30. "1.4.0" ..< "2.0.0"),
  31. .package(
  32. name: "GTMAppAuth",
  33. url: "https://github.com/google/GTMAppAuth.git",
  34. "1.2.0" ..< "2.0.0"),
  35. .package(
  36. name: "GTMSessionFetcher",
  37. url: "https://github.com/google/gtm-session-fetcher.git",
  38. "1.5.0" ..< "2.0.0"),
  39. ],
  40. targets: [
  41. .target(
  42. name: "GoogleSignIn",
  43. dependencies: [
  44. .product(name:"AppAuth", package: "AppAuth"),
  45. .product(name:"GTMAppAuth", package: "GTMAppAuth"),
  46. .product(name:"GTMSessionFetcherCore", package: "GTMSessionFetcher"),
  47. ],
  48. path: "GoogleSignIn/Sources",
  49. publicHeadersPath: "Public",
  50. cSettings: [
  51. .headerSearchPath("../../"),
  52. ],
  53. linkerSettings: [
  54. .linkedFramework("CoreGraphics"),
  55. .linkedFramework("CoreText"),
  56. .linkedFramework("Foundation"),
  57. .linkedFramework("LocalAuthentication"),
  58. .linkedFramework("Security"),
  59. .linkedFramework("UIKit"),
  60. ]
  61. )
  62. ],
  63. cLanguageStandard: .c99,
  64. cxxLanguageStandard: CXXLanguageStandard.gnucxx14
  65. )