platform/upstream/gflags.git
8 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)

8 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)

8 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)

8 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

8 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]

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

8 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

8 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)

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

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

8 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.

8 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.

8 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

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

8 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

8 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

8 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

8 years agocmake: Clean up static library filename suffix code from PR #126
Andreas Schuh [Mon, 29 Feb 2016 17:58:46 +0000 (17:58 +0000)]
cmake: Clean up static library filename suffix code from PR #126

8 years agoMerge pull request #126 from hevy-CC4477/master
Andreas Schuh [Mon, 29 Feb 2016 17:54:40 +0000 (17:54 +0000)]
Merge pull request #126 from hevy-CC4477/master

Use ```_static``` suffix in filename of static library on Windows to distinguish it from the import library.

8 years agoenh: Add usage of DEFINE_validator to test project
Andreas Schuh [Mon, 29 Feb 2016 17:12:15 +0000 (17:12 +0000)]
enh: Add usage of DEFINE_validator to test project

8 years ago#136 Move test binaries to Testing/bin
Andreas Schuh [Mon, 29 Feb 2016 17:03:08 +0000 (17:03 +0000)]
#136 Move test binaries to Testing/bin

8 years ago#51 #138 Use std::string instead const char * for global "constants"
Andreas Schuh [Mon, 29 Feb 2016 16:15:11 +0000 (16:15 +0000)]
#51 #138 Use std::string instead const char * for global "constants"

8 years agofix: Pass std::string directly, no need for c_str() call
Andreas Schuh [Mon, 29 Feb 2016 16:12:33 +0000 (16:12 +0000)]
fix: Pass std::string directly, no need for c_str() call

8 years agoproperly export the .so minor version
Evan Klitzke [Sat, 27 Feb 2016 20:36:14 +0000 (12:36 -0800)]
properly export the .so minor version

8 years agomod: Update doc
Andreas Schuh [Fri, 19 Feb 2016 13:43:45 +0000 (13:43 +0000)]
mod: Update doc

8 years ago#51 Call ShutDownCommandLineFlags for (manual) valgrind test
Andreas Schuh [Fri, 19 Feb 2016 13:20:28 +0000 (13:20 +0000)]
#51 Call ShutDownCommandLineFlags for (manual) valgrind test

8 years ago#51 Use static StringFlagDestructor to destruct string objects allocated by placement new
Andreas Schuh [Fri, 19 Feb 2016 12:59:05 +0000 (12:59 +0000)]
#51 Use static StringFlagDestructor to destruct string objects allocated by placement new

8 years agoMerge pull request #133 from earhart/master
Andreas Schuh [Fri, 19 Feb 2016 09:50:17 +0000 (09:50 +0000)]
Merge pull request #133 from earhart/master

Add Bazel build support

8 years agoAdd bazel support
Rob Earhart [Fri, 19 Feb 2016 02:16:44 +0000 (18:16 -0800)]
Add bazel support

8 years agoMerge pull request #131 from sbc100/no_threads
Andreas Schuh [Fri, 12 Feb 2016 17:44:56 +0000 (17:44 +0000)]
Merge pull request #131 from sbc100/no_threads

Define NO_THREADS when building without threads

8 years agoDefine NO_THREADS in when building without threads
Sam Clegg [Sat, 30 Jan 2016 00:09:43 +0000 (16:09 -0800)]
Define NO_THREADS in when building without threads

Previously NOTHREADS was being defined but the code
in mutex.h checks for NO_THREADS.

8 years agoMerge pull request #129 from Nazg-Gul/master
Andreas Schuh [Tue, 12 Jan 2016 13:30:13 +0000 (13:30 +0000)]
Merge pull request #129 from Nazg-Gul/master

Resolve some compiler warnings

8 years agoFix some compilation warnings with MSVC 2015
Sergey Sharybin [Thu, 31 Dec 2015 12:16:26 +0000 (17:16 +0500)]
Fix some compilation warnings with MSVC 2015

MSVC 2015 already defines vsnprintf() and va_copy().

