tools

various tools I have been using throughout the years
Log | Files | Refs | README | LICENSE

BUILD (642B)


      1 load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
      2 load("//bazel:local-deploy.bzl", "local_deploy")
      3 
      4 package(default_visibility = ["//visibility:public"])
      5 
      6 COMMON_COPTS = [
      7     "-Wall",
      8     "-Wextra",
      9     "-O2",
     10     "-fanalyzer",
     11     "-Wshadow",
     12 ]
     13 
     14 cc_library(
     15     name = "river-status",
     16     srcs = ["river-status.c"],
     17     hdrs = ["river-status.h"],
     18     copts = COMMON_COPTS,
     19     linkopts = ["-lwayland-client"],
     20 )
     21 
     22 cc_binary(
     23     name = "wlr-river-title",
     24     srcs = ["wlr-river-title.c"],
     25     copts = COMMON_COPTS,
     26     deps = [":river-status"],
     27 )
     28 
     29 local_deploy(
     30     name = "deploy",
     31     srcs = [
     32         ":wlr-river-title",
     33     ],
     34 )