Commit b6bfacc2 authored by Henrik Kjellander's avatar Henrik Kjellander

Roll chromium_revision 1d144ca7f86..2a818f5413 (375480:395512)

* Update gflags to newer repository location (plain copy
  from the files in WebRTC).
* Add workarounds for mojo dependency (see
  http://bugs.webrtc.org/5629 for more details).
* Update libyuv_unittest to generate user friendly
  run-scripts for Android in out/{Debug,Release}/bin
* Fix Android test execution by adding explicit dependency
  on Chromium's base/base.gyp:base_build_config_gen

This roll also solves the compile problem for Mac ASan bots.

Change log: https://chromium.googlesource.com/chromium/src/+log/1d144ca7f86..2a818f5413
Full diff: https://chromium.googlesource.com/chromium/src/+/1d144ca7f86..2a818f5413

R=magjed@chromium.org
TBR=fbarchard@chromium.org

Review URL: https://codereview.chromium.org/2001173003 .
parent 7edf572e
...@@ -10,32 +10,42 @@ pin-log.txt ...@@ -10,32 +10,42 @@ pin-log.txt
/google_apis /google_apis
/links /links
/links.db /links.db
/mojo
/native_client /native_client
/net /net
/out /out
/sde-avx-sse-transition-out.txt /sde-avx-sse-transition-out.txt
/testing /testing
/third_party/android_platform /third_party/android_platform
/third_party/android_testrunner
/third_party/android_tools /third_party/android_tools
/third_party/appurify-python /third_party/appurify-python
/third_party/asan /third_party/asan
/third_party/ashmem /third_party/ashmem
/third_party/binutils /third_party/binutils
/third_party/BUILD.gn /third_party/BUILD.gn
/third_party/catapult
/third_party/drmemory /third_party/drmemory
/third_party/gflags/src /third_party/gflags/src
/third_party/icu
/third_party/ijar
/third_party/instrumented_libraries /third_party/instrumented_libraries
/third_party/jsr-305
/third_party/junit
/third_party/libjpeg /third_party/libjpeg
/third_party/libjpeg_turbo /third_party/libjpeg_turbo
/third_party/libxml
/third_party/llvm /third_party/llvm
/third_party/llvm-build /third_party/llvm-build
/third_party/lss /third_party/lss
/third_party/mockito
/third_party/modp_b64
/third_party/protobuf /third_party/protobuf
/third_party/requests
/third_party/robolectric
/third_party/WebKit
/third_party/yasm /third_party/yasm
/tools/android /tools/android
/tools/clang /tools/clang
/tools/find_depot_tools.py
/tools/generate_library_loader /tools/generate_library_loader
/tools/gn /tools/gn
/tools/grit /tools/grit
...@@ -46,7 +56,6 @@ pin-log.txt ...@@ -46,7 +56,6 @@ pin-log.txt
/tools/memory /tools/memory
/tools/protoc_wrapper /tools/protoc_wrapper
/tools/python /tools/python
/tools/relocation_packer
/tools/sanitizer_options /tools/sanitizer_options
/tools/swarming_client /tools/swarming_client
/tools/tsan_suppressions /tools/tsan_suppressions
......
...@@ -7,14 +7,14 @@ vars = { ...@@ -7,14 +7,14 @@ vars = {
# Roll the Chromium Git hash to pick up newer versions of all the # Roll the Chromium Git hash to pick up newer versions of all the
# dependencies and tools linked to in setup_links.py. # dependencies and tools linked to in setup_links.py.
'chromium_revision': '1d144ca7f86e0c684c67d6c1b6d5414ca9074615', 'chromium_revision': '2a818f54130d8c93f81490adce5a1e87307bf5f0',
} }
# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
# https; the latter can cause problems for users behind proxies. # https; the latter can cause problems for users behind proxies.
deps = { deps = {
Var('root_dir') + '/third_party/gflags/src': Var('root_dir') + '/third_party/gflags/src':
Var('chromium_git') + '/external/gflags/src@e7390f9185c75f8d902c05ed7d20bb94eb914d0c', # from svn revision 82 Var('chromium_git') + '/external/github.com/gflags/gflags@03bebcb065c83beff83d50ae025a55a4bf94dfca',
} }
# Define rules for which include paths are allowed in our source. # Define rules for which include paths are allowed in our source.
......
...@@ -191,15 +191,25 @@ ...@@ -191,15 +191,25 @@
# These are used to configure java_apk.gypi included below. # These are used to configure java_apk.gypi included below.
'test_type': 'gtest', 'test_type': 'gtest',
'apk_name': 'libyuv_unittest', 'apk_name': 'libyuv_unittest',
'test_suite_name': 'libyuv_unittest',
'intermediate_dir': '<(PRODUCT_DIR)/libyuv_unittest_apk', 'intermediate_dir': '<(PRODUCT_DIR)/libyuv_unittest_apk',
'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)libyuv_unittest<(SHARED_LIB_SUFFIX)',
'final_apk_path': '<(intermediate_dir)/libyuv_unittest-debug.apk', 'final_apk_path': '<(intermediate_dir)/libyuv_unittest-debug.apk',
'java_in_dir': '<(DEPTH)/testing/android/native_test/java', 'java_in_dir': '<(DEPTH)/testing/android/native_test/java',
'test_runner_path': '<(DEPTH)/util/android/test_runner.py',
'native_lib_target': 'libyuv_unittest', 'native_lib_target': 'libyuv_unittest',
'gyp_managed_install': 0, 'gyp_managed_install': 0,
}, },
'includes': [ 'build/java_apk.gypi' ], 'includes': [
'build/android/test_runner.gypi',
'build/java_apk.gypi',
],
'dependencies': [ 'dependencies': [
'<(DEPTH)/base/base.gyp:base_java', '<(DEPTH)/base/base.gyp:base_java',
# TODO(kjellander): Figure out why base_build_config_gen is needed
# here. It really shouldn't since it's a dependency of base_java
# above, but there's always 0 tests run if it's missing.
'<(DEPTH)/base/base.gyp:base_build_config_gen',
'<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_commands', '<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_commands',
'<(DEPTH)/build/android/pylib/remote/device/dummy/dummy.gyp:remote_device_dummy_apk', '<(DEPTH)/build/android/pylib/remote/device/dummy/dummy.gyp:remote_device_dummy_apk',
'<(DEPTH)/testing/android/appurify_support.gyp:appurify_support_java', '<(DEPTH)/testing/android/appurify_support.gyp:appurify_support_java',
......
...@@ -34,7 +34,7 @@ import textwrap ...@@ -34,7 +34,7 @@ import textwrap
DIRECTORIES = [ DIRECTORIES = [
'build', 'build',
'buildtools', 'buildtools',
'google_apis', # Needed by build/common.gypi. 'mojo', # TODO(kjellander): Remove, see webrtc:5629.
'native_client', 'native_client',
'net', 'net',
'testing', 'testing',
...@@ -46,6 +46,7 @@ DIRECTORIES = [ ...@@ -46,6 +46,7 @@ DIRECTORIES = [
'third_party/llvm-build', 'third_party/llvm-build',
'third_party/lss', 'third_party/lss',
'third_party/yasm', 'third_party/yasm',
'third_party/WebKit', # TODO(kjellander): Remove, see webrtc:5629.
'tools/clang', 'tools/clang',
'tools/gn', 'tools/gn',
'tools/gyp', 'tools/gyp',
...@@ -63,15 +64,14 @@ if 'android' in target_os: ...@@ -63,15 +64,14 @@ if 'android' in target_os:
DIRECTORIES += [ DIRECTORIES += [
'base', 'base',
'third_party/android_platform', 'third_party/android_platform',
'third_party/android_testrunner',
'third_party/android_tools', 'third_party/android_tools',
'third_party/appurify-python', 'third_party/appurify-python',
'third_party/ashmem', 'third_party/ashmem',
'third_party/catapult', 'third_party/catapult',
'third_party/icu',
'third_party/ijar', 'third_party/ijar',
'third_party/jsr-305', 'third_party/jsr-305',
'third_party/junit', 'third_party/junit',
'third_party/libevent',
'third_party/libxml', 'third_party/libxml',
'third_party/mockito', 'third_party/mockito',
'third_party/modp_b64', 'third_party/modp_b64',
...@@ -80,14 +80,11 @@ if 'android' in target_os: ...@@ -80,14 +80,11 @@ if 'android' in target_os:
'third_party/robolectric', 'third_party/robolectric',
'tools/android', 'tools/android',
'tools/grit', 'tools/grit',
'tools/relocation_packer',
'tools/telemetry',
] ]
if 'ios' in target_os: if 'ios' in target_os:
DIRECTORIES.append('third_party/class-dump') DIRECTORIES.append('third_party/class-dump')
FILES = { FILES = {
'tools/find_depot_tools.py': None,
'tools/isolate_driver.py': None, 'tools/isolate_driver.py': None,
'third_party/BUILD.gn': None, 'third_party/BUILD.gn': None,
} }
......
...@@ -18,7 +18,7 @@ if (is_win) { ...@@ -18,7 +18,7 @@ if (is_win) {
config("gflags_config") { config("gflags_config") {
include_dirs = [ include_dirs = [
"$gflags_gen_arch_root/include", # For configured files. "$gflags_gen_arch_root/include", # For configured files.
"src", # For everything else. "src/src", # For everything else.
] ]
defines = [ defines = [
...@@ -38,31 +38,39 @@ config("gflags_config") { ...@@ -38,31 +38,39 @@ config("gflags_config") {
} }
source_set("gflags") { source_set("gflags") {
cflags = []
sources = [ sources = [
"src/gflags.cc", "src/src/gflags.cc",
"src/gflags_completions.cc", "src/src/gflags_completions.cc",
"src/gflags_reporting.cc", "src/src/gflags_reporting.cc",
] ]
if (is_win) { if (is_win) {
sources += [ "src/windows/port.cc" ] sources += [ "src/src/windows_port.cc" ]
cflags = [ cflags += [
"/wd4005", # WIN32_LEAN_AND_MEAN. "/wd4005", # WIN32_LEAN_AND_MEAN.
"/wd4267", # Conversion from size_t to "type". "/wd4267", # Conversion from size_t to "type".
] ]
} }
include_dirs = [ "$gflags_gen_arch_root/include/private" ] # For config.h include_dirs = [
"$gflags_gen_arch_root/include/gflags", # For configured files.
"$gflags_gen_arch_root/include/private", # For config.h
]
public_configs = [ ":gflags_config" ] public_configs = [ ":gflags_config" ]
configs -= [ "//build/config/compiler:chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ]
if (is_win) {
configs -= [ "//build/config/win:unicode" ]
}
if (is_clang) { if (is_clang) {
# TODO(andrew): Look into fixing this warning upstream: # TODO(andrew): Look into fixing this warning upstream:
# http://code.google.com/p/webrtc/issues/detail?id=760 # http://code.google.com/p/webrtc/issues/detail?id=760
configs -= [ "//build/config/clang:extra_warnings" ] configs -= [ "//build/config/clang:extra_warnings" ]
cflags += [ "-Wno-microsoft-include" ]
} }
} }
URL: http://code.google.com/p/gflags/ URL: https://github.com/gflags/gflags
Version: 2.0 Version: 2.1.2
License: New BSD License: New BSD
License File: LICENSE License File: LICENSE
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
// --- // ---
// Author: Dave Nicponski
// //
// Implement helpful bash-style command line flag completions // Implement helpful bash-style command line flag completions
// //
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
/* /*
$ complete -o bashdefault -o default -o nospace -C \ $ complete -o bashdefault -o default -o nospace -C \
'/usr/local/bin/gflags_completions.sh --tab_completion_columns $COLUMNS' \ '/home/build/eng/bash/bash_completions.sh --tab_completion_columns $COLUMNS' \
time env binary_name another_binary [...] time env binary_name another_binary [...]
*/ */
...@@ -109,13 +109,13 @@ $ complete -o bashdefault -o default -o nospace -C \ ...@@ -109,13 +109,13 @@ $ complete -o bashdefault -o default -o nospace -C \
// produce the expected completion output. // produce the expected completion output.
#ifndef GOOGLE_GFLAGS_COMPLETIONS_H_ #ifndef GFLAGS_COMPLETIONS_H_
#define GOOGLE_GFLAGS_COMPLETIONS_H_ #define GFLAGS_COMPLETIONS_H_
namespace google { namespace google {
void HandleCommandLineCompletions(void); extern void HandleCommandLineCompletions(void);
} }
#endif // GOOGLE_GFLAGS_COMPLETIONS_H_ #endif // GFLAGS_COMPLETIONS_H_
// Copyright (c) 1999, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// ---
//
// Revamped and reorganized by Craig Silverstein
//
// This is the file that should be included by any file which declares
// command line flag.
#ifndef GFLAGS_DECLARE_H_
#define GFLAGS_DECLARE_H_
// ---------------------------------------------------------------------------
// Namespace of gflags library symbols.
#define GFLAGS_NAMESPACE google
// ---------------------------------------------------------------------------
// Windows DLL import/export.
// We always want to import the symbols of the gflags library
#ifndef GFLAGS_DLL_DECL
# if 0 && defined(_MSC_VER)
# define GFLAGS_DLL_DECL __declspec(dllimport)
# else
# define GFLAGS_DLL_DECL
# endif
#endif
// We always want to import variables declared in user code
#ifndef GFLAGS_DLL_DECLARE_FLAG
# ifdef _MSC_VER
# define GFLAGS_DLL_DECLARE_FLAG __declspec(dllimport)
# else
# define GFLAGS_DLL_DECLARE_FLAG
# endif
#endif
// ---------------------------------------------------------------------------
// Flag types
#include <string>
#if 1
# include <stdint.h> // the normal place uint32_t is defined
#elif 1
# include <sys/types.h> // the normal place u_int32_t is defined
#elif 1
# include <inttypes.h> // a third place for uint32_t or u_int32_t
#endif
namespace GFLAGS_NAMESPACE {
#if 1 // C99
typedef int32_t int32;
typedef uint32_t uint32;
typedef int64_t int64;
typedef uint64_t uint64;
#elif 0 // BSD
typedef int32_t int32;
typedef u_int32_t uint32;
typedef int64_t int64;
typedef u_int64_t uint64;
#elif 0 // Windows
typedef __int32 int32;
typedef unsigned __int32 uint32;
typedef __int64 int64;
typedef unsigned __int64 uint64;
#else
# error Do not know how to define a 32-bit integer quantity on your system
#endif
} // namespace GFLAGS_NAMESPACE
namespace fLS {
// The meaning of "string" might be different between now and when the
// macros below get invoked (e.g., if someone is experimenting with
// other string implementations that get defined after this file is
// included). Save the current meaning now and use it in the macros.
typedef std::string clstring;
} // namespace fLS
#define DECLARE_VARIABLE(type, shorttype, name) \
/* We always want to import declared variables, dll or no */ \
namespace fL##shorttype { extern GFLAGS_DLL_DECLARE_FLAG type FLAGS_##name; } \
using fL##shorttype::FLAGS_##name
#define DECLARE_bool(name) \
DECLARE_VARIABLE(bool, B, name)
#define DECLARE_int32(name) \
DECLARE_VARIABLE(::GFLAGS_NAMESPACE::int32, I, name)
#define DECLARE_int64(name) \
DECLARE_VARIABLE(::GFLAGS_NAMESPACE::int64, I64, name)
#define DECLARE_uint64(name) \
DECLARE_VARIABLE(::GFLAGS_NAMESPACE::uint64, U64, name)
#define DECLARE_double(name) \
DECLARE_VARIABLE(double, D, name)
#define DECLARE_string(name) \
/* We always want to import declared variables, dll or no */ \
namespace fLS { \
using ::fLS::clstring; \
extern GFLAGS_DLL_DECLARE_FLAG ::fLS::clstring& FLAGS_##name; \
} \
using fLS::FLAGS_##name
#endif // GFLAGS_DECLARE_H_
// Copyright (c) 2014, Andreas Schuh
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// -----------------------------------------------------------------------------
// Imports the gflags library symbols into an alternative/deprecated namespace.
#ifndef GFLAGS_GFLAGS_H_
# error The internal header gflags_gflags.h may only be included by gflags.h
#endif
#ifndef GFLAGS_NS_GFLAGS_H_
#define GFLAGS_NS_GFLAGS_H_
namespace gflags {
using GFLAGS_NAMESPACE::int32;
using GFLAGS_NAMESPACE::uint32;
using GFLAGS_NAMESPACE::int64;
using GFLAGS_NAMESPACE::uint64;
using GFLAGS_NAMESPACE::RegisterFlagValidator;
using GFLAGS_NAMESPACE::CommandLineFlagInfo;
using GFLAGS_NAMESPACE::GetAllFlags;
using GFLAGS_NAMESPACE::ShowUsageWithFlags;
using GFLAGS_NAMESPACE::ShowUsageWithFlagsRestrict;
using GFLAGS_NAMESPACE::DescribeOneFlag;
using GFLAGS_NAMESPACE::SetArgv;
using GFLAGS_NAMESPACE::GetArgvs;
using GFLAGS_NAMESPACE::GetArgv;
using GFLAGS_NAMESPACE::GetArgv0;
using GFLAGS_NAMESPACE::GetArgvSum;
using GFLAGS_NAMESPACE::ProgramInvocationName;
using GFLAGS_NAMESPACE::ProgramInvocationShortName;
using GFLAGS_NAMESPACE::ProgramUsage;
using GFLAGS_NAMESPACE::VersionString;
using GFLAGS_NAMESPACE::GetCommandLineOption;
using GFLAGS_NAMESPACE::GetCommandLineFlagInfo;
using GFLAGS_NAMESPACE::GetCommandLineFlagInfoOrDie;
using GFLAGS_NAMESPACE::FlagSettingMode;
using GFLAGS_NAMESPACE::SET_FLAGS_VALUE;
using GFLAGS_NAMESPACE::SET_FLAG_IF_DEFAULT;
using GFLAGS_NAMESPACE::SET_FLAGS_DEFAULT;
using GFLAGS_NAMESPACE::SetCommandLineOption;
using GFLAGS_NAMESPACE::SetCommandLineOptionWithMode;
using GFLAGS_NAMESPACE::FlagSaver;
using GFLAGS_NAMESPACE::CommandlineFlagsIntoString;
using GFLAGS_NAMESPACE::ReadFlagsFromString;
using GFLAGS_NAMESPACE::AppendFlagsIntoFile;
using GFLAGS_NAMESPACE::ReadFromFlagsFile;
using GFLAGS_NAMESPACE::BoolFromEnv;
using GFLAGS_NAMESPACE::Int32FromEnv;
using GFLAGS_NAMESPACE::Int64FromEnv;
using GFLAGS_NAMESPACE::Uint64FromEnv;
using GFLAGS_NAMESPACE::DoubleFromEnv;
using GFLAGS_NAMESPACE::StringFromEnv;
using GFLAGS_NAMESPACE::SetUsageMessage;
using GFLAGS_NAMESPACE::SetVersionString;
using GFLAGS_NAMESPACE::ParseCommandLineNonHelpFlags;
using GFLAGS_NAMESPACE::HandleCommandLineHelpFlags;
using GFLAGS_NAMESPACE::AllowCommandLineReparsing;
using GFLAGS_NAMESPACE::ReparseCommandLineNonHelpFlags;
using GFLAGS_NAMESPACE::ShutDownCommandLineFlags;
using GFLAGS_NAMESPACE::FlagRegisterer;
#ifndef SWIG
using GFLAGS_NAMESPACE::ParseCommandLineFlags;
#endif
} // namespace gflags
#endif // GFLAGS_NS_GFLAGS_H_
/* src/config.h. Generated from config.h.in by configure. */ /* Generated from config.h.in during build configuration using CMake. */
/* src/config.h.in. Generated from configure.ac by autoheader. */
/* Always the empty-string on non-windows systems. On windows, should be // Note: This header file is only used internally. It is not part of public interface!
"__declspec(dllexport)". This way, when we compile the dll, we export our
functions/classes. It's safe to define this here because config.h is only
used internally, to compile the DLL, and every DLL source file #includes
"config.h" before anything else. */
#define GFLAGS_DLL_DECL /**/
/* Namespace for Google classes */ // ---------------------------------------------------------------------------
#define GOOGLE_NAMESPACE ::google // System checks
/* Define to 1 if you have the <dlfcn.h> header file. */ // Define if you build this library for a MS Windows OS.
#define HAVE_DLFCN_H 1 /* #undef OS_WINDOWS */
/* Define to 1 if you have the <fnmatch.h> header file. */ // Define if you have the <stdint.h> header file.
#define HAVE_FNMATCH_H 1 #define HAVE_STDINT_H
/* Define to 1 if you have the <inttypes.h> header file. */ // Define if you have the <sys/types.h> header file.
#define HAVE_INTTYPES_H 1 #define HAVE_SYS_TYPES_H
/* Define to 1 if you have the <memory.h> header file. */ // Define if you have the <inttypes.h> header file.
#define HAVE_MEMORY_H 1 #define HAVE_INTTYPES_H
/* define if the compiler implements namespaces */ // Define if you have the <sys/stat.h> header file.
#define HAVE_NAMESPACES 1 #define HAVE_SYS_STAT_H
/* Define if you have POSIX threads libraries and header files. */ // Define if you have the <unistd.h> header file.
#define HAVE_PTHREAD 1 #define HAVE_UNISTD_H
/* Define to 1 if you have the `putenv' function. */ // Define if you have the <fnmatch.h> header file.
#define HAVE_PUTENV 1 #define HAVE_FNMATCH_H
/* Define to 1 if you have the `setenv' function. */ // Define if you have the <shlwapi.h> header file (Windows 2000/XP).
#define HAVE_SETENV 1 /* #undef HAVE_SHLWAPI_H */
/* Define to 1 if you have the <stdint.h> header file. */ // Define if you have the strtoll function.
#define HAVE_STDINT_H 1 #define HAVE_STRTOLL
/* Define to 1 if you have the <stdlib.h> header file. */ // Define if you have the strtoq function.
#define HAVE_STDLIB_H 1 /* #undef HAVE_STRTOQ */
/* Define to 1 if you have the <strings.h> header file. */ // Define if you have the <pthread.h> header file.
#define HAVE_STRINGS_H 1 #define HAVE_PTHREAD
/* Define to 1 if you have the <string.h> header file. */ // Define if your pthread library defines the type pthread_rwlock_t
#define HAVE_STRING_H 1 #define HAVE_RWLOCK
/* Define to 1 if you have the `strtoll' function. */ // gcc requires this to get PRId64, etc.
#define HAVE_STRTOLL 1 #if defined(HAVE_INTTYPES_H) && !defined(__STDC_FORMAT_MACROS)
# define __STDC_FORMAT_MACROS 1
#endif
/* Define to 1 if you have the `strtoq' function. */ // ---------------------------------------------------------------------------
#define HAVE_STRTOQ 1 // Package information
/* Define to 1 if you have the <sys/stat.h> header file. */ // Name of package.
#define HAVE_SYS_STAT_H 1 #define PACKAGE gflags
/* Define to 1 if you have the <sys/types.h> header file. */ // Define to the full name of this package.
#define HAVE_SYS_TYPES_H 1 #define PACKAGE_NAME gflags
/* Define to 1 if you have the <unistd.h> header file. */ // Define to the full name and version of this package.
#define HAVE_UNISTD_H 1 #define PACKAGE_STRING gflags 2.2.0
/* define if your compiler has __attribute__ */ // Define to the one symbol short name of this package.
#define HAVE___ATTRIBUTE__ 1 #define PACKAGE_TARNAME gflags-2.2.0
/* Define to the sub-directory in which libtool stores uninstalled libraries. // Define to the version of this package.
*/ #define PACKAGE_VERSION 2.2.0
#define LT_OBJDIR ".libs/"
/* Name of package */ // Version number of package.
#define PACKAGE "gflags" #define VERSION PACKAGE_VERSION
/* Define to the address where bug reports for this package should be sent. */ // Define to the address where bug reports for this package should be sent.
#define PACKAGE_BUGREPORT "opensource@google.com" #define PACKAGE_BUGREPORT https://github.com/schuhschuh/gflags/issues
/* Define to the full name of this package. */ // ---------------------------------------------------------------------------
#define PACKAGE_NAME "gflags" // Path separator
#ifndef PATH_SEPARATOR
# ifdef OS_WINDOWS
# define PATH_SEPARATOR '\\'
# else
# define PATH_SEPARATOR '/'
# endif
#endif
/* Define to the full name and version of this package. */ // ---------------------------------------------------------------------------
#define PACKAGE_STRING "gflags 1.5" // Windows
/* Define to the one symbol short name of this package. */ // Whether gflags library is a DLL.
#define PACKAGE_TARNAME "gflags" #ifndef GFLAGS_IS_A_DLL
# define GFLAGS_IS_A_DLL 0
#endif
/* Define to the home page for this package. */ // Always export symbols when compiling a shared library as this file is only
#define PACKAGE_URL "" // included by internal modules when building the gflags library itself.
// The gflags_declare.h header file will set it to import these symbols otherwise.
/* Define to the version of this package. */ #ifndef GFLAGS_DLL_DECL
#define PACKAGE_VERSION "1.5" # if GFLAGS_IS_A_DLL && defined(_MSC_VER)
# define GFLAGS_DLL_DECL __declspec(dllexport)
/* Define to necessary symbol if this constant uses a non-standard name on # else
your system. */ # define GFLAGS_DLL_DECL
/* #undef PTHREAD_CREATE_JOINABLE */ # endif
#endif
/* Define to 1 if you have the ANSI C header files. */ // Flags defined by the gflags library itself must be exported
#define STDC_HEADERS 1 #ifndef GFLAGS_DLL_DEFINE_FLAG
# define GFLAGS_DLL_DEFINE_FLAG GFLAGS_DLL_DECL
/* the namespace where STL code like vector<> is defined */ #endif
#define STL_NAMESPACE std
#ifdef OS_WINDOWS
/* Version number of package */ // The unittests import the symbols of the shared gflags library
#define VERSION "1.5" # if GFLAGS_IS_A_DLL && defined(_MSC_VER)
# define GFLAGS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport)
/* Stops putting the code inside the Google namespace */ # endif
#define _END_GOOGLE_NAMESPACE_ } # include "windows_port.h"
#endif
/* Puts following code inside the Google namespace */
#define _START_GOOGLE_NAMESPACE_ namespace google {
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
// --- // ---
// Author: Dave Nicponski
// //
// Implement helpful bash-style command line flag completions // Implement helpful bash-style command line flag completions
// //
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
/* /*
$ complete -o bashdefault -o default -o nospace -C \ $ complete -o bashdefault -o default -o nospace -C \
'/usr/local/bin/gflags_completions.sh --tab_completion_columns $COLUMNS' \ '/home/build/eng/bash/bash_completions.sh --tab_completion_columns $COLUMNS' \
time env binary_name another_binary [...] time env binary_name another_binary [...]
*/ */
...@@ -109,22 +109,13 @@ $ complete -o bashdefault -o default -o nospace -C \ ...@@ -109,22 +109,13 @@ $ complete -o bashdefault -o default -o nospace -C \
// produce the expected completion output. // produce the expected completion output.
#ifndef GOOGLE_GFLAGS_COMPLETIONS_H_ #ifndef GFLAGS_COMPLETIONS_H_
#define GOOGLE_GFLAGS_COMPLETIONS_H_ #define GFLAGS_COMPLETIONS_H_
// Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GFLAGS_DLL_DECL
# ifdef _WIN32
# define GFLAGS_DLL_DECL __declspec(dllimport)
# else
# define GFLAGS_DLL_DECL
# endif
#endif
namespace google { namespace google {
GFLAGS_DLL_DECL void HandleCommandLineCompletions(void); extern void HandleCommandLineCompletions(void);
} }
#endif // GOOGLE_GFLAGS_COMPLETIONS_H_ #endif // GFLAGS_COMPLETIONS_H_
// Copyright (c) 1999, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// ---
//
// Revamped and reorganized by Craig Silverstein
//
// This is the file that should be included by any file which declares
// command line flag.
#ifndef GFLAGS_DECLARE_H_
#define GFLAGS_DECLARE_H_
// ---------------------------------------------------------------------------
// Namespace of gflags library symbols.
#define GFLAGS_NAMESPACE google
// ---------------------------------------------------------------------------
// Windows DLL import/export.
// We always want to import the symbols of the gflags library
#ifndef GFLAGS_DLL_DECL
# if 0 && defined(_MSC_VER)
# define GFLAGS_DLL_DECL __declspec(dllimport)
# else
# define GFLAGS_DLL_DECL
# endif
#endif
// We always want to import variables declared in user code
#ifndef GFLAGS_DLL_DECLARE_FLAG
# ifdef _MSC_VER
# define GFLAGS_DLL_DECLARE_FLAG __declspec(dllimport)
# else
# define GFLAGS_DLL_DECLARE_FLAG
# endif
#endif
// ---------------------------------------------------------------------------
// Flag types
#include <string>
#if 1
# include <stdint.h> // the normal place uint32_t is defined
#elif 1
# include <sys/types.h> // the normal place u_int32_t is defined
#elif 0
# include <inttypes.h> // a third place for uint32_t or u_int32_t
#endif
namespace GFLAGS_NAMESPACE {
#if 0 // C99
typedef int32_t int32;
typedef uint32_t uint32;
typedef int64_t int64;
typedef uint64_t uint64;
#elif 0 // BSD
typedef int32_t int32;
typedef u_int32_t uint32;
typedef int64_t int64;
typedef u_int64_t uint64;
#elif 1 // Windows
typedef __int32 int32;
typedef unsigned __int32 uint32;
typedef __int64 int64;
typedef unsigned __int64 uint64;
#else
# error Do not know how to define a 32-bit integer quantity on your system
#endif
} // namespace GFLAGS_NAMESPACE
namespace fLS {
// The meaning of "string" might be different between now and when the
// macros below get invoked (e.g., if someone is experimenting with
// other string implementations that get defined after this file is
// included). Save the current meaning now and use it in the macros.
typedef std::string clstring;
} // namespace fLS
#define DECLARE_VARIABLE(type, shorttype, name) \
/* We always want to import declared variables, dll or no */ \
namespace fL##shorttype { extern GFLAGS_DLL_DECLARE_FLAG type FLAGS_##name; } \
using fL##shorttype::FLAGS_##name
#define DECLARE_bool(name) \
DECLARE_VARIABLE(bool, B, name)
#define DECLARE_int32(name) \
DECLARE_VARIABLE(::GFLAGS_NAMESPACE::int32, I, name)
#define DECLARE_int64(name) \
DECLARE_VARIABLE(::GFLAGS_NAMESPACE::int64, I64, name)
#define DECLARE_uint64(name) \
DECLARE_VARIABLE(::GFLAGS_NAMESPACE::uint64, U64, name)
#define DECLARE_double(name) \
DECLARE_VARIABLE(double, D, name)
#define DECLARE_string(name) \
/* We always want to import declared variables, dll or no */ \
namespace fLS { \
using ::fLS::clstring; \
extern GFLAGS_DLL_DECLARE_FLAG ::fLS::clstring& FLAGS_##name; \
} \
using fLS::FLAGS_##name
#endif // GFLAGS_DECLARE_H_
// Copyright (c) 2014, Andreas Schuh
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// -----------------------------------------------------------------------------
// Imports the gflags library symbols into an alternative/deprecated namespace.
#ifndef GFLAGS_GFLAGS_H_
# error The internal header gflags_gflags.h may only be included by gflags.h
#endif
#ifndef GFLAGS_NS_GFLAGS_H_
#define GFLAGS_NS_GFLAGS_H_
namespace gflags {
using GFLAGS_NAMESPACE::int32;
using GFLAGS_NAMESPACE::uint32;
using GFLAGS_NAMESPACE::int64;
using GFLAGS_NAMESPACE::uint64;
using GFLAGS_NAMESPACE::RegisterFlagValidator;
using GFLAGS_NAMESPACE::CommandLineFlagInfo;
using GFLAGS_NAMESPACE::GetAllFlags;
using GFLAGS_NAMESPACE::ShowUsageWithFlags;
using GFLAGS_NAMESPACE::ShowUsageWithFlagsRestrict;
using GFLAGS_NAMESPACE::DescribeOneFlag;
using GFLAGS_NAMESPACE::SetArgv;
using GFLAGS_NAMESPACE::GetArgvs;
using GFLAGS_NAMESPACE::GetArgv;
using GFLAGS_NAMESPACE::GetArgv0;
using GFLAGS_NAMESPACE::GetArgvSum;
using GFLAGS_NAMESPACE::ProgramInvocationName;
using GFLAGS_NAMESPACE::ProgramInvocationShortName;
using GFLAGS_NAMESPACE::ProgramUsage;
using GFLAGS_NAMESPACE::VersionString;
using GFLAGS_NAMESPACE::GetCommandLineOption;
using GFLAGS_NAMESPACE::GetCommandLineFlagInfo;
using GFLAGS_NAMESPACE::GetCommandLineFlagInfoOrDie;
using GFLAGS_NAMESPACE::FlagSettingMode;
using GFLAGS_NAMESPACE::SET_FLAGS_VALUE;
using GFLAGS_NAMESPACE::SET_FLAG_IF_DEFAULT;
using GFLAGS_NAMESPACE::SET_FLAGS_DEFAULT;
using GFLAGS_NAMESPACE::SetCommandLineOption;
using GFLAGS_NAMESPACE::SetCommandLineOptionWithMode;
using GFLAGS_NAMESPACE::FlagSaver;
using GFLAGS_NAMESPACE::CommandlineFlagsIntoString;
using GFLAGS_NAMESPACE::ReadFlagsFromString;
using GFLAGS_NAMESPACE::AppendFlagsIntoFile;
using GFLAGS_NAMESPACE::ReadFromFlagsFile;
using GFLAGS_NAMESPACE::BoolFromEnv;
using GFLAGS_NAMESPACE::Int32FromEnv;
using GFLAGS_NAMESPACE::Int64FromEnv;
using GFLAGS_NAMESPACE::Uint64FromEnv;
using GFLAGS_NAMESPACE::DoubleFromEnv;
using GFLAGS_NAMESPACE::StringFromEnv;
using GFLAGS_NAMESPACE::SetUsageMessage;
using GFLAGS_NAMESPACE::SetVersionString;
using GFLAGS_NAMESPACE::ParseCommandLineNonHelpFlags;
using GFLAGS_NAMESPACE::HandleCommandLineHelpFlags;
using GFLAGS_NAMESPACE::AllowCommandLineReparsing;
using GFLAGS_NAMESPACE::ReparseCommandLineNonHelpFlags;
using GFLAGS_NAMESPACE::ShutDownCommandLineFlags;
using GFLAGS_NAMESPACE::FlagRegisterer;
#ifndef SWIG
using GFLAGS_NAMESPACE::ParseCommandLineFlags;
#endif
} // namespace gflags
#endif // GFLAGS_NS_GFLAGS_H_
/* src/config.h.in. Generated from configure.ac by autoheader. */ /* Generated from config.h.in during build configuration using CMake. */
/* Sometimes we accidentally #include this config.h instead of the one
in .. -- this is particularly true for msys/mingw, which uses the
unix config.h but also runs code in the windows directory.
*/
#ifdef __MINGW32__
#include "../config.h"
#define GOOGLE_GFLAGS_WINDOWS_CONFIG_H_
#endif
#ifndef GOOGLE_GFLAGS_WINDOWS_CONFIG_H_
#define GOOGLE_GFLAGS_WINDOWS_CONFIG_H_
/* Always the empty-string on non-windows systems. On windows, should be
"__declspec(dllexport)". This way, when we compile the dll, we export our
functions/classes. It's safe to define this here because config.h is only
used internally, to compile the DLL, and every DLL source file #includes
"config.h" before anything else. */
#ifndef GFLAGS_DLL_DECL
# define GFLAGS_IS_A_DLL 1 /* not set if you're statically linking */
# define GFLAGS_DLL_DECL __declspec(dllexport)
# define GFLAGS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport)
#endif
/* Namespace for Google classes */
#define GOOGLE_NAMESPACE ::google
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <fnmatch.h> header file. */
#undef HAVE_FNMATCH_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* define if the compiler implements namespaces */ // Note: This header file is only used internally. It is not part of public interface!
#define HAVE_NAMESPACES 1
/* Define if you have POSIX threads libraries and header files. */ // ---------------------------------------------------------------------------
#undef HAVE_PTHREAD // System checks
/* Define to 1 if you have the `putenv' function. */ // Define if you build this library for a MS Windows OS.
#define HAVE_PUTENV 1 #define OS_WINDOWS
/* Define to 1 if you have the `setenv' function. */ // Define if you have the <stdint.h> header file.
#undef HAVE_SETENV #define HAVE_STDINT_H
/* Define to 1 if you have the <stdint.h> header file. */ // Define if you have the <sys/types.h> header file.
#undef HAVE_STDINT_H #define HAVE_SYS_TYPES_H
/* Define to 1 if you have the <stdlib.h> header file. */ // Define if you have the <inttypes.h> header file.
#define HAVE_STDLIB_H 1 /* #undef HAVE_INTTYPES_H */
/* Define to 1 if you have the <strings.h> header file. */ // Define if you have the <sys/stat.h> header file.
#undef HAVE_STRINGS_H #define HAVE_SYS_STAT_H
/* Define to 1 if you have the <string.h> header file. */ // Define if you have the <unistd.h> header file.
#define HAVE_STRING_H 1 /* #undef HAVE_UNISTD_H */
/* Define to 1 if you have the `strtoll' function. */ // Define if you have the <fnmatch.h> header file.
#define HAVE_STRTOLL 1 /* #undef HAVE_FNMATCH_H */
/* Define to 1 if you have the `strtoq' function. */ // Define if you have the <shlwapi.h> header file (Windows 2000/XP).
#define HAVE_STRTOQ 1 #define HAVE_SHLWAPI_H
/* Define to 1 if you have the <sys/stat.h> header file. */ // Define if you have the strtoll function.
#define HAVE_SYS_STAT_H 1 /* #undef HAVE_STRTOLL */
/* Define to 1 if you have the <sys/types.h> header file. */ // Define if you have the strtoq function.
#define HAVE_SYS_TYPES_H 1 /* #undef HAVE_STRTOQ */
/* Define to 1 if you have the <unistd.h> header file. */ // Define if you have the <pthread.h> header file.
#undef HAVE_UNISTD_H /* #undef HAVE_PTHREAD */
/* define if your compiler has __attribute__ */ // Define if your pthread library defines the type pthread_rwlock_t
#undef HAVE___ATTRIBUTE__ /* #undef HAVE_RWLOCK */
/* Define to the sub-directory in which libtool stores uninstalled libraries. // gcc requires this to get PRId64, etc.
*/ #if defined(HAVE_INTTYPES_H) && !defined(__STDC_FORMAT_MACROS)
#undef LT_OBJDIR # define __STDC_FORMAT_MACROS 1
#endif
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */ // ---------------------------------------------------------------------------
#undef PACKAGE_TARNAME // Package information
/* Define to the home page for this package. */ // Name of package.
#undef PACKAGE_URL #define PACKAGE gflags
/* Define to the version of this package. */ // Define to the full name of this package.
#undef PACKAGE_VERSION #define PACKAGE_NAME gflags
/* Define to necessary symbol if this constant uses a non-standard name on // Define to the full name and version of this package.
your system. */ #define PACKAGE_STRING gflags 2.2.0
#undef PTHREAD_CREATE_JOINABLE
/* Define to 1 if you have the ANSI C header files. */ // Define to the one symbol short name of this package.
#define STDC_HEADERS 1 #define PACKAGE_TARNAME gflags-2.2.0
/* the namespace where STL code like vector<> is defined */ // Define to the version of this package.
#define STL_NAMESPACE std #define PACKAGE_VERSION 2.2.0
/* Version number of package */ // Version number of package.
#undef VERSION #define VERSION PACKAGE_VERSION
/* Stops putting the code inside the Google namespace */ // Define to the address where bug reports for this package should be sent.
#define _END_GOOGLE_NAMESPACE_ } #define PACKAGE_BUGREPORT https://github.com/schuhschuh/gflags/issues
/* Puts following code inside the Google namespace */ // ---------------------------------------------------------------------------
#define _START_GOOGLE_NAMESPACE_ namespace google { // Path separator
#ifndef PATH_SEPARATOR
# ifdef OS_WINDOWS
# define PATH_SEPARATOR '\\'
# else
# define PATH_SEPARATOR '/'
# endif
#endif
// --------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Extra stuff not found in config.h.in // Windows
// This must be defined before the windows.h is included. It's needed // Whether gflags library is a DLL.
// for mutex.h, to give access to the TryLock method. #ifndef GFLAGS_IS_A_DLL
#ifndef _WIN32_WINNT # define GFLAGS_IS_A_DLL 0
# define _WIN32_WINNT 0x0400
#endif #endif
// TODO(csilvers): include windows/port.h in every relevant source file instead? // Always export symbols when compiling a shared library as this file is only
#include "windows/port.h" // included by internal modules when building the gflags library itself.
// The gflags_declare.h header file will set it to import these symbols otherwise.
#ifndef GFLAGS_DLL_DECL
# if GFLAGS_IS_A_DLL && defined(_MSC_VER)
# define GFLAGS_DLL_DECL __declspec(dllexport)
# else
# define GFLAGS_DLL_DECL
# endif
#endif
// Flags defined by the gflags library itself must be exported
#ifndef GFLAGS_DLL_DEFINE_FLAG
# define GFLAGS_DLL_DEFINE_FLAG GFLAGS_DLL_DECL
#endif
#endif /* GOOGLE_GFLAGS_WINDOWS_CONFIG_H_ */ #ifdef OS_WINDOWS
// The unittests import the symbols of the shared gflags library
# if GFLAGS_IS_A_DLL && defined(_MSC_VER)
# define GFLAGS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport)
# endif
# include "windows_port.h"
#endif
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
'target_name': 'gflags', 'target_name': 'gflags',
'type': 'static_library', 'type': 'static_library',
'include_dirs': [ 'include_dirs': [
'<(gflags_gen_arch_root)/include/gflags', # For configured files.
'<(gflags_gen_arch_root)/include/private', # For config.h '<(gflags_gen_arch_root)/include/private', # For config.h
'<(gflags_gen_arch_root)/include', # For configured files. '<(gflags_root)/src/src', # For everything else.
'<(gflags_root)/src', # For everything else.
], ],
'defines': [ 'defines': [
# These macros exist so flags and symbols are properly # These macros exist so flags and symbols are properly
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
'direct_dependent_settings': { 'direct_dependent_settings': {
'include_dirs': [ 'include_dirs': [
'<(gflags_gen_arch_root)/include', # For configured files. '<(gflags_gen_arch_root)/include', # For configured files.
'<(gflags_root)/src', # For everything else. '<(gflags_root)/src/src', # For everything else.
], ],
'defines': [ 'defines': [
'GFLAGS_DLL_DECL=', 'GFLAGS_DLL_DECL=',
...@@ -49,42 +49,44 @@ ...@@ -49,42 +49,44 @@
], ],
}, },
'sources': [ 'sources': [
'src/gflags.cc', 'src/src/gflags.cc',
'src/gflags_completions.cc', 'src/src/gflags_completions.cc',
'src/gflags_reporting.cc', 'src/src/gflags_reporting.cc',
], ],
'conditions': [ 'conditions': [
['OS=="win"', { ['OS=="win"', {
'sources': [ 'sources': [
'src/windows/port.cc', 'src/src/windows_port.cc',
],
'msvs_disabled_warnings': [
4005, # WIN32_LEAN_AND_MEAN redefinition.
4267, # Conversion from size_t to "type".
], ],
# Suppress warnings about WIN32_LEAN_AND_MEAN and size_t truncation. 'configurations': {
'msvs_disabled_warnings': [4005, 4267], 'Common_Base': {
'msvs_configuration_attributes': {
'CharacterSet': '2', # Use Multi-byte Character Set.
},
},
},
}], }],
# TODO(andrew): Look into fixing this warning upstream: # TODO(andrew): Look into fixing this warning upstream:
# http://code.google.com/p/webrtc/issues/detail?id=760 # http://code.google.com/p/webrtc/issues/detail?id=760
['OS=="win" and clang==1', { ['OS=="win" and clang==1', {
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'AdditionalOptions!': [
'-Wheader-hygiene', # Suppress warning about using namespace.
],
'AdditionalOptions': [ 'AdditionalOptions': [
'-Wno-unused-local-typedef', # Suppress unused private typedef. '-Wno-microsoft-include',
], ],
}, },
}, },
}], }],
['clang==1', { ['clang==1', {
'cflags': ['-Wno-unused-local-typedef',], 'cflags': [
'cflags!': ['-Wheader-hygiene',], '-Wno-microsoft-include',
'xcode_settings': { ],
'WARNING_CFLAGS': ['-Wno-unused-local-typedef',],
'WARNING_CFLAGS!': ['-Wheader-hygiene',],
},
}], }],
], ],
}, },
], ],
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment