| Tim Windelschmidt | afeb4c4 | 2024-07-17 21:37:26 +0200 | [diff] [blame] | 1 | load("@@//build/utils:template_file.bzl", "template_file") |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 2 | load("@rules_cc//cc:defs.bzl", "cc_binary") |
| Lorenz Brun | 073a1c5 | 2022-08-02 11:36:36 +0000 | [diff] [blame] | 3 | |
| 4 | cc_binary( |
| 5 | name = "fsck", |
| 6 | srcs = [ |
| 7 | "src/boot.c", |
| 8 | "src/boot.h", |
| 9 | "src/charconv.c", |
| 10 | "src/charconv.h", |
| 11 | "src/check.c", |
| 12 | "src/check.h", |
| 13 | "src/common.c", |
| 14 | "src/common.h", |
| 15 | "src/endian_compat.h", |
| 16 | "src/fat.c", |
| 17 | "src/fat.h", |
| 18 | "src/file.c", |
| 19 | "src/file.h", |
| 20 | "src/fsck.fat.c", |
| 21 | "src/fsck.fat.h", |
| 22 | "src/io.c", |
| 23 | "src/io.h", |
| 24 | "src/lfn.c", |
| 25 | "src/lfn.h", |
| 26 | "src/msdos_fs.h", |
| 27 | ":version.h", |
| 28 | ], |
| Tim Windelschmidt | f69d84b | 2024-07-03 20:32:19 +0200 | [diff] [blame] | 29 | copts = ["-DHAVE_ENDIAN_H", "-DHAVE_VASPRINTF"], |
| Lorenz Brun | 073a1c5 | 2022-08-02 11:36:36 +0000 | [diff] [blame] | 30 | visibility = ["//visibility:public"], |
| 31 | includes = ["."], |
| 32 | ) |
| 33 | |
| 34 | template_file( |
| 35 | name = "version.h", |
| 36 | src = "src/version.h.in", |
| 37 | substitutions = { |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 38 | # ONCHANGE(//build/bazel:third_party.MODULE.bazel): version needs to be kept in sync |
| Lorenz Brun | 073a1c5 | 2022-08-02 11:36:36 +0000 | [diff] [blame] | 39 | "@PACKAGE_VERSION@": "unstable-2022-07-25", |
| 40 | "@RELEASE_DATE@": "2022-07-25", |
| 41 | }, |
| 42 | ) |