diff --git a/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c b/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c new file mode 100644 index 0000000..62e5402 --- /dev/null +++ b/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c @@ -0,0 +1,99 @@ + +// When using IL2CPP, Unity still tries to link with the static grpc library even if the DLL will be used. +// This file creates dummy functions just to please the linker. + +void grpcsharp_init() {} +void grpcsharp_shutdown() {} +void grpcsharp_version_string() {} +void grpcsharp_batch_context_create() {} +void grpcsharp_batch_context_recv_initial_metadata() {} +void grpcsharp_batch_context_recv_message_length() {} +void grpcsharp_batch_context_recv_message_to_buffer() {} +void grpcsharp_batch_context_recv_status_on_client_status() {} +void grpcsharp_batch_context_recv_status_on_client_details() {} +void grpcsharp_batch_context_recv_status_on_client_trailing_metadata() {} +void grpcsharp_batch_context_recv_close_on_server_cancelled() {} +void grpcsharp_batch_context_reset() {} +void grpcsharp_batch_context_destroy() {} +void grpcsharp_request_call_context_create() {} +void grpcsharp_request_call_context_call() {} +void grpcsharp_request_call_context_method() {} +void grpcsharp_request_call_context_host() {} +void grpcsharp_request_call_context_deadline() {} +void grpcsharp_request_call_context_request_metadata() {} +void grpcsharp_request_call_context_reset() {} +void grpcsharp_request_call_context_destroy() {} +void grpcsharp_composite_call_credentials_create() {} +void grpcsharp_call_credentials_release() {} +void grpcsharp_call_cancel() {} +void grpcsharp_call_cancel_with_status() {} +void grpcsharp_call_start_unary() {} +void grpcsharp_call_start_client_streaming() {} +void grpcsharp_call_start_server_streaming() {} +void grpcsharp_call_start_duplex_streaming() {} +void grpcsharp_call_send_message() {} +void grpcsharp_call_send_close_from_client() {} +void grpcsharp_call_send_status_from_server() {} +void grpcsharp_call_recv_message() {} +void grpcsharp_call_recv_initial_metadata() {} +void grpcsharp_call_start_serverside() {} +void grpcsharp_call_send_initial_metadata() {} +void grpcsharp_call_set_credentials() {} +void grpcsharp_call_get_peer() {} +void grpcsharp_call_destroy() {} +void grpcsharp_channel_args_create() {} +void grpcsharp_channel_args_set_string() {} +void grpcsharp_channel_args_set_integer() {} +void grpcsharp_channel_args_destroy() {} +void grpcsharp_override_default_ssl_roots() {} +void grpcsharp_ssl_credentials_create() {} +void grpcsharp_composite_channel_credentials_create() {} +void grpcsharp_channel_credentials_release() {} +void grpcsharp_insecure_channel_create() {} +void grpcsharp_secure_channel_create() {} +void grpcsharp_channel_create_call() {} +void grpcsharp_channel_check_connectivity_state() {} +void grpcsharp_channel_watch_connectivity_state() {} +void grpcsharp_channel_get_target() {} +void grpcsharp_channel_destroy() {} +void grpcsharp_sizeof_grpc_event() {} +void grpcsharp_completion_queue_create_async() {} +void grpcsharp_completion_queue_create_sync() {} +void grpcsharp_completion_queue_shutdown() {} +void grpcsharp_completion_queue_next() {} +void grpcsharp_completion_queue_pluck() {} +void grpcsharp_completion_queue_destroy() {} +void gprsharp_free() {} +void grpcsharp_metadata_array_create() {} +void grpcsharp_metadata_array_add() {} +void grpcsharp_metadata_array_count() {} +void grpcsharp_metadata_array_get_key() {} +void grpcsharp_metadata_array_get_value() {} +void grpcsharp_metadata_array_destroy_full() {} +void grpcsharp_redirect_log() {} +void grpcsharp_metadata_credentials_create_from_plugin() {} +void grpcsharp_metadata_credentials_notify_from_plugin() {} +void grpcsharp_ssl_server_credentials_create() {} +void grpcsharp_server_credentials_release() {} +void grpcsharp_server_create() {} +void grpcsharp_server_register_completion_queue() {} +void grpcsharp_server_add_insecure_http2_port() {} +void grpcsharp_server_add_secure_http2_port() {} +void grpcsharp_server_start() {} +void grpcsharp_server_request_call() {} +void grpcsharp_server_cancel_all_calls() {} +void grpcsharp_server_shutdown_and_notify_callback() {} +void grpcsharp_server_destroy() {} +void grpcsharp_call_auth_context() {} +void grpcsharp_auth_context_peer_identity_property_name() {} +void grpcsharp_auth_context_property_iterator() {} +void grpcsharp_auth_property_iterator_next() {} +void grpcsharp_auth_context_release() {} +void gprsharp_now() {} +void gprsharp_inf_future() {} +void gprsharp_inf_past() {} +void gprsharp_convert_clock_type() {} +void gprsharp_sizeof_timespec() {} +void grpcsharp_test_callback() {} +void grpcsharp_test_nop() {} +void grpcsharp_test_override_method() {} diff --git a/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c.meta b/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c.meta new file mode 100644 index 0000000..d93af38 --- /dev/null +++ b/Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c.meta @@ -0,0 +1,93 @@ +fileFormatVersion: 2 +guid: 576b78662f1f8af4fa751f709b620f52 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + isOverridable: 0 + platformData: + - first: + '': Any + second: + enabled: 0 + settings: + Exclude Android: 0 + Exclude Editor: 1 + Exclude Linux: 1 + Exclude Linux64: 1 + Exclude LinuxUniversal: 1 + Exclude OSXUniversal: 1 + Exclude Win: 0 + Exclude Win64: 0 + - first: + Android: Android + second: + enabled: 1 + settings: + CPU: ARMv7 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Facebook: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Facebook: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Linux + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: LinuxUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Win + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: