Mercurial
diff mrjunejune/BUILD @ 124:dbf14f84d51c
Refactor Seobeo and mrjunejune build files so it works.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2026 07:31:32 -0800 |
| parents | 70401cf61e97 |
| children | f236c895604e |
line wrap: on
line diff
--- a/mrjunejune/BUILD Thu Jan 08 06:46:10 2026 -0800 +++ b/mrjunejune/BUILD Thu Jan 08 07:31:32 2026 -0800 @@ -1,8 +1,8 @@ load("@rules_cc//cc:cc_binary.bzl", "cc_binary") load("@rules_cc//cc:cc_library.bzl", "cc_library") -# load("@rules_python//python:py_binary.bzl", "py_binary") load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle") +# Files move_files_into_dir( name = "compiled_ts_games", srcs = [ @@ -25,6 +25,7 @@ srcs = glob(["src/**"]) + [":compiled_ts", ":compiled_ts_games"], ) +# Server binary cc_binary( name = "mrjunejune_server", srcs = ["main.c"], @@ -35,10 +36,11 @@ cc_binary( name = "mrjunejune_server_dev", srcs = ["main.c"], - deps = ["//seobeo:seobeo_server_dev"], + deps = ["//seobeo:seobeo_server"], data = [":src_files"], ) +# Rlease bundle bundle( name = "mrjunejune_server_bundle", binary = ":mrjunejune_server", @@ -49,10 +51,12 @@ binary = ":mrjunejune_server_dev", ) +# Tests +# TODO: Move this in a folder. cc_test( name = "integration_test", srcs = ["test/integration_test.c"], - deps = ["//seobeo:seobeo_client"], + deps = ["//seobeo:seobeo_min"], data = [ "//mrjunejune:mrjunejune_server", "//mrjunejune:src_files", @@ -67,7 +71,7 @@ cc_binary( name = "create_snapshots", srcs = ["test/create_snapshots.c"], - deps = ["//seobeo:seobeo_client"], + deps = ["//seobeo:seobeo_tcp_client"], data = [ "//mrjunejune:mrjunejune_server", "//mrjunejune:src_files", @@ -88,6 +92,8 @@ ], ) +# Experimenting with python to see if I can call it as ffi. +# load("@rules_python//python:py_binary.bzl", "py_binary") # This was to use python ffi, but w/e # cc_library( # name = "mrjunejune_server_lib",