Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
gflags
Commits
15bc2d6c
Commit
15bc2d6c
authored
Mar 14, 2014
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #73 Merge gflags_config.h into gflags_declare.h. Configuration of gflags.h no longer needed.
parent
70eac23c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
75 deletions
+64
-75
CMakeLists.txt
CMakeLists.txt
+0
-1
config.h.in
src/config.h.in
+0
-2
gflags.h
src/gflags.h
+0
-1
gflags_config.h.in
src/gflags_config.h.in
+0
-58
gflags_declare.h.in
src/gflags_declare.h.in
+51
-13
windows_port.h
src/windows_port.h
+13
-0
No files found.
CMakeLists.txt
View file @
15bc2d6c
...
...
@@ -94,7 +94,6 @@ endif ()
# source files - excluding root subdirectory and/or .in suffix
set
(
PUBLIC_HDRS
"gflags.h"
"gflags_config.h"
"gflags_declare.h"
"gflags_completions.h"
)
...
...
src/config.h.in
View file @
15bc2d6c
...
...
@@ -2,8 +2,6 @@
// Note: This header file is only used internally. It is not part of public interface!
#include "gflags_config.h"
// ---------------------------------------------------------------------------
// Additional meta-information
...
...
src/gflags.h
.in
→
src/gflags.h
View file @
15bc2d6c
...
...
@@ -81,7 +81,6 @@
#include <string>
#include <vector>
#include "gflags_config.h"
#include "gflags_declare.h" // IWYU pragma: export
...
...
src/gflags_config.h.in
deleted
100644 → 0
View file @
70eac23c
/* Generated from gflags_config.h.in during build configuration using CMake. */
#ifndef GFLAGS_GFLAGS_CONFIG_H_
#define GFLAGS_GFLAGS_CONFIG_H_
// ---------------------------------------------------------------------------
// Meta-information
// Version number of gflags library.
#define GFLAGS_VERSION_STRING "@PACKAGE_VERSION@"
#define GFLAGS_VERSION_MAJOR @PACKAGE_VERSION_MAJOR@ ///< Major version number.
#define GFLAGS_VERSION_MINOR @PACKAGE_VERSION_MINOR@ ///< Minor version number.
#define GFLAGS_VERSION_PATCH @PACKAGE_VERSION_PATCH@ ///< Version patch number.
// Whether gflags library is shared. Used for DLL import declaration.
#cmakedefine GFLAGS_SHARED_LIBS
// ---------------------------------------------------------------------------
// Namespace for gflags symbols.
#define GFLAGS_NAMESPACE @GFLAGS_NAMESPACE@
// ---------------------------------------------------------------------------
// Unused attribute declaration for GNU GCC.
#define GFLAGS__ATTRIBUTE__UNUSED @GFLAGS__ATTRIBUTE_UNUSED@
// ---------------------------------------------------------------------------
// Windows DLL import/export.
#if defined(_MSC_VER) && defined(GFLAGS_SHARED_LIBS)
# ifdef GFLAGS_DLL_EXPORT
# define GFLAGS_DLL_DECL __declspec(dllexport)
# else
# define GFLAGS_DLL_DECL __declspec(dllimport)
# endif
#else
# define GFLAGS_DLL_DECL
#endif
// We always want to export defined variables, dll or no
#if defined(_MSC_VER)
# define GFLAGS_DLL_DEFINE_FLAG __declspec(dllexport)
#else
# define GFLAGS_DLL_DEFINE_FLAG
#endif
// Export/import of STL class instantiations
// \sa http://support.microsoft.com/default.aspx?scid=KB;EN-US;168958
#if defined(GFLAGS_SHARED_LIBS) && defined(_MSC_VER) && _MSC_VER >= 1100
# ifdef GFLAGS_DLL_EXPORT
# define GFLAGS_EXTERN_STL
# else
# define GFLAGS_EXTERN_STL extern
# endif
#endif
#endif // GFLAGS_GFLAGS_CONFIG_H_
\ No newline at end of file
src/gflags_declare.h.in
View file @
15bc2d6c
...
...
@@ -37,10 +37,32 @@
#ifndef GFLAGS_DECLARE_H_
#define GFLAGS_DECLARE_H_
// ---------------------------------------------------------------------------
// Meta-information
#if !defined(GFLAGS_DLL_DECL)
# if defined(_MSC_VER)
# if defined(GFLAGS_DLL_EXPORT)
// Version number of gflags library.
#define GFLAGS_VERSION_STRING "@PACKAGE_VERSION@"
#define GFLAGS_VERSION_MAJOR @PACKAGE_VERSION_MAJOR@ ///< Major version number.
#define GFLAGS_VERSION_MINOR @PACKAGE_VERSION_MINOR@ ///< Minor version number.
#define GFLAGS_VERSION_PATCH @PACKAGE_VERSION_PATCH@ ///< Version patch number.
// Whether gflags library is shared. Used for DLL import declaration.
#cmakedefine GFLAGS_SHARED_LIBS
// ---------------------------------------------------------------------------
// Namespace for gflags symbols.
#define GFLAGS_NAMESPACE @GFLAGS_NAMESPACE@
// ---------------------------------------------------------------------------
// Unused attribute declaration for GNU GCC.
#define GFLAGS__ATTRIBUTE__UNUSED @GFLAGS__ATTRIBUTE_UNUSED@
// ---------------------------------------------------------------------------
// Windows DLL import/export.
#ifndef GFLAGS_DLL_DECL
# if defined(_MSC_VER) && defined(GFLAGS_SHARED_LIBS)
# ifdef GFLAGS_DLL_EXPORT
# define GFLAGS_DLL_DECL __declspec(dllexport)
# else
# define GFLAGS_DLL_DECL __declspec(dllimport)
...
...
@@ -50,29 +72,45 @@
# endif
#endif
// We always want to export defined variables, dll or no
#if defined(_MSC_VER)
# define GFLAGS_DLL_DEFINE_FLAG __declspec(dllexport)
#else
# define GFLAGS_DLL_DEFINE_FLAG
#endif
// We always want to import declared variables, dll or no
#if !defined(GFLAGS_DLL_DECLARE_FLAG)
# if defined(_MSC_VER)
# define GFLAGS_DLL_DECLARE_FLAG __declspec(dllimport)
#if defined(_MSC_VER)
# define GFLAGS_DLL_DECLARE_FLAG __declspec(dllimport)
#else
# define GFLAGS_DLL_DECLARE_FLAG
#endif
// Export/import of STL class instantiations
// \sa http://support.microsoft.com/default.aspx?scid=KB;EN-US;168958
#if defined(GFLAGS_SHARED_LIBS) && defined(_MSC_VER) && _MSC_VER >= 1100
# ifdef GFLAGS_DLL_EXPORT
# define GFLAGS_EXTERN_STL
# else
# define GFLAGS_
DLL_DECLARE_FLAG
# define GFLAGS_
EXTERN_STL extern
# endif
#endif
// ---------------------------------------------------------------------------
// Types
#include <string>
#if @HAVE_STDINT_H@
#include <stdint.h> // the normal place uint16_t is defined
#
include <stdint.h> // the normal place uint16_t is defined
#endif
#if @HAVE_SYS_TYPES_H@
#include <sys/types.h> // the normal place u_int16_t is defined
#
include <sys/types.h> // the normal place u_int16_t is defined
#endif
#if @HAVE_INTTYPES_H@
#include <inttypes.h> // a third place for uint16_t or u_int16_t
#
include <inttypes.h> // a third place for uint16_t or u_int16_t
#endif
namespace
@GFLAGS_NAMESPACE@
{
namespace
GFLAGS_NAMESPACE
{
#if @HAVE_uint16_t@ // the C99 format
typedef int32_t int32;
...
...
@@ -93,7 +131,7 @@ typedef unsigned __int64 uint64;
# error Do not know how to define a 32-bit integer quantity on your system
#endif
} // namespace
@GFLAGS_NAMESPACE@
} // namespace
GFLAGS_NAMESPACE
namespace fLS {
...
...
src/windows_port.h
View file @
15bc2d6c
...
...
@@ -40,6 +40,19 @@
#ifndef GFLAGS_WINDOWS_PORT_H_
#define GFLAGS_WINDOWS_PORT_H_
#ifndef GFLAGS_DLL_DECL
# if defined(_MSC_VER) && defined(GFLAGS_SHARED_LIBS)
# ifdef GFLAGS_DLL_EXPORT
# define GFLAGS_DLL_DECL __declspec(dllexport)
# else
# define GFLAGS_DLL_DECL __declspec(dllimport)
# endif
# else
# define GFLAGS_DLL_DECL
# endif
#endif
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
/* We always want minimal includes */
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment