Fix targets for layering_check
This commit is contained in:
parent
aca9a23c83
commit
7a62819e43
@ -161,15 +161,12 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs):
|
|||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
srcs = [
|
srcs = [
|
||||||
":config_h",
|
":config_h",
|
||||||
"src/base/commandlineflags.h",
|
|
||||||
"src/base/googleinit.h",
|
"src/base/googleinit.h",
|
||||||
"src/base/mutex.h",
|
|
||||||
"src/demangle.cc",
|
"src/demangle.cc",
|
||||||
"src/demangle.h",
|
"src/demangle.h",
|
||||||
"src/logging.cc",
|
"src/logging.cc",
|
||||||
"src/raw_logging.cc",
|
"src/raw_logging.cc",
|
||||||
"src/signalhandler.cc",
|
"src/signalhandler.cc",
|
||||||
"src/stacktrace.h",
|
|
||||||
"src/stacktrace_generic-inl.h",
|
"src/stacktrace_generic-inl.h",
|
||||||
"src/stacktrace_libunwind-inl.h",
|
"src/stacktrace_libunwind-inl.h",
|
||||||
"src/stacktrace_powerpc-inl.h",
|
"src/stacktrace_powerpc-inl.h",
|
||||||
@ -179,15 +176,18 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs):
|
|||||||
"src/symbolize.cc",
|
"src/symbolize.cc",
|
||||||
"src/symbolize.h",
|
"src/symbolize.h",
|
||||||
"src/utilities.cc",
|
"src/utilities.cc",
|
||||||
"src/utilities.h",
|
|
||||||
"src/vlog_is_on.cc",
|
"src/vlog_is_on.cc",
|
||||||
] + select({
|
] + select({
|
||||||
"@bazel_tools//src/conditions:windows": windows_only_srcs,
|
"@bazel_tools//src/conditions:windows": windows_only_srcs,
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
}),
|
}),
|
||||||
hdrs = [
|
hdrs = [
|
||||||
|
"src/base/commandlineflags.h",
|
||||||
|
"src/base/mutex.h",
|
||||||
"src/glog/log_severity.h",
|
"src/glog/log_severity.h",
|
||||||
"src/glog/platform.h",
|
"src/glog/platform.h",
|
||||||
|
"src/stacktrace.h",
|
||||||
|
"src/utilities.h",
|
||||||
":logging_h",
|
":logging_h",
|
||||||
":raw_logging_h",
|
":raw_logging_h",
|
||||||
":stl_logging_h",
|
":stl_logging_h",
|
||||||
@ -226,12 +226,13 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs):
|
|||||||
name = test_name + "_test",
|
name = test_name + "_test",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
srcs = [
|
srcs = [
|
||||||
|
":config_h",
|
||||||
"src/googletest.h",
|
"src/googletest.h",
|
||||||
"src/" + test_name + "_unittest.cc",
|
"src/" + test_name + "_unittest.cc",
|
||||||
],
|
],
|
||||||
defines = final_lib_defines,
|
defines = final_lib_defines,
|
||||||
copts = final_lib_copts + test_only_copts,
|
copts = final_lib_copts + test_only_copts,
|
||||||
deps = [
|
deps = gflags_deps + [
|
||||||
":glog",
|
":glog",
|
||||||
"@com_github_google_googletest//:gtest",
|
"@com_github_google_googletest//:gtest",
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user