diff markdown_converter/wasm/BUILD @ 156:cd35e600ae34

[MarkDown Converter] Fixed few things and made a test
author June Park <parkjune1995@gmail.com>
date Mon, 12 Jan 2026 15:20:39 -0800
parents
children f3084bca7317
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/markdown_converter/wasm/BUILD	Mon Jan 12 15:20:39 2026 -0800
@@ -0,0 +1,23 @@
+load("//gui_ze:gui_ze.bzl", "wasm_binary")
+
+wasm_binary(
+  name = "markdown_to_html_wasm",
+  src = "markdown_to_html_wasm.c",
+  exports = [
+    "malloc",
+    "free",
+    "heap_reset",
+    "markdown_to_html",
+    "markdown_strlen",
+  ],
+  visibility = ["//visibility:public"],
+)
+
+# JS to link wasm with 
+filegroup(
+  name = "markdown_to_html_wasm_js",
+  srcs = glob([
+      "**/*.js",
+  ], allow_empty=True),
+  visibility = ["//visibility:public"],
+)