Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spm load time #236

Merged
merged 12 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion Package.swift

This file was deleted.

117 changes: 117 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
import Foundation

var basePath = "native"

let package = Package(
name: "gRPC",
products: [
.library(
name: "gRPC-Core",
targets: [
"gRPC-Core",
]
),
.library(
name: "gRPC-cpp",
targets: [
"gRPC-cpp",
]
)
],

dependencies: [
.package(url: "https://github.com/firebase/abseil-cpp-SwiftPM.git", "0.20230802.0"..<"0.20230803.0"),
.package(url: "https://github.com/firebase/boringssl-SwiftPM.git", "0.32.0"..<"0.33.0"),
],

targets: [
.target(
name: "gRPC-Core",
dependencies: [
.product(name:"abseil", package: "abseil-cpp-SwiftPM"),
.product(name:"openssl_grpc", package: "boringssl-SwiftPM"),
],
path: basePath,
exclude: [
"src/objective-c/",
],
sources: [
"src/core/",
"third_party/re2/re2/",
"third_party/re2/util/",
"third_party/upb/upb/",
"third_party/utf8_range/naive.c",
"third_party/utf8_range/range2-neon.c",
"third_party/utf8_range/range2-sse.c",
],
resources: [
.copy("src/objective-c/PrivacyInfo.xcprivacy"),
],
publicHeadersPath: "spm-core-include",
cSettings: [
.headerSearchPath("./"),
.headerSearchPath("include/"),
.headerSearchPath("third_party/re2/"),
.headerSearchPath("third_party/upb/"),
.headerSearchPath("third_party/utf8_range/"),
.headerSearchPath("third_party/xxhash/"),
.headerSearchPath("src/core/ext/upb-gen/"),
.headerSearchPath("src/core/ext/upbdefs-gen/"),
.define("GRPC_ARES", to: "0"),
],
linkerSettings: [
.linkedFramework("CoreFoundation"),
.linkedLibrary("z"),
]
),
.target(
name: "gRPC-cpp",
dependencies: [
.product(name:"abseil", package: "abseil-cpp-SwiftPM"),
"gRPC-Core",
],
path: basePath,
exclude: [
"src/cpp/client/cronet_credentials.cc",
"src/cpp/common/alts_util.cc",
"src/cpp/common/alts_context.cc",
"src/cpp/common/insecure_create_auth_context.cc",
"src/cpp/server/admin/",
"src/cpp/server/channelz/",
"src/cpp/server/csds/",
"src/cpp/server/load_reporter/",
"src/cpp/ext/",
"src/cpp/util/error_details.cc",
"src/objective-c/examples/",
"src/objective-c/manual_tests/",
"src/objective-c/tests/",
"src/cpp/README.md",
],
sources: [
"src/cpp/",
],
resources: [
.copy("src/objective-c/PrivacyInfo.xcprivacy"),
],
publicHeadersPath: "spm-cpp-include",
cSettings: [
.headerSearchPath("./"),
.headerSearchPath("include/"),
.headerSearchPath("third_party/upb/"),
.headerSearchPath("src/core/ext/upb-gen"),
]
),
.testTarget(
name: "build-test",
dependencies: [
"gRPC-cpp",
],
path: basePath + "/test/spm_build"
),
],
cLanguageStandard: .gnu11,
cxxLanguageStandard: .cxx14
)
1,035 changes: 0 additions & 1,035 deletions native/Package.swift

This file was deleted.

102 changes: 0 additions & 102 deletions native/bazel/_gevent_test_main.py

This file was deleted.

60 changes: 0 additions & 60 deletions native/bazel/test_experiments.bzl

This file was deleted.

Binary file removed native/doc/images/stress_test_framework.png
Binary file not shown.
20 changes: 0 additions & 20 deletions native/examples/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions native/examples/android/binder/java/io/grpc/binder/cpp/README.md

This file was deleted.

This file was deleted.

Loading
Loading