Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
glog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
glog
Commits
3efe9e40
Commit
3efe9e40
authored
Dec 19, 2017
by
Rodrigo Queiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an example using glog from Bazel
parent
bffb4a6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
BUILD
bazel/example/BUILD
+8
-0
main.cc
bazel/example/main.cc
+14
-0
No files found.
bazel/example/BUILD
0 → 100644
View file @
3efe9e40
cc_test(
name = "main",
size = "small",
srcs = ["main.cc"],
deps = [
"//:glog",
],
)
bazel/example/main.cc
0 → 100644
View file @
3efe9e40
#include <gflags/gflags.h>
#include <glog/logging.h>
int
main
(
int
argc
,
char
*
argv
[])
{
// Initialize Google's logging library.
google
::
InitGoogleLogging
(
argv
[
0
]);
// Optional: parse command line flags
gflags
::
ParseCommandLineFlags
(
&
argc
,
&
argv
,
true
);
LOG
(
INFO
)
<<
"Hello, world!"
;
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment