Mercurial
comparison hg-web/BUILD @ 226:3fa4bf481f42
[merge] Merge hg-web into default
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sun, 02 Aug 2026 14:42:01 -0700 |
| parents | 0e7b9464248d |
| children | 8bb0ac8f4587 |
comparison
equal
deleted
inserted
replaced
| 220:eb8b4230fdb9 | 226:3fa4bf481f42 |
|---|---|
| 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") | 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") |
| 2 load("@rules_shell//shell:sh_binary.bzl", "sh_binary") | |
| 2 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle", "bun_bundle") | 3 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle", "bun_bundle") |
| 3 | 4 |
| 4 # Source files | 5 # Source files |
| 5 filegroup( | 6 filegroup( |
| 6 name = "src_ts_files", | 7 name = "src_ts_files", |
| 56 cc_binary( | 57 cc_binary( |
| 57 name = "hg_web_server", | 58 name = "hg_web_server", |
| 58 srcs = ["main.c"], | 59 srcs = ["main.c"], |
| 59 deps = ["//seobeo:seobeo"], | 60 deps = ["//seobeo:seobeo"], |
| 60 data = [":all_assets"], | 61 data = [":all_assets"], |
| 62 visibility = ["//hg-web:__subpackages__"], | |
| 61 ) | 63 ) |
| 62 | 64 |
| 63 cc_binary( | 65 cc_binary( |
| 64 name = "hg_web_server_debug", | 66 name = "hg_web_server_debug", |
| 65 srcs = ["main.c"], | 67 srcs = ["main.c"], |
| 66 deps = ["//seobeo:seobeo"], | 68 deps = ["//seobeo:seobeo"], |
| 67 data = [":all_assets"], | 69 data = [":all_assets"], |
| 68 ) | 70 ) |
| 69 | 71 |
| 72 sh_binary( | |
| 73 name = "dev", | |
| 74 srcs = ["dev.sh"], | |
| 75 data = [ | |
| 76 ":hg_web_server", | |
| 77 "@bazel_tools//tools/bash/runfiles", | |
| 78 ], | |
| 79 ) | |
| 80 | |
| 81 test_suite( | |
| 82 name = "tests", | |
| 83 tests = ["//hg-web/e2e:app_e2e_test"], | |
| 84 ) | |
| 85 | |
| 70 bundle( | 86 bundle( |
| 71 name = "hg_web_server_bundle", | 87 name = "hg_web_server_bundle", |
| 72 binary = ":hg_web_server", | 88 binary = ":hg_web_server", |
| 73 ) | 89 ) |