platform/upstream/gflags.git
6 years agoUse += for appends master
Rob Earhart [Sun, 7 Jan 2018 05:32:32 +0000 (21:32 -0800)]
Use += for appends

6 years agoAdd Bazel-on-Windows support
Rob Earhart [Fri, 5 Jan 2018 19:31:31 +0000 (11:31 -0800)]
Add Bazel-on-Windows support

6 years agorepair wrong namespace problem
Silver Chan [Fri, 3 Nov 2017 08:21:17 +0000 (16:21 +0800)]
repair wrong namespace problem

repair wrong namespace problem

6 years agoRemoved unused functions.
Sumit Gupta [Thu, 5 Oct 2017 15:50:56 +0000 (08:50 -0700)]
Removed unused functions.

6 years agoRemove using ::fLS::clstring;
Yi Wang [Sat, 5 Aug 2017 23:05:17 +0000 (16:05 -0700)]
Remove using ::fLS::clstring;

6 years agoenh: Move CMake defines to separate header, unused by Bazel
Andreas Schuh [Thu, 31 Aug 2017 17:53:26 +0000 (18:53 +0100)]
enh: Move CMake defines to separate header, unused by Bazel

This change avoids having to configure a private .h.in file during the Bazel build such that these files are not available to dependent projects in the GENDIR of the external gflags project.

6 years agoFix typo in BUILD
Siddhartha Bagaria [Sun, 27 Aug 2017 07:36:57 +0000 (00:36 -0700)]
Fix typo in BUILD

6 years agofix: Remove obsolete and unused CleanFileName code
Andreas Schuh [Tue, 11 Jul 2017 23:30:41 +0000 (00:30 +0100)]
fix: Remove obsolete and unused CleanFileName code

