-
Notifications
You must be signed in to change notification settings - Fork 0
/
workspace_setup.bzl
31 lines (25 loc) · 1.21 KB
/
workspace_setup.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Do not change the filename; it is part of the user interface.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
def hedron_backport_std_filesystem():
"""Setup a WORKSPACE so you can easily use the std::filesytem API across platforms."""
# Unified setup for users' WORKSPACES and this workspace when used standalone.
# See invocations in:
# README.md (for users)
# WORKSPACE (for working on this repo standalone)
# gulrak::filesystem
# Handy backport of std::filesystem where it's not avalable: macOS<10.15, iOS/tvOS<13.0, and watchOS<6.0
maybe(
http_archive,
name = "gulrak_filesystem",
build_file_content = """
cc_library(
name = "gulrak_filesystem",
hdrs = glob(["ghc/*.hpp"]),
visibility = ["//visibility:public"]
)
""",
url = "https://github.com/gulrak/filesystem/archive/b1982f06c84f08a99fb90bac43c2d03712efe921.zip", # Living at head because there are good, unreleased commits.
sha256 = "b22a18207180e306a79da0a762490a6143ab37154ddc1eaab96ffe076c676c11",
strip_prefix = "filesystem-b1982f06c84f08a99fb90bac43c2d03712efe921/include",
)