8 years agoResolve several missing declarations warnings
Sergey Sharybin [Thu, 31 Dec 2015 12:09:59 +0000 (17:09 +0500)]
Resolve several missing declarations warnings

9 years agohandle generation of dynamic and static library on windows.
Arnaud Farbos [Thu, 5 Nov 2015 20:03:37 +0000 (12:03 -0800)]
handle generation of dynamic and static library on windows.

9 years ago#125 Fix unused typedef/variable warning for static assertion
Andreas Schuh [Wed, 28 Oct 2015 00:19:33 +0000 (00:19 +0000)]
#125 Fix unused typedef/variable warning for static assertion

9 years ago#124 Remove using namespace from mutex.h
Andreas Schuh [Tue, 27 Oct 2015 23:00:58 +0000 (23:00 +0000)]
#124 Remove using namespace from mutex.h

9 years agoMerge pull request #116 from KjellSchubert/vs2015
Andreas Schuh [Tue, 19 May 2015 23:37:42 +0000 (00:37 +0100)]
Merge pull request #116 from KjellSchubert/vs2015

Fix build with MS VS 2015 RC

9 years agosupport for msvs 2015
Kjell Schubert [Tue, 19 May 2015 22:56:39 +0000 (15:56 -0700)]
support for msvs 2015

9 years ago#113 Require CMake >= 2.8.12
Andreas Schuh [Fri, 3 Apr 2015 15:12:38 +0000 (16:12 +0100)]
#113 Require CMake >= 2.8.12

Earlier version, such as CMake 2.8.11.2 in particular, have incomplete or faulty support of target_include_directories generator expressions. Moreover, this allows us to assume that the command target_include_directories is available.

9 years ago#112 Use HTTPS protocol for "doc" submodule to not require SSH authentication
Andreas Schuh [Tue, 31 Mar 2015 14:53:18 +0000 (15:53 +0100)]
#112 Use HTTPS protocol for "doc" submodule to not require SSH authentication

9 years ago#106 Add test of gflags-config.cmake package configuration
Andreas Schuh [Wed, 25 Mar 2015 13:54:49 +0000 (13:54 +0000)]
#106 Add test of gflags-config.cmake package configuration

9 years ago#110 Set gflags_LIBRARIES to value of gflags_TARGET instead of "gflags"
Andreas Schuh [Wed, 25 Mar 2015 03:17:36 +0000 (03:17 +0000)]
#110 Set gflags_LIBRARIES to value of gflags_TARGET instead of "gflags"

9 years ago#110 Update CMake example on how to link against gflags library
Andreas Schuh [Wed, 25 Mar 2015 03:13:56 +0000 (03:13 +0000)]
#110 Update CMake example on how to link against gflags library

9 years ago#110 Add "gflags" import target and gflags_TARGET
Andreas Schuh [Wed, 25 Mar 2015 03:07:04 +0000 (03:07 +0000)]
#110 Add "gflags" import target and gflags_TARGET

The gflags_TARGET variable contains the name of the originally exported import target. The "gflags" import target contains a copy of the relevant properties of this import target created by CMake. The gflags_LIBRARIES variable can be used to be consistent with other packages, but is otherwise no longer needed. In most cases, "target_link_libraries(foo gflags)" should be used.

9 years ago#108 Use PROJECT_BINARY_DIR in place of gflags_BINARY_DIR
Andreas Schuh [Wed, 25 Mar 2015 00:14:46 +0000 (00:14 +0000)]
#108 Use PROJECT_BINARY_DIR in place of gflags_BINARY_DIR

9 years ago#107 Correct description of GFLAGS_INCLUDE_DIR
Andreas Schuh [Wed, 25 Mar 2015 00:02:22 +0000 (00:02 +0000)]
#107 Correct description of GFLAGS_INCLUDE_DIR

9 years ago#107 Document remaining CMake cache entries
Andreas Schuh [Wed, 25 Mar 2015 00:00:50 +0000 (00:00 +0000)]
#107 Document remaining CMake cache entries

