view markdown_converter/wasm/BUILD @ 157:2db6253f355d

[ThirdParty] Added highlight library for better readability on blog.
author June Park <parkjune1995@gmail.com>
date Tue, 13 Jan 2026 19:18:47 -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"],
)