comparison mrjunejune/BUILD @ 126:e7899c93da77

Remove playground.
author June Park <parkjune1995@gmail.com>
date Thu, 08 Jan 2026 18:03:34 -0800
parents f236c895604e
children 7eb79fd91c7e
comparison
equal deleted inserted replaced
125:f236c895604e 126:e7899c93da77
21 ) 21 )
22 22
23 filegroup( 23 filegroup(
24 name = "src_files", 24 name = "src_files",
25 srcs = glob(["src/**"]) + [":compiled_ts", ":compiled_ts_games"], 25 srcs = glob(["src/**"]) + [":compiled_ts", ":compiled_ts_games"],
26 visibility = ["//mrjunejune/test:__pkg__"],
26 ) 27 )
27 28
28 # Server binary 29 # Server binary
29 cc_binary( 30 cc_binary(
30 name = "mrjunejune_server", 31 name = "mrjunejune_server",
31 srcs = ["main.c"], 32 srcs = ["main.c"],
32 deps = ["//seobeo:seobeo_tcp_server_ws"], 33 deps = ["//seobeo:seobeo_tcp_server_ws"],
33 data = [":src_files"], 34 data = [":src_files"],
35 visibility = ["//mrjunejune/test:__pkg__"],
34 ) 36 )
35 37
36 cc_binary( 38 cc_binary(
37 name = "mrjunejune_server_dev", 39 name = "mrjunejune_server_dev",
38 srcs = ["main.c"], 40 srcs = ["main.c"],
47 ) 49 )
48 50
49 bundle( 51 bundle(
50 name = "mrjunejune_server_dev_bundle", 52 name = "mrjunejune_server_dev_bundle",
51 binary = ":mrjunejune_server_dev", 53 binary = ":mrjunejune_server_dev",
52 )
53
54 # Tests
55 # TODO: Move this in a folder.
56 cc_test(
57 name = "integration_test",
58 srcs = ["test/integration_test.c"],
59 deps = ["//seobeo:seobeo_min"],
60 data = [
61 "//mrjunejune:mrjunejune_server",
62 "//mrjunejune:src_files",
63 "//mrjunejune:test_snapshots",
64 "//mrjunejune:test_files",
65 ],
66 size = "large",
67 timeout = "long",
68 args = ["$(location //mrjunejune:mrjunejune_server)"],
69 )
70
71 cc_binary(
72 name = "create_snapshots",
73 srcs = ["test/create_snapshots.c"],
74 deps = ["//seobeo:seobeo_tcp_client"],
75 data = [
76 "//mrjunejune:mrjunejune_server",
77 "//mrjunejune:src_files",
78 ],
79 args = ["$(location //mrjunejune:mrjunejune_server)"],
80 )
81
82 filegroup(
83 name = "test_snapshots",
84 srcs = glob(["test/snapshots/**"]),
85 )
86
87 filegroup(
88 name = "test_files",
89 srcs = [
90 "test/shiba.webp",
91 "test/test_avi.avi",
92 ],
93 ) 54 )
94 55
95 # Experimenting with python to see if I can call it as ffi. 56 # Experimenting with python to see if I can call it as ffi.
96 # load("@rules_python//python:py_binary.bzl", "py_binary") 57 # load("@rules_python//python:py_binary.bzl", "py_binary")
97 # This was to use python ffi, but w/e 58 # This was to use python ffi, but w/e