Artem Dinaburg
f39f78c7cc
Define constants for _open and silence some warnings
2018-06-20 12:50:50 +02:00
Artem Dinaburg
b54793d232
Windows has the fc utility to compare files instead of diff
2018-06-20 12:50:50 +02:00
Artem Dinaburg
62c3e3cd56
The %p format is implementation defined. Compare it via a special token,
...
just like the null pointer test.
2018-06-20 12:50:50 +02:00
Sergiu Deitsch
0301bfdd39
Merge pull request #324 from NeroBurner/fix_mingw_cross_compile
...
Fix mingw cross compile
2018-06-19 14:36:39 +02:00
loop0day
abce78806c
cmake: renamed GFLAGS_NAMESPACE to GLOG_GFLAGS_NAMESPACE ( #318 )
...
This eliminates a conflict between glog and gflags preprocessor definition of GFLAGS_NAMESPACE that can cause the gflags namespace detection to fail (fixes #317 ).
2018-06-01 15:00:59 +02:00
NeroBurner
364fad5649
port: remove unused includes
2018-06-01 14:50:12 +02:00
NeroBurner
800bd423e4
port: split localtime_r definition and impl
2018-06-01 14:50:12 +02:00
NeroBurner
7450a8b345
mingw-w64: check if localtime_r exists
...
- check in cmake if localtime_r exists
- if localtime_r is missing (MSVC, mingw-w64 on linux) redefine it using
localtime_s
2018-06-01 14:50:11 +02:00
NeroBurner
0797f7382b
mingw-w64: fix port.h pthread recreation
2018-06-01 14:50:10 +02:00
NeroBurner
d354e2e8f9
mingw-w64: fix dbghelp on case sensitive systems
...
- fix dbhelp.h include
- fix dbghelp check and link
2018-06-01 14:50:07 +02:00
NeroBurner
06a8ee0976
logging: fix basetsd on case sensitive sytems
2018-06-01 14:50:06 +02:00
Daiki Maekawa
2faa186e62
cmake: added BUILD_SHARED_LIBS option ( #313 )
2018-04-26 08:46:24 +02:00
Ruslan Baratov
d064ab8d0a
Fix build for Android API < 21
2018-04-22 23:54:24 +03:00
Rodrigo Queiro
e0341da07b
Add Bazel CI configuration
...
This was previously present in
https://github.com/bazelbuild/continuous-integration , but the Bazel team
asked us to move it to our repo. It will be helpful if we need to change
the build configuration, eg to add new platforms.
2018-04-18 11:54:56 +02:00
Akiyoshi Ochiai
dd2b93d761
Fix __attribute__((noreturn)) mismatch warning in Bazel build
2018-04-18 10:15:54 +02:00
Sergiu Deitsch
2f493d292c
Merge pull request #302 from Nazg-Gul/missing-prototype
...
Resolve missing prototype warning
2018-03-21 13:45:06 +01:00
Sergiu Deitsch
11afec2795
Merge pull request #303 from Nazg-Gul/reincluded-config
...
Fix redefined warnings from config.h
2018-03-21 13:44:44 +01:00
Shinichiro Hamaji
643f6d4678
Merge pull request #305 from samuela/patch-1
...
Make int conversion explicit and fix clang warning
2018-03-21 21:43:40 +09:00
samuela
838753987f
Make int conversion explicit and fix clang warning
2018-03-20 18:03:46 -07:00
Sergey Sharybin
418f9020e3
Fix redefined warnings from config.h
...
The issue was caused by config.h header being included from both
header files and implementation files.
Proposed solution is to have regular header guard in the generated
config.h. Benefit of this solution is that it's least intrusive.
Downside is that it only solves issue for CMake build system, and
autoconf one is not fixed since header template is automatically
generated by autoheader who does not add header guard.
2018-03-20 11:14:06 +01:00
Shinichiro Hamaji
1fe7e94ac6
Merge pull request #304 from Nazg-Gul/terminfo-konsole
...
konsole family of terminfo supports colored output
2018-03-20 18:14:33 +09:00
Sergey Sharybin
e35bb111c3
konsole family of terminfo supports colored output
...
Glog was missing colored output when running in terminal
who is set to konsole* TERM, even though the terminal
itself supports colored output.
Add extra terminfo to the check function, so now output
from Glog is properly colored.
2018-03-20 09:49:07 +01:00
Sergiu Deitsch
43dafc5bf2
cmake: fixed gcc warning
2018-03-19 00:21:33 +01:00
Sergiu Deitsch
a97d6b0e1c
Symbolizer support for mingw and cygwin ( #208 )
...
* added dbghelp symbolizer support for mingw and cygwin
* fixed compiler errors in case <stdint.h> is not available
* cmake: check whether SymFromAddr actually works
2018-02-27 21:03:20 +01:00
Sergiu Deitsch
1aec14edf4
cmake: do not introduce a policy stack in the package config
2018-02-23 10:16:24 +01:00
Sergiu Deitsch
4c4631c9b3
Merge pull request #292 from Mizux/master
...
CMake Update
2018-02-10 14:34:47 +01:00
Corentin Le Molgat
6b6e38a7d5
Rework CMake glog VERSION management.
...
- Use of Project version properties instead of custom variables
- fix missmatch between VERSION (build version) and SOVERSION (API version)
src: https://cmake.org/cmake/help/latest/prop_tgt/VERSION.html#prop_tgt:VERSION
2018-02-06 10:37:26 +01:00
Corentin Le Molgat
4ef88d510e
remove uneeded enable_testing()
...
CTest module already provides it
2018-02-06 10:37:26 +01:00
Corentin Le Molgat
cbfd86a1d8
Provide glog::glog ALIAs
...
Useful when using glog as subproject.
Add an explanation at top like in gflags.git CMakeLists.txt
2018-02-06 10:37:26 +01:00
Rodrigo Queiro
55cc27b6ec
Bazel: make example more portable
2018-02-01 14:13:46 +01:00
Rodrigo Queiro
bc9a491033
Allow using glog/stl_logging.h with Bazel
...
Fixes #289 .
2018-02-01 14:13:46 +01:00
Rodrigo Queiro
3106945d8d
Add workaround for Bazel build on macOS
...
This works around https://github.com/bazelbuild/bazel/issues/3979 ,
and so closes #282 .
2018-01-16 17:06:15 +01:00
Sergiu Deitsch
028d37889a
cmake: remove config.h from public headers ( closes #238 )
2018-01-04 15:20:26 +01:00
Sergiu Deitsch
fb19c33b00
Merge pull request #283 from Mizux/master
...
Use target gflags instead of old VARIABLES
2018-01-04 14:38:21 +01:00
Mizux
63871d3e29
Use target gflags instead of old VARIABLES
2018-01-04 13:02:02 +01:00
Rodrigo Queiro
5b1aa94e4b
Merge pull request #276 from drigz/add-example
...
Add an example using glog from Bazel
2018-01-04 12:00:27 +01:00
Rodrigo Queiro
3efe9e4025
Add an example using glog from Bazel
2018-01-04 11:35:53 +01:00
Rodrigo Queiro
bffb4a6ee2
Merge pull request #277 from drigz/update-gflags
...
Update gflags to latest master
2018-01-04 11:29:54 +01:00
Sergiu Deitsch
a92e1d95c5
cmake: use gflags package config instead of a find module
...
This allows to avoid conflicts between third party gflags find modules floating
around. If a package provide a local version of gflags find module, clients
which locate glog will incorrectly use it. Another problem is a CMake error message
"cmake_policy PUSH without matching POP" in nested find_package calls. In summary,
we need to ensure to use the original gflags package config.
2018-01-04 02:38:42 +01:00
Sergiu Deitsch
b2c3afecaa
cmake: ensure consumers do not overwrite the required policy
2018-01-02 23:36:51 +01:00
Sergiu Deitsch
ce197f26a5
removed obsolete vsprojects
2018-01-02 22:31:47 +01:00
Sergiu Deitsch
185ba48937
cmake: added a postfix for debug builds ( closes #237 )
...
This allows to deploy debug and release builds concurrently.
2018-01-02 14:38:37 +01:00
Sergiu Deitsch
f3bd836de4
Merge pull request #281 from sergiud/msvc-error-define
...
Fixed undeclared identifier error
2018-01-02 02:21:51 +01:00
Sergiu Deitsch
85d49f7a47
logging_unittest: fixed undeclared identifier error ( fixes #267 )
2018-01-02 02:18:00 +01:00
Shinichiro Hamaji
0a9f71036f
Merge pull request #278 from shinh/contrib
...
Update AUTHORS and CONTRIBUTORS for PR#232
2017-12-21 19:05:40 +09:00
Shinichiro Hamaji
4682134d59
Update AUTHORS and CONTRIBUTORS for PR#232
2017-12-20 17:27:27 +09:00
Rodrigo Queiro
2a593235ba
Update gflags to latest master
...
This means that gflags no longer leaks config.h, so I had to fix a bug
in glog.bzl where config.h is generated at the wrong path.
I also switched to the best-practice for depending on git repositories,
ie using http_archive with a mirror.
2017-12-19 15:50:12 +01:00
Rodrigo Queiro
fc87161c96
Merge pull request #232 from qzmfranklin/bazel
...
Build with Bazel.
2017-12-18 10:20:57 +01:00
Zhongming Qu
389a7782e8
Remove the use of bind() from WORKSPACE.
2017-12-14 13:45:01 -08:00
Zhongming Qu
ea458f60b9
Remove an empty textual_hdrs field.
2017-12-14 01:03:19 -08:00