Updating gflags to build on Windows.
This commit is contained in:
2
third_party/gflags
vendored
2
third_party/gflags
vendored
Submodule third_party/gflags updated: 56e77c6a2f...f126a3a946
36
third_party/gflags.gypi
vendored
36
third_party/gflags.gypi
vendored
@@ -6,15 +6,24 @@
|
|||||||
'type': 'static_library',
|
'type': 'static_library',
|
||||||
|
|
||||||
'direct_dependent_settings': {
|
'direct_dependent_settings': {
|
||||||
'include_dirs': [
|
'conditions': [
|
||||||
'gflags/src/',
|
['OS != "win"', {
|
||||||
|
'include_dirs': [
|
||||||
|
'gflags/src/',
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
['OS == "win"', {
|
||||||
|
'include_dirs': [
|
||||||
|
'gflags/src/windows/',
|
||||||
|
],
|
||||||
|
'defines': [
|
||||||
|
'GFLAGS_DLL_DECL=',
|
||||||
|
'GFLAGS_DLL_DEFINE_FLAG=',
|
||||||
|
],
|
||||||
|
}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
'include_dirs': [
|
|
||||||
'gflags/src/',
|
|
||||||
],
|
|
||||||
|
|
||||||
'sources': [
|
'sources': [
|
||||||
'gflags/src/gflags.cc',
|
'gflags/src/gflags.cc',
|
||||||
'gflags/src/gflags_completions.cc',
|
'gflags/src/gflags_completions.cc',
|
||||||
@@ -23,10 +32,23 @@
|
|||||||
],
|
],
|
||||||
|
|
||||||
'conditions': [
|
'conditions': [
|
||||||
|
['OS != "win"', {
|
||||||
|
'include_dirs': [
|
||||||
|
'gflags/src/',
|
||||||
|
],
|
||||||
|
}],
|
||||||
['OS == "win"', {
|
['OS == "win"', {
|
||||||
'sources!': [
|
'include_dirs': [
|
||||||
|
'gflags/src/windows/',
|
||||||
|
'gflags/src/',
|
||||||
|
],
|
||||||
|
'sources+': [
|
||||||
'gflags/src/windows/port.cc',
|
'gflags/src/windows/port.cc',
|
||||||
],
|
],
|
||||||
|
'defines': [
|
||||||
|
'GFLAGS_DLL_DECL=',
|
||||||
|
'GFLAGS_DLL_DEFINE_FLAG=',
|
||||||
|
],
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user