view markdown_converter/wasm/BUILD @ 166:78ea8d5ccc87

[ThirdParty] Added sqlite3 to the third_party.
author MrJuneJune <me@mrjunejune.com>
date Mon, 19 Jan 2026 16:28:34 -0800
parents cd35e600ae34
children f3084bca7317
line wrap: on
line source

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"],
)