Commit graph

89 commits

Author SHA1 Message Date
Andreas Schuh
3900860906 Ignore .DS_Store files of OS X. 2013-11-05 12:09:52 +00:00
Andreas Schuh
01d810e3c0 Be more specific about what to ignore. 2013-11-05 12:03:29 +00:00
Andreas Schuh
48316bd345 Merge pull request #3 from dominichamon/cmake-migration
Adding gitignore for generated files
2013-11-05 03:56:17 -08:00
Andreas Schuh
27c0c9ef79 Merge pull request #4 from daniperez/cmake-migration
Exporting binary tree to CMake registry
2013-11-04 16:56:31 -08:00
Dani Perez
459e529168 exporting binary tree to CMake registry
This eases integration with other applications making use
of gflags without needing to install it in the system.
find_package looks in the registry for existing software.
2013-10-22 23:03:27 +02:00
Dominic Hamon
99f52df612 Adding gitignore for generated files 2013-09-20 14:14:23 -07:00
Andreas Schuh
667c52be59 Remove reference to README_windows. 2013-08-01 03:53:59 +01:00
Andreas Schuh
3c0cd06b6d Document finding and linking to gflags using CMake. 2013-08-01 03:46:29 +01:00
Andreas Schuh
1c9f065dd0 Add negative compilation tests. 2013-08-01 03:31:47 +01:00
Andreas Schuh
7abcbdcbbd Add gflags library which is built with NO_THREADS definition. 2013-08-01 02:04:37 +01:00
Andreas Schuh
ac3cb02be8 Add missing unittest2 and unittest3 executables. 2013-08-01 01:59:32 +01:00
Andreas Schuh
126f36b826 Enable build and execution of tests again using CTest. 2013-08-01 01:47:13 +01:00
Andreas Schuh
620557ccbc Install Bash completion script. 2013-08-01 01:06:36 +01:00
Andreas Schuh
5564469b96 Give basic CMake based build instructions in INSTALL file. 2013-08-01 00:52:46 +01:00
Andreas Schuh
7a07439cf6 Set PACKAGE_VERSION_EXACT to FALSE if major.minor version is not equal to the requested version. 2013-08-01 00:27:40 +01:00
Andreas Schuh
2ec91bffad Move definition of configure_sources CMake function to utils module. 2013-08-01 00:17:53 +01:00
Andreas Schuh
ffbc1cea57 Use gflags as target name instead of PACKAGE_NAME to not make things unnecessarily generic. 2013-08-01 00:17:13 +01:00
Andreas Schuh
6ec7d7f81e Fix relative path to installation prefix in CMake config file. 2013-08-01 00:10:15 +01:00
Andreas Schuh
43a33dcd53 Install CMake config file inside lib/ directory on Unix. 2013-08-01 00:01:21 +01:00
Andreas Schuh
42a0018843 Configure and install CMake package configuration file to help find_package locate the gflags package. 2013-07-31 23:55:50 +01:00
Andreas Schuh
6f2a78a26f Fix configuration on Windows and add src directory to include path. 2013-05-22 11:02:04 +01:00
Andreas Schuh
4eb2cb223b Add missing windows portability definitions. 2013-05-22 00:06:08 +01:00
Andreas Schuh
f7e89ba9ea Move public header files to src/ subdirectory. Copy them to <prefix>/include/<ns>/ upon installation. 2013-04-21 03:38:25 +01:00
Andreas Schuh
3624d33ae5 Set CMAKE_BUILD_TYPE to Release by default. Require CMake >=2.8. 2013-04-21 03:09:43 +01:00
Andreas Schuh
392eb67dbf Add CMakeLists.txt and adapt source files accordingly. 2013-04-21 03:05:35 +01:00
Andreas Schuh
2eed08d94a Move public header files to separate subdirectory. 2013-04-21 00:11:52 +01:00
Andreas Schuh
5ed8ae17a9 Remove build tool related files, operating system packages, and move unit tests to separate subdirectory. 2013-04-21 00:06:37 +01:00
Andreas Schuh
4328de857d Update NEWS: Git repository hosted on GitHub.
git-svn-id: https://gflags.googlecode.com/svn/trunk@84 6586e3c6-dcc4-952a-343f-ff74eb82781d
2013-04-20 22:49:37 +00:00
Andreas Schuh
dba41e672c Test commit via git-svn, only adding blank lines to NEWS.
git-svn-id: https://gflags.googlecode.com/svn/trunk@83 6586e3c6-dcc4-952a-343f-ff74eb82781d
2013-04-20 22:14:36 +00:00
Andreas Schuh
45a53dea87 Add DEFINE_validator macro for convenient registration of a flag validator.
git-svn-id: https://gflags.googlecode.com/svn/trunk@82 6586e3c6-dcc4-952a-343f-ff74eb82781d
2013-04-20 18:35:34 +00:00
Andreas Schuh
8011f61247 Use static_cast to avoid comparison of signed and unsigned integer warning in util.h.
git-svn-id: https://gflags.googlecode.com/svn/trunk@81 6586e3c6-dcc4-952a-343f-ff74eb82781d
2013-01-14 15:11:53 +00:00
Andreas Schuh
f098a54822 Fix deprecation warnings of VC++ regarding strdup and unlink. Add solution files for VS 2010 and VS 2012.
git-svn-id: https://gflags.googlecode.com/svn/trunk@80 6586e3c6-dcc4-952a-343f-ff74eb82781d
2012-11-20 14:48:22 +00:00
Andreas Schuh
1235a6d519 Add "build/" subdirectory to ignore list.
git-svn-id: https://gflags.googlecode.com/svn/trunk@79 6586e3c6-dcc4-952a-343f-ff74eb82781d
2012-11-11 20:33:21 +00:00
Andreas Schuh
6b215b0a3a Use project name (gflags) within include guards to avoid conflict with gperftools as reported by chen3feng (issue #62, http://code.google.com/p/gflags/issues/detail?id=62).
git-svn-id: https://gflags.googlecode.com/svn/trunk@78 6586e3c6-dcc4-952a-343f-ff74eb82781d
2012-11-11 20:32:35 +00:00
Andreas Schuh
e88280ed85 Fix "invalid suffix on literal; C++11 requires a space between literal and identifier" errors as reported by http://code.google.com/p/gflags/issues/detail?id=54.
git-svn-id: https://gflags.googlecode.com/svn/trunk@77 6586e3c6-dcc4-952a-343f-ff74eb82781d
2012-05-29 15:19:11 +00:00
Craig Silverstein
8306eef3ec Fixed a typo in the email address.
git-svn-id: https://gflags.googlecode.com/svn/trunk@76 6586e3c6-dcc4-952a-343f-ff74eb82781d
2012-02-02 22:49:44 +00:00
Craig Silverstein
f18772936d Wed Jan 25 15:09:14 2012 Google Inc. <google-gflags@googlegroups.com>
* gflags: version 2.0
	* Changed the 'official' gflags email in setup.py/etc
	* Renamed google-gflags.sln to gflags.sln
	* Changed copyright text to reflect Google's relinquished ownership


git-svn-id: https://gflags.googlecode.com/svn/trunk@74 6586e3c6-dcc4-952a-343f-ff74eb82781d
2012-01-25 23:59:40 +00:00
Craig Silverstein
ec7c7a209d Tue Dec 20 19:48:57 2011 Google Inc. <opensource@google.com>
* google-gflags: version 1.7
	* Add CommandLineFlagInfo::flag_ptr pointing to current storage (musji)
	* PORTING: flush after writing to stderr, needed on cygwin
	* PORTING: Clean up the GFLAGS_DLL_DECL stuff better
	* Fix a bug in StringPrintf() that affected large strings (csilvers)
	* Die at configure-time when g++ isn't installed


git-svn-id: https://gflags.googlecode.com/svn/trunk@72 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-12-21 04:28:52 +00:00
Craig Silverstein
80912052d0 Clarify thread-safety comment for FlagSaver.
Tested:
blaze test base:commandlineflags_unittest

R=csilvers
DELTA=4  (3 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3791


git-svn-id: https://gflags.googlecode.com/svn/trunk@71 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-12-01 01:58:29 +00:00
Craig Silverstein
be2da58d73 The last bit of rolling back commandlineflag categories:
remove the 'categories' field from CommandLineFlagInfo.  (Note
the code to fill this field was removed from
FillComandLineFlagInfo previously, so it's been an empty
string for some time now.)

R=ncalvin
DELTA=1  (0 added, 1 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3616


git-svn-id: https://gflags.googlecode.com/svn/trunk@70 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:37:01 +00:00
Craig Silverstein
2535e43dd2 Get rid of the old FlagRegisterer constructor.
R=jkline,georgevdd
DELTA=27  (0 added, 27 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3609


git-svn-id: https://gflags.googlecode.com/svn/trunk@69 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:28:30 +00:00
Craig Silverstein
c23c6c6fc8 Starting the rollback of flag categories.
I left in the old FlagRegisterer constructor.
I also left in 'categories' in CommandLineFlagInfo for now,
though I never use it.  I doubt anyone else does either, but I
want to minimize the number of ways this rollback can break
the build.  I will remove it in a subsequent CL.

R=ncalvin
DELTA=121  (28 added, 55 deleted, 38 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3574


git-svn-id: https://gflags.googlecode.com/svn/trunk@68 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:25:32 +00:00
Craig Silverstein
17a627a413 Add a 'flag_ptr' field to CommandLineFlagInfo that points to the current storage of the flag (i.e. &FLAGS_foo).
R=csilvers
DELTA=15  (15 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3301


git-svn-id: https://gflags.googlecode.com/svn/trunk@67 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:18:00 +00:00
Craig Silverstein
ee44191125 A user reported a bug that configure should die when g++ isn't
installed, but wasn't:
http://code.google.com/p/google-perftools/issues/detail?id=217

This turned out to be a bug in autoconf:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357378

The workaround is simple: check for CXX before checking for
CC.  This means that if g++ is installed but gcc isn't, we
won't die (at cc-checking time), but I tested, and the
configure script dies later.  In any case, it seems unlikely
someone would have a c++ compiler installed but not a c
compiler.

This fixes the 4 opensource projects I work on that are
susceptible to this.

R=iant
DELTA=1437  (694 added, 694 deleted, 49 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3222


git-svn-id: https://gflags.googlecode.com/svn/trunk@66 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:16:21 +00:00
Craig Silverstein
9bf7e65f08 Now I can get rid of the old constructor!
R=jkline,ncalvin
DELTA=28  (0 added, 27 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3169


git-svn-id: https://gflags.googlecode.com/svn/trunk@65 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:12:52 +00:00
Craig Silverstein
6b70a75081 http://code.google.com/p/google-gflags/issues/detail?id=45
reports that the error isn't always getting flushed on
cygwin.  So do that explicitly.

R=desovski
DELTA=1  (1 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3140


git-svn-id: https://gflags.googlecode.com/svn/trunk@64 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:11:24 +00:00
Craig Silverstein
29f02f9896 Report category names via the xml help output (but not, yet,
during 'normal' help output).

R=ncalvin
DELTA=3  (3 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3066


git-svn-id: https://gflags.googlecode.com/svn/trunk@63 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:09:49 +00:00
Craig Silverstein
10caa99e2d Add back in a backwards-compatible constructor for
FlagRegisterer.

Because this backwards-compatible API is intended to be
short-lived, I did it in the simplest, least invasive way
possible, which involved cutting-and-pasting.

R=ncalvin,jkline
DELTA=27  (27 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3065


git-svn-id: https://gflags.googlecode.com/svn/trunk@62 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:09:19 +00:00
Craig Silverstein
874aed5db7 NOTE: I'm checking this in just to have a record in source control of the idea. We've decided for now it doesn't make sense to go forward with flag categories -- and the __VA_ARGS__ for macros has caused lots of problems with uncaught accidental commas, already -- so a future commit will back this out. (Actually, it's all a series of commits, for annoying technical reasons.)
Add support for flag categories.

In this CL, all you can do is set categories in the DEFINE_*
macros and then retrieve them via GetCommandLineFlagInfo and
similar.

In future CLs, we will start to give some semantic meaning to
particular flag values, as described in the designdoc.  In
particular, we will start to use flag categories to revamp
--help output.

Implementation-wise: to keep categories an optional macro
argument, I had to use __VA_ARGS__, which means future gflags
releases will no longer work with MSVC 7.1.  We're at MSVC 10
now, so I'm pretty much ok with that.

The downside of __VA_ARGS__ is there is no error if you
specify more args after the ones we expect.  To get around
that, I only use __VA_ARGS_ in this idiom:
static const OptionalDefineArgs var = { __VA_ARGS__ };
The new OptionalDefineArgs struct defines all the args that
may be optionally specified in the DEFINE_* macros.  For now,
that's only the 'categories' arg, though in theory more could be
added later.

R=titus,ncalvin
DELTA=92  (54 added, 3 deleted, 35 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3057


git-svn-id: https://gflags.googlecode.com/svn/trunk@61 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-11-03 23:08:41 +00:00
Craig Silverstein
1b8e9bab5e Clean up the 'GFLAGS_DLL_DECL' stuff better: reduce use outside of windows/ directory.
R=jyrki
DELTA=33  (0 added, 27 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=3016


git-svn-id: https://gflags.googlecode.com/svn/trunk@60 6586e3c6-dcc4-952a-343f-ff74eb82781d
2011-08-18 11:39:20 +00:00