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
bc9a4910
Commit
bc9a4910
authored
Jan 31, 2018
by
Rodrigo Queiro
Committed by
Rodrigo Queiro
Feb 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow using glog/stl_logging.h with Bazel
Fixes #289.
parent
3106945d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
main.cc
bazel/example/main.cc
+5
-0
glog.bzl
bazel/glog.bzl
+2
-1
No files found.
bazel/example/main.cc
View file @
bc9a4910
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <glog/stl_logging.h>
int
main
(
int
argc
,
char
*
argv
[])
{
// Initialize Google's logging library.
...
...
@@ -10,5 +11,9 @@ int main(int argc, char* argv[]) {
LOG
(
INFO
)
<<
"Hello, world!"
;
// glog/stl_logging.h allows logging STL containers.
std
::
vector
<
int
>
x
{
1
,
2
,
3
};
LOG
(
INFO
)
<<
"ABC, it's easy as "
<<
x
;
return
0
;
}
bazel/glog.bzl
View file @
bc9a4910
...
...
@@ -89,7 +89,8 @@ def glog_library(namespace='google', with_gflags=1):
cmd = r'''\
#!/bin/sh
cat > $@ <<"EOF"
sed -e 's/@ac_cv_have_unistd_h@/1/g' \
sed -e 's/@ac_cv_cxx_using_operator@/1/g' \
-e 's/@ac_cv_have_unistd_h@/1/g' \
-e 's/@ac_cv_have_stdint_h@/1/g' \
-e 's/@ac_cv_have_systypes_h@/1/g' \
-e 's/@ac_cv_have_libgflags_h@/1/g' \
...
...
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