Mercurial
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 246:4f2b50bc78e7 | 247:70f2a3dafc1c |
|---|---|
| 174 cc_library( | 174 cc_library( |
| 175 name = "latex_renderer", | 175 name = "latex_renderer", |
| 176 srcs = ["latex_renderer.c"], | 176 srcs = ["latex_renderer.c"], |
| 177 hdrs = ["latex_renderer.h"], | 177 hdrs = ["latex_renderer.h"], |
| 178 copts = ["-D_GNU_SOURCE"], | 178 copts = ["-D_GNU_SOURCE"], |
| 179 visibility = ["//mrjunejune/test:__pkg__"], | 179 data = select({ |
| 180 "//config:linux_x86_64": ["//third_party/tectonic:runtime"], | |
| 181 "//conditions:default": [], | |
| 182 }), | |
| 183 visibility = ["//mrjunejune/test:__pkg__"], | |
| 184 ) | |
| 185 | |
| 186 filegroup( | |
| 187 name = "tectonic_runtime_data", | |
| 188 srcs = select({ | |
| 189 "//config:linux_x86_64": ["//third_party/tectonic:runtime"], | |
| 190 "//conditions:default": [], | |
| 191 }), | |
| 180 ) | 192 ) |
| 181 | 193 |
| 182 # Server binary | 194 # Server binary |
| 183 cc_binary( | 195 cc_binary( |
| 184 name = "mrjunejune_server", | 196 name = "mrjunejune_server", |
| 193 copts = ["-D_GNU_SOURCE"], | 205 copts = ["-D_GNU_SOURCE"], |
| 194 linkopts = ["-lpthread"], | 206 linkopts = ["-lpthread"], |
| 195 data = [ | 207 data = [ |
| 196 ":src_files", | 208 ":src_files", |
| 197 ":config_file", | 209 ":config_file", |
| 210 ":tectonic_runtime_data", | |
| 198 "//:env_file", | 211 "//:env_file", |
| 199 ], | 212 ], |
| 200 visibility = ["//mrjunejune/test:__pkg__"], | 213 visibility = ["//mrjunejune/test:__pkg__"], |
| 201 ) | 214 ) |
| 202 | 215 |
| 214 copts = ["-D_GNU_SOURCE"], | 227 copts = ["-D_GNU_SOURCE"], |
| 215 linkopts = ["-lpthread"], | 228 linkopts = ["-lpthread"], |
| 216 data = [ | 229 data = [ |
| 217 ":src_files", | 230 ":src_files", |
| 218 ":config_file", | 231 ":config_file", |
| 232 ":tectonic_runtime_data", | |
| 219 "//:env_file", | 233 "//:env_file", |
| 220 ], | 234 ], |
| 221 ) | 235 ) |
| 222 | 236 |
| 223 filegroup( | 237 filegroup( |