srctree

Robin Linden parent 95d216bf 63b6b157
deps: Drop unifex

We haven't merged anything that really needs this yet, and p2300 has been adopted into C++26 with NVIDIA's stdexec as the designated reference implementation, so if we actually do anything with this before it's available in things we support, we should be using stdexec.
WORKSPACE added: 3, removed: 62, total 0
@@ -284,15 +284,6 @@ http_archive(
url = "https://github.com/illiliti/libudev-zero/archive/1.0.3.tar.gz",
)
 
# https://github.com/facebookexperimental/libunifex
http_archive(
name = "unifex", # Apache-2.0 WITH LLVM-exception
build_file = "//third_party:unifex.BUILD",
sha256 = "d5ce3b616e166da31e6b4284764a1feeba52aade868bcbffa94cfd86b402716e",
strip_prefix = "libunifex-0.4.0",
url = "https://github.com/facebookexperimental/libunifex/archive/v0.4.0.tar.gz",
)
 
VULKAN_TAG = "1.3.289"
 
# https://github.com/KhronosGroup/Vulkan-Headers
 
third_party/BUILD added: 3, removed: 62, total 0
@@ -21,7 +21,6 @@ test_suite(
tests = [
"@freetype2//:bbox_test",
"@libpng//:pngtest",
"@unifex//:unifex_tests",
],
)
 
 
ev/null added: 3, removed: 62, total 0
@@ -1,49 +0,0 @@
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
 
# Disable all extras because that's easier. We'll enable them later if we need them.
genrule(
name = "config_header",
srcs = ["include/unifex/config.hpp.in"],
outs = ["include/unifex/config.hpp"],
cmd = "cat $< | sed -r 's/^#cmakedefine01 (.*)/#define \\1 1/g' | sed '/^#cmakedefine/d' | sed s/@libunifex_VERSION_MAJOR@/0/g | sed s/@libunifex_VERSION_MINOR@/1/g >$@",
)
 
cc_library(
name = "unifex",
srcs = glob(["source/*.cpp"]) + select({
"@platforms//os:linux": glob(["source/linux/*"]),
"@platforms//os:macos": [],
"@platforms//os:windows": glob([
"include/unifex/win32/detail/*.hpp",
"source/win32/*",
]),
}),
hdrs = glob([
"include/unifex/*.hpp",
"include/unifex/detail/*.hpp",
]) + [":config_header"] + select({
"@platforms//os:linux": glob(["include/unifex/linux/*.hpp"]),
"@platforms//os:macos": [],
"@platforms//os:windows": glob(["include/unifex/win32/*.hpp"]),
}),
includes = ["include/"],
strip_include_prefix = "include",
target_compatible_with = select({
"@platforms//os:wasi": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
)
 
# Not really tests, but lets us test that things are at least sort of working
# without setting up GoogleTest.
[cc_test(
name = src[:-4],
size = "small",
srcs = [src],
deps = [":unifex"],
) for src in glob(["examples/*.cpp"])]
 
test_suite(
name = "unifex_tests",
)