Skip to content

Commit

Permalink
docs: Readd wasm-cc example config (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Jul 31, 2024
1 parent 219fd1c commit fc84b1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
5 changes: 4 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,16 @@ filegroup(
"**/*",
],
exclude = [
"BUILD",
".git/**/*",
"bazel-*/**/*",
"**/node_modules/**",
"**/*.rst",
"win32*",
],
),
) + [
"//wasm-cc:files",
],
)

pkg_tar(
Expand Down
27 changes: 11 additions & 16 deletions wasm-cc/BUILD
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
load("@bazel_skylib//lib:selects.bzl", "selects")
load(
"//bazel:envoy_build_system.bzl",
"envoy_package",
)
load("//bazel/wasm:wasm.bzl", "envoy_wasm_cc_binary")
# load("@envoy//bazel/wasm:wasm.bzl", "envoy_wasm_cc_binary")

licenses(["notice"]) # Apache 2

envoy_package()

exports_files(["example.rst"])

selects.config_setting_group(
Expand Down Expand Up @@ -36,17 +30,18 @@ filegroup(
}),
)

envoy_wasm_cc_binary(
name = "envoy_filter_http_wasm_example.wasm",
srcs = ["envoy_filter_http_wasm_example.cc"],
)
# envoy_wasm_cc_binary(
# name = "envoy_filter_http_wasm_example.wasm",
# srcs = ["envoy_filter_http_wasm_example.cc"],
# )

envoy_wasm_cc_binary(
name = "envoy_filter_http_wasm_updated_example.wasm",
srcs = ["envoy_filter_http_wasm_updated_example.cc"],
)
# envoy_wasm_cc_binary(
# name = "envoy_filter_http_wasm_updated_example.wasm",
# srcs = ["envoy_filter_http_wasm_updated_example.cc"],
# )

filegroup(
name = "files",
srcs = glob(["**/*"], exclude = ["example.rst"]),
srcs = glob(["**/*"], exclude = ["example.rst", "BUILD"]),
visibility = ["//visibility:public"],
)

0 comments on commit fc84b1b

Please sign in to comment.