6 years agocmake: Add convenience uninstall target (#221)
Jason Juang [Tue, 11 Jul 2017 21:22:41 +0000 (14:22 -0700)]
cmake: Add convenience uninstall target (#221)

Note: Leaves behind empty directories, no real uninstaller. Just for convenience of some.

6 years agoRelease v2.2.1
Andreas Schuh [Tue, 11 Jul 2017 17:30:34 +0000 (18:30 +0100)]
Release v2.2.1

6 years agoenh: AppVeyor builds with different toolchains (copied from gtest project)
Andreas Schuh [Tue, 11 Jul 2017 15:25:57 +0000 (16:25 +0100)]
enh: AppVeyor builds with different toolchains (copied from gtest project)

6 years agofix: Check HAVE_STDINT_H or HAVE_INTTYPES_H for older MSVC versions
Andreas Schuh [Tue, 11 Jul 2017 14:41:01 +0000 (15:41 +0100)]
fix: Check HAVE_STDINT_H or HAVE_INTTYPES_H for older MSVC versions

6 years agogit: Ignore symbolic links created by Bazel build tool
Andreas Schuh [Tue, 11 Jul 2017 14:31:29 +0000 (15:31 +0100)]
git: Ignore symbolic links created by Bazel build tool

6 years agofix: Static code analyzer error regarding strncmp with empty kRootDir string
Andreas Schuh [Tue, 11 Jul 2017 08:45:17 +0000 (09:45 +0100)]
fix: Static code analyzer error regarding strncmp with empty kRootDir string

6 years agoUse inttypes.h on VC++ 2013 and up
Ben Vanik [Sun, 2 Apr 2017 22:26:06 +0000 (15:26 -0700)]
Use inttypes.h on VC++ 2013 and up

Warnings will spit out on newer compilers due to PRI* being redefined.
Tested with VC++ 2015 and 2017. [Blog post](https://blogs.msdn.microsoft.com/vcblog/2013/07/19/c99-library-support-in-visual-studio-2013/) describing the defines being added in 2013.

6 years agoFix CMake macro special variable usage (#216)
randomguy3 [Tue, 16 May 2017 10:35:11 +0000 (11:35 +0100)]
Fix CMake macro special variable usage (#216)

The argument-related variables in a macro body are not real variables,
but special substitutions. They cannot be directly referred to by name,
only expanded.

6 years agoFix static initialization order fiasco caused by global registry lock (#215)
Mmanu Chaturvedi [Fri, 12 May 2017 21:11:28 +0000 (15:11 -0600)]
Fix static initialization order fiasco caused by global registry lock (#215)

6 years agoInstall dll's to correct path (#213)
Arkady Shapkin [Thu, 11 May 2017 12:02:21 +0000 (15:02 +0300)]
Install dll's to correct path (#213)

6 years agoFix statically linked gflags library with MSVC
Arkady Shapkin [Sat, 6 May 2017 00:01:26 +0000 (03:01 +0300)]
Fix statically linked gflags library with MSVC

Fix #211

7 years agoMark single argument constructors in mutex.h as explicit.
Dan Minor [Tue, 28 Mar 2017 20:04:41 +0000 (16:04 -0400)]
Mark single argument constructors in mutex.h as explicit.

7 years agoChanged include directory in bazel build
Geoffrey Lalonde [Thu, 5 Jan 2017 21:07:27 +0000 (13:07 -0800)]
Changed include directory in bazel build

7 years agoenh: Link to online documentation in README
Andreas Schuh [Tue, 29 Nov 2016 10:33:53 +0000 (10:33 +0000)]
enh: Link to online documentation in README

7 years agofix: Enable language C for older CMake versions when needed (#196)
Andreas Schuh [Sat, 26 Nov 2016 21:55:33 +0000 (21:55 +0000)]
fix: Enable language C for older CMake versions when needed (#196)

* fix: Enable language C for older CMake versions when needed
* fix: Don’t care about buggy Android toolchain

7 years agofix: Remove unused program_name variable
Andreas Schuh [Sat, 26 Nov 2016 21:18:30 +0000 (21:18 +0000)]
fix: Remove unused program_name variable

7 years agofix: Include utils by file instead of CMAKE_MODULE_PATH search
Andreas Schuh [Sat, 26 Nov 2016 15:37:45 +0000 (15:37 +0000)]
fix: Include utils by file instead of CMAKE_MODULE_PATH search

7 years agoRelease v2.2.0
Andreas Schuh [Fri, 25 Nov 2016 18:32:19 +0000 (18:32 +0000)]
Release v2.2.0

7 years agodoc: //external:gflags_nothreads Bazel target
Andreas Schuh [Fri, 25 Nov 2016 18:49:11 +0000 (18:49 +0000)]
doc: //external:gflags_nothreads Bazel target

7 years agogit: Ignore builds/ subdirectory
Andreas Schuh [Fri, 25 Nov 2016 18:10:51 +0000 (18:10 +0000)]
git: Ignore builds/ subdirectory

7 years agodoc: Update use of gflags with Bazel documentation
Andreas Schuh [Fri, 25 Nov 2016 18:10:19 +0000 (18:10 +0000)]
doc: Update use of gflags with Bazel documentation

7 years agoenh: Bazel BUILD, add WORKSPACE file (#192)
Andreas Schuh [Fri, 25 Nov 2016 17:37:38 +0000 (17:37 +0000)]
enh: Bazel BUILD, add WORKSPACE file (#192)

7 years agoadd: Bazel WORKSPACE file
Andreas Schuh [Fri, 25 Nov 2016 13:47:53 +0000 (13:47 +0000)]
add: Bazel WORKSPACE file

7 years agoenh: Refactored Bazel BUILD rules
Andreas Schuh [Fri, 25 Nov 2016 13:47:29 +0000 (13:47 +0000)]
enh: Refactored Bazel BUILD rules

7 years agoRevert "enh: Rename private sources, include public headers with rel path"
Andreas Schuh [Fri, 25 Nov 2016 13:42:29 +0000 (13:42 +0000)]
Revert "enh: Rename private sources, include public headers with rel path"

7 years agoenh: Rename private sources, include public headers with rel path
Andreas Schuh [Fri, 25 Nov 2016 12:35:39 +0000 (12:35 +0000)]
enh: Rename private sources, include public headers with rel path

7 years agofix: Add -lpthread to link Bazel BUILD options (#189)
Andreas Schuh [Fri, 25 Nov 2016 09:10:09 +0000 (09:10 +0000)]
fix: Add -lpthread to link Bazel BUILD options (#189)

* fix: Add -pthread link option to Bazel BUILD file
* fix: Use -lpthread instead of -pthread

7 years agoenh: Configure and install pkg-config .pc file
Andreas Schuh [Fri, 25 Nov 2016 08:50:08 +0000 (08:50 +0000)]
enh: Configure and install pkg-config .pc file

7 years agoenh: Set GFLAGS_IS_A_DLL in INTERFACE_COMPILE_DEFINITIONS
Andreas Schuh [Fri, 25 Nov 2016 08:25:09 +0000 (08:25 +0000)]
enh: Set GFLAGS_IS_A_DLL in INTERFACE_COMPILE_DEFINITIONS

7 years agofix: Ensure installation path uses forward slashes
Andreas Schuh [Thu, 24 Nov 2016 23:15:34 +0000 (23:15 +0000)]
fix: Ensure installation path uses forward slashes

7 years agoenh: Add option to add installation to CMake’s package registry
Andreas Schuh [Thu, 24 Nov 2016 22:36:48 +0000 (22:36 +0000)]
enh: Add option to add installation to CMake’s package registry

7 years agofix: Copy missing IMPORTED_IMPLIB_<CONFIG> gflags target property
Andreas Schuh [Thu, 24 Nov 2016 23:16:58 +0000 (23:16 +0000)]
fix: Copy missing IMPORTED_IMPLIB_<CONFIG> gflags target property

7 years agoenh: Avoid use of install(EXPORTS) FILE option
Andreas Schuh [Thu, 24 Nov 2016 21:49:41 +0000 (21:49 +0000)]
enh: Avoid use of install(EXPORTS) FILE option

7 years agoConvert dashes to underscores for unknown flags (#177)
Todd Lipcon [Wed, 12 Oct 2016 17:23:42 +0000 (10:23 -0700)]
Convert dashes to underscores for unknown flags (#177)

7 years agoFix error messages to not truncate to 255 characters (#175)
David Lam [Wed, 5 Oct 2016 07:25:50 +0000 (00:25 -0700)]
Fix error messages to not truncate to 255 characters (#175)

7 years agofix: Validate modified flags only once (#173)
Andreas Schuh [Sat, 17 Sep 2016 16:17:24 +0000 (17:17 +0100)]
fix: Validate modified flags only once (#173)

7 years agofix make error for lacking namespace (#170)
田欧 [Wed, 31 Aug 2016 05:39:41 +0000 (13:39 +0800)]
fix make error for lacking namespace (#170)

7 years agoFix unsigned comparison error in gflags_reporting.cc (#168)
Aaryaman Sagar [Wed, 24 Aug 2016 17:03:08 +0000 (13:03 -0400)]
Fix unsigned comparison error in gflags_reporting.cc (#168)

7 years agoFix Windows linker errors and warnings. (#166)
Dreamer [Wed, 3 Aug 2016 07:25:38 +0000 (10:25 +0300)]
Fix Windows linker errors and warnings. (#166)

7 years agoAdd shared library build to the AppVeyor CI config. (#167)
Dreamer [Wed, 3 Aug 2016 07:24:55 +0000 (10:24 +0300)]
Add shared library build to the AppVeyor CI config. (#167)

7 years agoRemove filter for excluded tests from AppVeyor config. (#165)
Dreamer [Tue, 2 Aug 2016 11:28:57 +0000 (14:28 +0300)]
Remove filter for excluded tests from AppVeyor config. (#165)

7 years agotest: Travis CI build static+shared in Release+Debug (#164)
Andreas Schuh [Tue, 2 Aug 2016 11:24:34 +0000 (12:24 +0100)]
test: Travis CI build static+shared in Release+Debug (#164)

7 years agofix: Run strip_flags_binary test only for release configurations (#163)
Andreas Schuh [Tue, 2 Aug 2016 11:15:44 +0000 (12:15 +0100)]
fix: Run strip_flags_binary test only for release configurations (#163)

7 years agotest: Run AppVeyor build via cmake --build and run tests. (#162)
Dreamer [Tue, 2 Aug 2016 11:00:16 +0000 (14:00 +0300)]
test: Run AppVeyor build via cmake --build and run tests. (#162)

7 years agofix: Typo in gflags_strip_flags_test.cmake script
Andreas Schuh [Tue, 2 Aug 2016 08:51:47 +0000 (09:51 +0100)]
fix: Typo in gflags_strip_flags_test.cmake script

7 years agodoc: Add AppVeyor status badge to README
Andreas Schuh [Mon, 1 Aug 2016 19:04:43 +0000 (20:04 +0100)]
doc: Add AppVeyor status badge to README

[ci skip]

7 years agoAdd initial AppVeyor config. (#161)
Dreamer [Mon, 1 Aug 2016 18:57:54 +0000 (22:57 +0400)]
Add initial AppVeyor config. (#161)

7 years agodoc: Add Travis CI status badge to README
Andreas Schuh [Mon, 1 Aug 2016 16:05:26 +0000 (17:05 +0100)]
doc: Add Travis CI status badge to README

7 years agoEnable Travis CI for Linux and OSX builds (#160)
Dreamer [Mon, 1 Aug 2016 16:01:18 +0000 (20:01 +0400)]
Enable Travis CI for Linux and OSX builds (#160)

7 years agoMerge pull request #158 from dreamer-dead/use-type-name-enum
Andreas Schuh [Mon, 1 Aug 2016 14:10:29 +0000 (15:10 +0100)]
Merge pull request #158 from dreamer-dead/use-type-name-enum

Use enum to specify flag value type.

7 years agoFix wrong type comparison and outdated OfType() usage.
dreamer.dead [Mon, 1 Aug 2016 13:45:49 +0000 (16:45 +0300)]
Fix wrong type comparison and outdated OfType() usage.

7 years agoFix indentation and remove outdated assert.
dreamer.dead [Mon, 1 Aug 2016 11:54:46 +0000 (14:54 +0300)]
Fix indentation and remove outdated assert.

7 years agoExtract common code from FlagRegisterer to reduce size.
dreamer.dead [Mon, 1 Aug 2016 11:52:26 +0000 (14:52 +0300)]
Extract common code from FlagRegisterer to reduce size.

7 years agoChange template FlagValue::OfType() to Type() getter.
dreamer.dead [Mon, 1 Aug 2016 11:51:11 +0000 (14:51 +0300)]
Change template FlagValue::OfType() to Type() getter.

7 years agoDo not pass flag type as a char literal when registering a new flag.
dreamer.dead [Fri, 29 Jul 2016 18:02:29 +0000 (21:02 +0300)]
Do not pass flag type as a char literal when registering a new flag.

It is possible to create a type-safe version of FlagRegisterer
ctor (as well as some internal gflags classes), that will deduce
type of the new flag automatically.

This results in removing quite a few calls to strcmp() when new
flag is created.

No existing behavior change.

7 years agoMerge pull request #156 from dreamer-dead/fix-flag-value-typename
Andreas Schuh [Wed, 20 Jul 2016 09:24:14 +0000 (10:24 +0100)]
Merge pull request #156 from dreamer-dead/fix-flag-value-typename

Fix incorrect flag value typename for uint32.

7 years agoFix unittests expectations related to uint32.
dreamer.dead [Wed, 20 Jul 2016 09:18:08 +0000 (12:18 +0300)]
Fix unittests expectations related to uint32.

7 years agoFix uint32 type name.
dreamer.dead [Wed, 20 Jul 2016 09:16:34 +0000 (12:16 +0300)]
Fix uint32 type name.

7 years agoMerge pull request #155 from dreamer-dead/add-missing-reference
Andreas Schuh [Mon, 18 Jul 2016 16:09:53 +0000 (17:09 +0100)]
Merge pull request #155 from dreamer-dead/add-missing-reference

Add missing reference symbol to a function parameter.

7 years agoAdd missing reference symbol to a function parameter.
dreamer.dead [Mon, 18 Jul 2016 15:44:20 +0000 (18:44 +0300)]
Add missing reference symbol to a function parameter.

7 years agoMerge pull request #152 from Liuchang0812/master
Andreas Schuh [Tue, 28 Jun 2016 11:15:02 +0000 (12:15 +0100)]
Merge pull request #152 from Liuchang0812/master

fix: Consider Windows-style LRLF in flag parsing

7 years agofix bug about LRLF
liuchang0812 [Tue, 28 Jun 2016 09:57:02 +0000 (17:57 +0800)]
fix bug about LRLF

7 years agofix #151: Ubuntu package name in INSTALL instructions
Andreas Schuh [Wed, 1 Jun 2016 11:00:42 +0000 (12:00 +0100)]
fix #151: Ubuntu package name in INSTALL instructions

7 years agoMerge pull request #150 from LuminateWireless/fix-bazel-build
Andreas Schuh [Tue, 10 May 2016 21:45:26 +0000 (22:45 +0100)]
Merge pull request #150 from LuminateWireless/fix-bazel-build

Fix bazel build

7 years agoAdd gendir to the include path so that building with bazel doesn't
Ming Zhao [Tue, 10 May 2016 21:42:11 +0000 (14:42 -0700)]
Add gendir to the include path so that building with bazel doesn't
complain config.h can't be found.

8 years agoMerge pull request #149 from hevy-CC4477/master
Andreas Schuh [Tue, 26 Apr 2016 14:46:56 +0000 (15:46 +0100)]
Merge pull request #149 from hevy-CC4477/master

Add GFLAGS_IS_A_DLL compile option for unit test which includes private config.h.

8 years agofix test compilation
FARBOS Arnaud [Tue, 26 Apr 2016 13:05:53 +0000 (15:05 +0200)]
fix test compilation

8 years agoMerge pull request #147 from bazineta/master
Andreas Schuh [Wed, 6 Apr 2016 10:55:47 +0000 (11:55 +0100)]
Merge pull request #147 from bazineta/master

Support uint32 as flag type

8 years agoCorrect FV_MAX_INDEX
Allan L. Bazinet [Tue, 5 Apr 2016 17:56:57 +0000 (10:56 -0700)]
Correct FV_MAX_INDEX

8 years agoSupport uint32 as flag type
Allan L. Bazinet [Tue, 5 Apr 2016 17:50:21 +0000 (10:50 -0700)]
Support uint32 as flag type

From #99, “Given that there is an unsigned flag type for 64-bit
integers, it is probably reasonable to request/expect the same for
32-bit integers.”

8 years agoMerge PR #137 with change of SOVERSION to <major>.<minor>
Andreas Schuh [Fri, 4 Mar 2016 10:12:01 +0000 (10:12 +0000)]
Merge PR #137 with change of SOVERSION to <major>.<minor>

8 years agofix: Change SOVERSION to <major>.<minor> for 2.x release versions
Andreas Schuh [Fri, 4 Mar 2016 10:11:39 +0000 (10:11 +0000)]
fix: Change SOVERSION to <major>.<minor> for 2.x release versions

8 years agoMerge pull request #143 from schuhschuh/fix-bazel-bulid-osx
Andreas Schuh [Wed, 2 Mar 2016 17:53:32 +0000 (17:53 +0000)]
Merge pull request #143 from schuhschuh/fix-bazel-bulid-osx

fix #133: Use awk instead of sed which would require different options on OS X

8 years agofix #133: Use awk instead of sed which would require different options on OS X
Andreas Schuh [Wed, 2 Mar 2016 17:52:19 +0000 (17:52 +0000)]
fix #133: Use awk instead of sed which would require different options on OS X

8 years agoMerge pull request #142 from schuhschuh/master
Andreas Schuh [Tue, 1 Mar 2016 22:01:54 +0000 (22:01 +0000)]
Merge pull request #142 from schuhschuh/master

mod: Update doc with new find_package COMPONENTS or subproject use

8 years agomod: Update doc with new find_package COMPONENTS or subproject use
Andreas Schuh [Tue, 1 Mar 2016 22:01:29 +0000 (22:01 +0000)]
mod: Update doc with new find_package COMPONENTS or subproject use

8 years agoMerge pull request #141 from schuhschuh/master
Andreas Schuh [Tue, 1 Mar 2016 21:35:48 +0000 (21:35 +0000)]
Merge pull request #141 from schuhschuh/master

Fix build of unit test on Ubuntu/Windows by changing include order

8 years agoMerge branch 'master' of github.com:gflags/gflags
Andreas Schuh [Tue, 1 Mar 2016 21:34:32 +0000 (21:34 +0000)]
Merge branch 'master' of github.com:gflags/gflags

8 years agofix: Include order of config.h and gflags.h in unit test
Andreas Schuh [Tue, 1 Mar 2016 21:34:24 +0000 (21:34 +0000)]
fix: Include order of config.h and gflags.h in unit test

8 years agoMerge pull request #140 from schuhschuh/enh-#117-gflags-subproject-support
Andreas Schuh [Tue, 1 Mar 2016 21:33:41 +0000 (21:33 +0000)]
Merge pull request #140 from schuhschuh/enh-#117-gflags-subproject-support

These changes improve the CMakeLists.txt of the gflags project to make CMake variables configurable via command-line option -D or super-project settings. Moreover, gflags related variables are only added to the CMake cache when the gflags project is configured as a standalone project. When it is a subproject (cf. #117), the super-project is responsible for setting the configuration variables.

This change set also changes the names of the (exported) target names to gflags[_nothreads]_(static|shared) and the CMake (package) configuration variable names to start with an uppercase prefix "GFLAGS_".

8 years agocmake: Rename targets to gflags[_nothreads]_(static|shared), support
Andreas Schuh [Tue, 1 Mar 2016 21:04:10 +0000 (21:04 +0000)]
cmake: Rename targets to gflags[_nothreads]_(static|shared), support
find_package COMPONENTS

8 years agocmake: Require CMake 2.8.12 in NC tests
Andreas Schuh [Tue, 1 Mar 2016 21:03:05 +0000 (21:03 +0000)]
cmake: Require CMake 2.8.12 in NC tests

8 years agocmake: Change CMake package configuration variable name prefix to GFLAGS_
Andreas Schuh [Tue, 1 Mar 2016 20:04:16 +0000 (20:04 +0000)]
cmake: Change CMake package configuration variable name prefix to GFLAGS_

8 years agocmake: Add CMake variable to cache only when gflags is not a subproject
Andreas Schuh [Tue, 1 Mar 2016 20:03:43 +0000 (20:03 +0000)]
cmake: Add CMake variable to cache only when gflags is not a subproject

This change allows the user to include the gflags project as subtree/
submodule in their own project. In this case, no CMake variables used
to configure the build and installation of the gflags library should be
added to the CMake cache.

8 years agogit: Add CMakeLists.txt.user Qt Creator configuration to ignore list
Andreas Schuh [Tue, 1 Mar 2016 20:10:22 +0000 (20:10 +0000)]
git: Add CMakeLists.txt.user Qt Creator configuration to ignore list

8 years agoMerge pull request #139 from schuhschuh/master
Andreas Schuh [Tue, 1 Mar 2016 19:59:53 +0000 (19:59 +0000)]
Merge pull request #139 from schuhschuh/master

Fix compilation of unittest on Ubuntu

8 years agofix: Require CMake version 2.8.12 in test project
Andreas Schuh [Tue, 1 Mar 2016 19:56:54 +0000 (19:56 +0000)]
fix: Require CMake version 2.8.12 in test project

8 years agofix: Include private config.h in gflags_unittest.cc
Andreas Schuh [Tue, 1 Mar 2016 19:56:02 +0000 (19:56 +0000)]
fix: Include private config.h in gflags_unittest.cc

8 years agofix: Package URLs
Andreas Schuh [Tue, 1 Mar 2016 16:01:45 +0000 (16:01 +0000)]
fix: Package URLs

8 years agoRevert "#136 Move test binaries to Testing/bin"
Andreas Schuh [Mon, 29 Feb 2016 19:30:58 +0000 (19:30 +0000)]
Revert "#136 Move test binaries to Testing/bin"

This reverts commit 02f318978863a74c74359bc5bf7ab2ed09cf0d87.

8 years agofix: DLL import/export defines for unit tests, remove obsolete config_for_unittests.h
Andreas Schuh [Mon, 29 Feb 2016 19:18:21 +0000 (19:18 +0000)]
fix: DLL import/export defines for unit tests, remove obsolete config_for_unittests.h

8 years agofix: Add missing include guards to gflags/config.h
Andreas Schuh [Mon, 29 Feb 2016 19:17:00 +0000 (19:17 +0000)]
fix: Add missing include guards to gflags/config.h