Commit Graph

143 Commits

Author SHA1 Message Date
Sergiu Deitsch
8ff1a7db04
feat: use standard mutexes (#1015) 2024-01-02 00:47:22 +01:00
Sergiu Deitsch
d29d02e8af
fix: add missing gmtime_r check (#1013)
909069ea82 introduced optional gmtime_r
support but did implement the function's availability check.
2023-12-30 22:07:29 +01:00
Sergiu Deitsch
e3f5398aa1
rework public header structure (#1012)
Promote generated headers to regular headers. This enables direct
editing of corresponding files and running automatic source code
formatting and static analysis tools, such as clang-format and
clang-tidy on the whole project which previously was not
straightforward.
2023-12-30 19:05:26 +01:00
Sergiu Deitsch
43792b8a13 rework (lib)unwind integration
Allow to switch between the two backends.
2023-12-30 00:50:52 +01:00
Sergiu Deitsch
ab2a1a8519
fix: enable strip log tests (#1009) 2023-12-28 02:34:06 +01:00
Sergiu Deitsch
e92ab7df52
cmake: remove pre C++11 warning options (#1005) 2023-12-21 23:07:58 +01:00
Sergiu Deitsch
e26e342623
cmake: use glog specific project variables (#1004) 2023-12-21 23:07:36 +01:00
Sergiu Deitsch
dfb7703542
cmake: simplify symbol availability checks (#1003) 2023-12-21 22:25:04 +01:00
Sergiu Deitsch
b7686b6995
cmake: remove obsolete check (#1002) 2023-12-21 22:01:35 +01:00
Sergiu Deitsch
72b8a7956f
cmake: do not enable TLS without threads (#1001) 2023-12-21 20:59:30 +01:00
Sergiu Deitsch
65cc31ab16
cmake: use threads import target (#1000) 2023-12-21 20:40:43 +01:00
Sergiu Deitsch
3fcf77a691
fix: drop custom (v)snprintf definition (#992)
The functions are available since C++11.
2023-12-20 20:49:08 +01:00
Sergiu Deitsch
7d973f9b4e
cmake: replace check_library_exists by check_cxx_symbol_exists (#991)
As per https://gitlab.kitware.com/cmake/cmake/-/issues/18121,
check_library_exists cannot not determine the availability of a symbol
in a static library. Switch to check_cxx_symbol_exists to avoid
incorrectly detecting the presence of dbghelp.
2023-12-20 18:47:10 +01:00
Sergiu Deitsch
b45f5b4c82
fix(build): raise minimum cmake version to 3.21 (#974)
Linking against target objects is otherwise not possible.
2023-10-12 22:28:45 +02:00
Sergiu Deitsch
b58718f37c
fix(cmake): rework ucontext_t introspection (#954) 2023-10-09 21:35:51 +02:00
Sergiu Deitsch
b8a251c091 fix(cmake): support xcode generator 2023-10-08 17:33:53 +02:00
Huy Q. Bui
4dbc26af72
feat: support log file truncation on windows (#960) 2023-10-08 14:03:10 +02:00
Sergiu Deitsch
1dffb4eb29
fix: enable building without threads (#964) 2023-10-06 22:30:31 +02:00
Sergiu Deitsch
6742834201
move to C++14 (#902) 2023-02-28 12:26:49 +01:00
Catena cyber
846c3fe55b
Add fuzz testing for demangle (#878) 2023-02-24 22:45:32 +01:00
Sergiu Deitsch
1b59cb0905
drop custom prefix option (#898) 2023-02-24 20:40:09 +01:00
Sergiu Deitsch
af8344bbbe
cmake: rename glogbase to glog_internal (#901) 2023-02-24 20:39:46 +01:00
Sergiu Deitsch
4056374800
fixed emscripten detection (#897) 2023-02-24 19:25:26 +01:00
Sergiu Deitsch
2115d9b590
ci: run linux workflow on ubuntu 22.04 (#885) 2023-01-01 18:08:53 +01:00
Sergiu Deitsch
6ed0c9e58b
added emscripten support (#846) 2022-08-04 22:52:47 +02:00
Sergiu Deitsch
a34226ca94
support ndk r25 (#844) 2022-08-01 10:46:35 +02:00
Sergiu Deitsch
9f0b7d3bfe renamed GOOGLE_GLOG_DLL_DECL to GLOG_EXPORT
Use a consistent naming and avoid platform specific terms. Also remove
copy and paste code.
2022-02-14 10:32:44 +01:00
Sergiu Deitsch
aa94e6b9ab simplify flags export 2022-02-13 13:04:24 +01:00
Sergiu Deitsch
17269d649d cmake: enable custom prefix by default 2022-02-13 12:54:11 +01:00
Arfrever Frehtes Taifersar Arahesis
bc1fada1cf libglog.pc: Set Libs.private for static linking 2022-01-25 19:35:57 +01:00
Sergiu Deitsch
6434410145 cmake: require at least gflags 2.2.2 2022-01-11 17:48:32 +01:00
Sergiu Deitsch
4ffa98388f ensure _Unwind_Backtrace to actually be available 2021-12-21 11:38:12 +01:00
Sergiu Deitsch
087ad5bf32 eliminated clang warnings 2021-12-21 11:37:49 +01:00
Sergiu Deitsch
660352f02b cmake: require at least version 3.16 (fixes #705) 2021-12-09 19:01:27 +01:00
Marco Wang
ccbda2dfd5 LogCleaner: Fix relative paths and add a new test
Signed-off-by: Marco Wang <m.aesophor@gmail.com>
2021-12-09 10:30:51 +01:00
Sergiu Deitsch
6e9b2f16f5 cmake: set CMP0074 policy
This enables the use of `<PackageName>_ROOT` (environment) variables.
2021-12-06 21:12:35 +01:00
Sergiu Deitsch
f4dd77ae6b ci: reworked windows builds 2021-12-06 19:00:41 +01:00
Sergiu Deitsch
64b4e327ff cmake: fixed glog-modules.cmake installation 2021-11-11 22:38:12 +01:00
Sergiu Deitsch
ab5e109298 Revert "cmake: fix incorrect relative path concatenation (#733)"
This reverts commit 68964b8db6.
2021-11-11 21:56:25 +01:00
Niklas Hambüchen
68964b8db6
cmake: fix incorrect relative path concatenation (#733)
When a `-DCMAKE_INSTALL_PREFIX` is given, this could result in paths like:

    /path/to/prefix//path/to/prefix/lib/cmake/glog/glog-modules.cmake

which was incorrect.

If a relative `DESTINATION` is given, it's assumed to be relative to the install prefix.
2021-11-05 22:19:36 +01:00
Sergiu Deitsch
3362cc6c79 added log cleaner tests and fixed paths 2021-10-29 22:45:55 +02:00
Sergiu Deitsch
1398762db8 added mock log test 2021-10-12 14:36:33 +02:00
Sergiu Deitsch
4a55b11580 ci: added linux github workflow 2021-10-11 15:54:42 +02:00
huangqinjin
3965584721
support stack unwind on Android 2021-10-08 22:14:20 +02:00
Sergiu Deitsch
8474b7854b added gmock support 2021-10-07 19:53:08 +02:00
Sergiu Deitsch
f7407d4d27 export OS_* defines (fixes #715) 2021-10-01 11:26:07 +02:00
Sergiu Deitsch
f8c8e99fdf
Merge pull request #688 from google/eliminate-warnings
eliminate warnings
2021-07-24 00:38:08 +02:00
Sergiu Deitsch
98e0e8c65d cmake: bump .so version
Account for ABI incompatibility.
2021-07-23 14:39:25 +02:00
Sergiu Deitsch
0b83bb203d eliminate warnings 2021-07-22 22:52:22 +02:00
Sergiu Deitsch
dfe573088c bump version 2021-07-14 20:02:37 +02:00