diff mrjunejune/BUILD @ 247:70f2a3dafc1c

[build] Bundle offline Tectonic runtime Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 20:20:06 -0700
parents b8aa08503378
children b8b6e726964a
line wrap: on
line diff
--- a/mrjunejune/BUILD	Mon Aug 03 18:30:45 2026 -0700
+++ b/mrjunejune/BUILD	Mon Aug 03 20:20:06 2026 -0700
@@ -176,9 +176,21 @@
   srcs = ["latex_renderer.c"],
   hdrs = ["latex_renderer.h"],
   copts = ["-D_GNU_SOURCE"],
+  data = select({
+    "//config:linux_x86_64": ["//third_party/tectonic:runtime"],
+    "//conditions:default": [],
+  }),
   visibility = ["//mrjunejune/test:__pkg__"],
 )
 
+filegroup(
+  name = "tectonic_runtime_data",
+  srcs = select({
+    "//config:linux_x86_64": ["//third_party/tectonic:runtime"],
+    "//conditions:default": [],
+  }),
+)
+
 # Server binary
 cc_binary(
   name = "mrjunejune_server",
@@ -195,6 +207,7 @@
   data = [
     ":src_files",
     ":config_file",
+    ":tectonic_runtime_data",
     "//:env_file",
   ],
   visibility = ["//mrjunejune/test:__pkg__"],
@@ -216,6 +229,7 @@
   data = [
     ":src_files",
     ":config_file",
+    ":tectonic_runtime_data",
     "//:env_file",
   ],
 )