mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 12:20:10 +01:00
This should clean up our top level directory and the build patterns. No non-mechanical edits here. Just injecting `toolchain/` and `TOOLCHAIN_` and then running formatting tools.
27 lines
739 B
Python
27 lines
739 B
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
cc_library(
|
|
name = "source_buffer",
|
|
srcs = ["source_buffer.cpp"],
|
|
hdrs = ["source_buffer.h"],
|
|
deps = ["@llvm-project//llvm:Support"],
|
|
)
|
|
|
|
cc_test(
|
|
name = "source_buffer_test",
|
|
srcs = ["source_buffer_test.cpp"],
|
|
deps = [
|
|
":source_buffer",
|
|
"@llvm-project//llvm:Support",
|
|
"@llvm-project//llvm:gmock",
|
|
"@llvm-project//llvm:gtest",
|
|
"@llvm-project//llvm:gtest_main",
|
|
],
|
|
)
|