Skip to content

Commit

Permalink
ninja@1.12.1.bcr.1 (#2719)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillikin authored Sep 5, 2024
1 parent b75beb2 commit aa72dc7
Showing 6 changed files with 119 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/ninja/1.12.1.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "ninja",
version = "1.12.1.bcr.1",
compatibility_level = 1,
)

bazel_dep(name = "platforms", version = "0.0.6")
73 changes: 73 additions & 0 deletions modules/ninja/1.12.1.bcr.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,70 @@
+SRCS = [
+ "build_log",
+ "build",
+ "clean",
+ "clparser",
+ "debug_flags",
+ "depfile_parser", # from re2c
+ "deps_log",
+ "disk_interface",
+ "dyndep_parser",
+ "dyndep",
+ "edit_distance",
+ "eval_env",
+ "graph",
+ "graphviz",
+ "json",
+ "lexer", # from re2c
+ "line_printer",
+ "manifest_parser",
+ "metrics",
+ "missing_deps",
+ "parser",
+ "state",
+ "status",
+ "string_piece_util",
+ "util",
+ "version",
+]
+
+CC_SRCS = ["src/%s.cc" % (src,) for src in SRCS]
+
+H_SRCS = ["src/%s.h" % (src,) for src in SRCS]
+
+cc_binary(
+ name = "ninja",
+ srcs = [
+ "src/ninja.cc",
+ ] + CC_SRCS + H_SRCS + [
+ "src/browse.h",
+ "src/exit_status.h",
+ "src/hash_map.h",
+ "src/includes_normalize.h",
+ "src/load_status.h",
+ "src/string_piece.h",
+ "src/subprocess.h",
+ "src/timestamp.h",
+ ] + select({
+ "@platforms//os:windows": [
+ "src/getopt.c",
+ "src/getopt.h",
+ "src/includes_normalize-win32.cc",
+ "src/minidump-win32.cc",
+ "src/msvc_helper.h",
+ "src/msvc_helper-win32.cc",
+ "src/msvc_helper_main-win32.cc",
+ "src/subprocess-win32.cc",
+ "src/win32port.h",
+ ],
+ "//conditions:default": [
+ "src/subprocess-posix.cc",
+ ],
+ }),
+ copts = select({
+ "@platforms//os:freebsd": ["-DUSE_PPOLL"],
+ "@platforms//os:linux": ["-DUSE_PPOLL"],
+ "@platforms//os:openbsd": ["-DUSE_PPOLL"],
+ "//conditions:default": [],
+ }),
+ visibility = ["//visibility:public"],
+)
10 changes: 10 additions & 0 deletions modules/ninja/1.12.1.bcr.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- /dev/null
+++ MODULE.bazel
@@ -0,0 +1,7 @@
+module(
+ name = "ninja",
+ version = "1.12.1.bcr.1",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "platforms", version = "0.0.6")
17 changes: 17 additions & 0 deletions modules/ninja/1.12.1.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@ninja//:ninja'
10 changes: 10 additions & 0 deletions modules/ninja/1.12.1.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://mirror.bazel.build/github.com/ninja-build/ninja/archive/refs/tags/v1.12.1.tar.gz",
"integrity": "sha256-ghvf9Io/aDvEuztvC1/nstZHz2XVKutjMoyRpsbfKFo=",
"strip_prefix": "ninja-1.12.1",
"patches": {
"add_build_file.patch": "sha256-70NbzkY91z5qir64aYR3yFsgpuZd8GweRcadm3+sBjQ=",
"module_dot_bazel.patch": "sha256-Xg6PJ5RIBKY65OdW9tcCp4LG85Viv2p9XieDV1bVgFQ="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/ninja/metadata.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,8 @@
}
],
"versions": [
"1.12.1"
"1.12.1",
"1.12.1.bcr.1"
],
"yanked_versions": {}
}

0 comments on commit aa72dc7

Please sign in to comment.