BUILD 722 B

1234567891011121314151617181920212223242526272829
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@rules_tree_sitter//tree_sitter:tree_sitter.bzl", "tree_sitter_cc_library")
  5. tree_sitter_cc_library(
  6. name = "treesitter",
  7. srcs = ["src/scanner.c"],
  8. grammar = ["grammar.js"],
  9. )
  10. cc_binary(
  11. name = "test_runner",
  12. srcs = ["test_runner.cpp"],
  13. deps = [
  14. ":treesitter",
  15. ],
  16. )
  17. cc_test(
  18. name = "explorer_tests",
  19. srcs = ["test_runner.cpp"],
  20. args = ["$(locations //explorer:treesitter_testdata)"],
  21. data = ["//explorer:treesitter_testdata"],
  22. deps = [
  23. ":treesitter",
  24. ],
  25. )