Adding gflags to handle command line flags.

It sucks, but is the best there is without using boost.
This commit is contained in:
Ben Vanik
2013-01-23 21:31:23 -08:00
parent 01fee047f7
commit 860a0739ec
14 changed files with 183 additions and 35 deletions

1
third_party/gflags vendored Submodule

Submodule third_party/gflags added at 56e77c6a2f

34
third_party/gflags.gypi vendored Normal file
View File

@@ -0,0 +1,34 @@
# Copyright 2013 Ben Vanik. All Rights Reserved.
{
'targets': [
{
'target_name': 'gflags',
'type': 'static_library',
'direct_dependent_settings': {
'include_dirs': [
'gflags/src/',
],
},
'include_dirs': [
'gflags/src/',
],
'sources': [
'gflags/src/gflags.cc',
'gflags/src/gflags_completions.cc',
'gflags/src/gflags_nc.cc',
'gflags/src/gflags_reporting.cc',
],
'conditions': [
['OS == "win"', {
'sources!': [
'gflags/src/windows/port.cc',
],
}],
],
}
]
}