9 years ago#105 Modify negative compilation tests to link against gflags_LIBRARIES
Andreas Schuh [Tue, 24 Mar 2015 23:45:21 +0000 (23:45 +0000)]
#105 Modify negative compilation tests to link against gflags_LIBRARIES

9 years ago#108 Fix temporary directory configuration of negative compilation tests
Andreas Schuh [Tue, 24 Mar 2015 23:44:34 +0000 (23:44 +0000)]
#108 Fix temporary directory configuration of negative compilation tests

9 years ago#104 Fix compilation of tests
Andreas Schuh [Tue, 24 Mar 2015 23:43:53 +0000 (23:43 +0000)]
#104 Fix compilation of tests

9 years agomod: Update gh-pages with correct GitHub organization URLs and CMake example
Andreas Schuh [Tue, 24 Mar 2015 23:31:34 +0000 (23:31 +0000)]
mod: Update gh-pages with correct GitHub organization URLs and CMake example

9 years agomod: Update gh-pages with documentation of config options
Andreas Schuh [Tue, 24 Mar 2015 19:13:46 +0000 (19:13 +0000)]
mod: Update gh-pages with documentation of config options

9 years ago#105 Add gflags_SHARED and gflags_NOTHREADED gflags-config.cmake options
Andreas Schuh [Tue, 24 Mar 2015 18:55:17 +0000 (18:55 +0000)]
#105 Add gflags_SHARED and gflags_NOTHREADED gflags-config.cmake options

9 years ago#104 Fix library include directories settings
Andreas Schuh [Tue, 24 Mar 2015 18:54:30 +0000 (18:54 +0000)]
#104 Fix library include directories settings

9 years agodoc: Correct year in README
Andreas Schuh [Tue, 24 Mar 2015 17:48:29 +0000 (17:48 +0000)]
doc: Correct year in README

9 years agodoc: Spelling correction
Andreas Schuh [Tue, 24 Mar 2015 17:07:00 +0000 (17:07 +0000)]
doc: Spelling correction

9 years agomod: Change URL of gh-pages submodule to use GitHub gflags community repo
Andreas Schuh [Tue, 24 Mar 2015 17:04:08 +0000 (17:04 +0000)]
mod: Change URL of gh-pages submodule to use GitHub gflags community repo

9 years agodoc: Add ChangeLog entries for release 2.1.2
Andreas Schuh [Tue, 24 Mar 2015 16:36:13 +0000 (16:36 +0000)]
doc: Add ChangeLog entries for release 2.1.2

9 years agodoc: Update README
Andreas Schuh [Tue, 24 Mar 2015 16:35:19 +0000 (16:35 +0000)]
doc: Update README

9 years agofixup: Package configuration
Andreas Schuh [Tue, 24 Mar 2015 16:29:31 +0000 (16:29 +0000)]
fixup: Package configuration

9 years agofix: Extension of README file for PackageMaker
Andreas Schuh [Tue, 24 Mar 2015 16:21:44 +0000 (16:21 +0000)]
fix: Extension of README file for PackageMaker

9 years ago#101 Enable C language again as long as FindThreads requires it
Andreas Schuh [Tue, 24 Mar 2015 15:36:26 +0000 (15:36 +0000)]
#101 Enable C language again as long as FindThreads requires it

This avoids having patched CMake modules in the source tree of the gflags library. Usually a C compiler is installed along a C++ compiler (or it is used for C as well). The only slight downside is the extra configuration time needed by CMake to check the C compiler.

9 years agomod: Update gh-pages
Andreas Schuh [Tue, 24 Mar 2015 15:05:08 +0000 (15:05 +0000)]
mod: Update gh-pages

9 years agodoc: Readding doc submodule
Andreas Schuh [Tue, 24 Mar 2015 14:59:51 +0000 (14:59 +0000)]
doc: Readding doc submodule

9 years agofix: Remove accidentally added gh-pages files
Andreas Schuh [Tue, 24 Mar 2015 14:48:59 +0000 (14:48 +0000)]
fix: Remove accidentally added gh-pages files