parent
f9f2741fd0
commit
6a9891703c
@ -0,0 +1,12 @@
|
|||||||
|
# Bazel (http://bazel.io/) BUILD file for gflags.
|
||||||
|
#
|
||||||
|
# See INSTALL.md for instructions for adding gflags to a Bazel workspace.
|
||||||
|
|
||||||
|
licenses(["notice"])
|
||||||
|
|
||||||
|
exports_files(["src/gflags_complections.sh", "COPYING.txt"])
|
||||||
|
|
||||||
|
load(":bazel/gflags.bzl", "gflags_sources", "gflags_library")
|
||||||
|
(hdrs, srcs) = gflags_sources(namespace=["google", "gflags"])
|
||||||
|
gflags_library(hdrs=hdrs, srcs=srcs, threads=0)
|
||||||
|
gflags_library(hdrs=hdrs, srcs=srcs, threads=1)
|
@ -0,0 +1,11 @@
|
|||||||
|
licenses(["notice"]) # Apache 2.0
|
||||||
|
|
||||||
|
cc_test(
|
||||||
|
name = "glog_test",
|
||||||
|
srcs = ["glog_test.cc"],
|
||||||
|
copts = ["-Iexternal/gtest/include"],
|
||||||
|
deps =[
|
||||||
|
"@gtest//:gtest",
|
||||||
|
"@glog//:glog",
|
||||||
|
],
|
||||||
|
)
|
@ -0,0 +1,9 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "glog/logging.h"
|
||||||
|
#include "gtest/gtest.h"
|
||||||
|
|
||||||
|
TEST(GlogTest, Logging) {
|
||||||
|
LOG(INFO) << "Hello world";
|
||||||
|
}
|
Loading…
Reference in new issue