forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to upstream gRPC-haskell (digital-asset#2642)
* Switch to upstream gRPC-haskell
- Loading branch information
1 parent
6d1d0b8
commit 67c2e2a
Showing
110 changed files
with
118 additions
and
11,739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
load("@rules_haskell//haskell:defs.bzl", "haskell_library") | ||
load("@ai_formation_hazel//:hazel.bzl", "hazel_library") | ||
|
||
haskell_library( | ||
name = "lib", | ||
srcs = glob(["src/**/*.hs"]), | ||
deps = [ | ||
hazel_library("async"), | ||
hazel_library("base"), | ||
hazel_library("bytestring"), | ||
hazel_library("grpc-haskell-core"), | ||
hazel_library("managed"), | ||
hazel_library("proto3-suite"), | ||
hazel_library("proto3-wire"), | ||
], | ||
src_strip_prefix = "src", | ||
visibility = ["//visibility:public"], | ||
) |
9 changes: 3 additions & 6 deletions
9
...third-party/gRPC-haskell/core/BUILD.bazel → 3rdparty/haskell/BUILD.grpc-haskell-core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
diff --git a/hazel/third_party/cabal2bazel/bzl/cabal_package.bzl b/hazel/third_party/cabal2bazel/bzl/cabal_package.bzl | ||
index a06b45c0..ed084ac4 100644 | ||
--- a/hazel/third_party/cabal2bazel/bzl/cabal_package.bzl | ||
+++ b/hazel/third_party/cabal2bazel/bzl/cabal_package.bzl | ||
@@ -176,9 +176,11 @@ def _find_module_by_ending(modulePath, ending, sourceDirs): | ||
module source file. See `_find_module` for details. | ||
""" | ||
|
||
+ fileName = modulePath + "." + ending | ||
+ | ||
# Find module source file in source directories. | ||
files = native.glob([ | ||
- paths.join(d if d != "." else "", modulePath + "." + ending) | ||
+ paths.join(d if d != "." else "", fileName) | ||
for d in sourceDirs | ||
]) | ||
if len(files) == 0: | ||
@@ -194,6 +196,7 @@ def _find_module_by_ending(modulePath, ending, sourceDirs): | ||
return struct( | ||
type = ending, | ||
src = file, | ||
+ prefix = file[:-len(fileName)], | ||
out = _module_output(file, ending), | ||
boot = bootFile, | ||
) | ||
@@ -212,6 +215,7 @@ def _find_module(module, sourceDirs): | ||
`type`: The ending. | ||
`src`: The source file that was found. | ||
E.g. `Some/Module/Name.y` | ||
+ `prefix`: The directory prefix before the file name of the module, E.g. `src`. | ||
`out`: The expected generated output module file. | ||
E.g. `Some/Module/Name.hs`. | ||
`bootFile`: Haskell boot file path or `None` if no boot file was found. | ||
@@ -318,6 +322,7 @@ def _get_build_attrs( | ||
c2hs_library( | ||
name = chs_name, | ||
srcs = [info.src], | ||
+ src_strip_prefix = info.prefix, | ||
deps = ( | ||
_get_extra_libs(build_info.extraLibs, extra_libs) + | ||
[cbits_name] + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/core/grpc-haskell-core.cabal b/core/grpc-haskell-core.cabal | ||
index 8c67ce9..8ffd432 100644 | ||
--- a/core/grpc-haskell-core.cabal | ||
+++ b/core/grpc-haskell-core.cabal | ||
@@ -10,6 +10,7 @@ copyright: Copyright 2016 Awake Networks | ||
category: Network | ||
build-type: Simple | ||
cabal-version: >=1.10 | ||
+extra-source-files: include/grpc_haskell.h | ||
|
||
Flag Debug | ||
Description: Adds debug logging. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.