Mercurial
comparison seobeo/BUILD @ 1:adcfad6e86fb
Updated naming and separated out some logic within seobeo.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Wed, 24 Sep 2025 09:11:20 -0700 |
| parents | 5695ef413be0 |
| children | 2758f5527d2b |
comparison
equal
deleted
inserted
replaced
| 0:5695ef413be0 | 1:adcfad6e86fb |
|---|---|
| 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") | 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") |
| 2 load("@rules_cc//cc:cc_library.bzl", "cc_library") | |
| 2 | 3 |
| 3 alias( | 4 alias( |
| 4 name = "seobeo", | 5 name = "seobeo", |
| 5 actual = select({ | 6 actual = select({ |
| 6 "@platforms//os:osx": ":seobeo_mac", | 7 "@platforms//os:osx": ":seobeo_example_mac", |
| 7 }) | 8 }) |
| 8 ) | 9 ) |
| 9 | 10 |
| 10 cc_binary( | 11 cc_binary( |
| 11 name = "seobeo_mac", | 12 name = "seobeo_example_mac", |
| 12 srcs = ["main.c"], | 13 srcs = ["main.c"], |
| 13 deps = [], | 14 deps = [":seobeo_non_window"], |
| 15 data = [ | |
| 16 "index.html" | |
| 17 ], | |
| 14 target_compatible_with = [ | 18 target_compatible_with = [ |
| 15 "@platforms//os:osx", | 19 "@platforms//os:osx", |
| 16 ], | 20 ], |
| 17 ) | 21 ) |
| 22 | |
| 23 cc_library( | |
| 24 name = "seobeo_non_window", | |
| 25 srcs = [ | |
| 26 "s_linux_network.c", | |
| 27 ], | |
| 28 deps = ["//dowa:dowa"], | |
| 29 hdrs = [ | |
| 30 "seobeo.h", | |
| 31 "seobeo_internal.h" | |
| 32 ], | |
| 33 target_compatible_with = [ | |
| 34 "@platforms//os:osx", | |
| 35 ], | |
| 36 ) |