Skip to content

Commit

Permalink
chore: Disable apigen in hs-toxcore-c for now.
Browse files Browse the repository at this point in the history
The current haskell backend is broken. It'll be rewritten using the new
apigen high level parser.
  • Loading branch information
iphydf committed Jan 7, 2024
1 parent 8fc1179 commit 3c6f012
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ load("//tools/project:build_defs.bzl", "project")

project(license = "gpl3-https")

[genrule(
name = "api_" + src[:-2].replace("/", "_"),
srcs = ["//c-toxcore:" + src],
outs = ["src/FFI/%s.hs" % "/".join([mod.capitalize() for mod in src[:-2].split("/")])],
cmd = "$(location //hs-apigen/tools:apigen) -hs $< > $@",
exec_tools = ["//hs-apigen/tools:apigen"],
tags = ["no-cross"],
) for src in [
"tox/tox.h",
]]
#[genrule(
# name = "api_" + src[:-2].replace("/", "_"),
# srcs = ["//c-toxcore:" + src],
# outs = ["src/FFI/%s.hs" % "/".join([mod.capitalize() for mod in src[:-2].split("/")])],
# cmd = "$(location //hs-apigen/tools:apigen) -hs $< > $@",
# exec_tools = ["//hs-apigen/tools:apigen"],
# tags = ["no-cross"],
# ) for src in [
# "tox/tox.h",
# ]]

haskell_library(
name = "hs-toxcore-c",
srcs = glob(
["src/**/*.*hs"],
exclude = ["src/FFI/**"],
#exclude = ["src/FFI/**"],
) + [
":api_tox_tox",
#":api_tox_tox",
],
src_strip_prefix = "src",
tags = ["no-cross"],
Expand Down

0 comments on commit 3c6f012

Please sign in to comment.