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
3fd9fa70
Commit
3fd9fa70
authored
Mar 20, 2014
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Plain Diff
Resolve conflicts upon pull.
parents
cf40f73c
0e1c5ce0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
30 deletions
+63
-30
CMakeLists.txt
CMakeLists.txt
+7
-6
ChangeLog.txt
ChangeLog.txt
+11
-0
NEWS.txt
NEWS.txt
+38
-0
package.cmake.in
cmake/package.cmake.in
+7
-24
No files found.
CMakeLists.txt
View file @
3fd9fa70
...
...
@@ -8,7 +8,7 @@ include (utils)
# ----------------------------------------------------------------------------
# package information
set
(
PACKAGE_NAME
"gflags"
)
set
(
PACKAGE_VERSION
"2.1"
)
set
(
PACKAGE_VERSION
"2.1
.0
"
)
set
(
PACKAGE_STRING
"
${
PACKAGE_NAME
}
${
PACKAGE_VERSION
}
"
)
set
(
PACKAGE_TARNAME
"
${
PACKAGE_NAME
}
-
${
PACKAGE_VERSION
}
"
)
set
(
PACKAGE_BUGREPORT
"https://code.google.com/p/gflags/issues/"
)
...
...
@@ -366,13 +366,14 @@ if (BUILD_PACKAGING)
set
(
CPACK_RESOURCE_FILE_README
"
${
CMAKE_CURRENT_LIST_DIR
}
/cmake/README_runtime.txt"
)
endif
()
# system
name used for binary package file nam
e
# system
/architectur
e
if
(
WINDOWS
)
if
(
CMAKE_CL_64
)
set
(
CPACK_SYSTEM_NAME
"win64"
)
else
()
set
(
CPACK_SYSTEM_NAME
"win32"
)
endif
()
set
(
CPACK_PACKAGE_ARCHITECTURE
)
else
()
string
(
TOLOWER
"
${
CMAKE_SYSTEM_NAME
}
"
CPACK_SYSTEM_NAME
)
if
(
CMAKE_CXX_FLAGS MATCHES
"-m32"
)
...
...
@@ -402,10 +403,10 @@ if (BUILD_PACKAGING)
set
(
CPACK_SOURCE_IGNORE_FILES
"/
\\\\
.git/;
\\\\
.swp$;
\\\\
.#;/#;
\\\\
.*~;cscope
\\\\
.*;/[Bb]uild[.+-_a-zA-Z0-9]*/"
)
# default binary package settings
set
(
CPACK_INCLUDE_TOPLEVEL_DIRECTORY
TRUE
)
set
(
CPACK_PACKAGE_FILE_NAME
"
${
CPACK_PACKAGE_NAME
}
-
${
CPACK_PACKAGE_VERSION
}
-
${
CPACK_SYSTEM_NAME
}
"
)
if
(
C
MAKE_SYSTEM_PROCESSOR
)
set
(
CPACK_PACKAGE_FILE_NAME
"
${
CPACK_PACKAGE_FILE_NAME
}
-
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
set
(
CPACK_INCLUDE_TOPLEVEL_DIRECTORY TRUE
)
set
(
CPACK_PACKAGE_FILE_NAME
"
${
CPACK_PACKAGE_NAME
}
-
${
CPACK_PACKAGE_VERSION
}
-
${
CPACK_SYSTEM_NAME
}
"
)
if
(
C
PACK_PACKAGE_ARCHITECTURE
)
set
(
CPACK_PACKAGE_FILE_NAME
"
${
CPACK_PACKAGE_FILE_NAME
}
-
${
CPACK_PACKAGE_ARCHITECTURE
}
"
)
endif
()
# generator specific configuration file
...
...
ChangeLog.txt
View file @
3fd9fa70
* Thu Mar 20 2014 - Andreas Schuh <google-gflags@googlegroups.com>
- gflags: version 2.1.0
- Build system configuration using CMake instead of autotools
- CPack packaging support for Debian/Ubuntu, Red Hat, and Mac OS X
- Fixed issue 54: Fix "invalid suffix on literal" (C++11)
- Fixed issue 57: Use _strdup instead of strdup on Windows
- Fixed issue 62: Change all preprocessor include guards to start with GFLAGS_
- Fixed issue 64: Add DEFINE_validator macro
- Fixed issue 73: Warnings in Visual Studio 2010 and unable to compile unit test
* Wed Jan 25 2012 - Google Inc. <google-gflags@googlegroups.com>
- gflags: version 2.0
...
...
NEWS.txt
View file @
3fd9fa70
=== 20 March 2014 ===
I've just released gflags 2.1.0.
The major changes are the use of CMake for the build configuration instead
of the autotools and packaging support through CPack. This release compiles
with all major compilers without warnings and passed the unit tests on
Ubuntu 12.04, Windows 7 (Visual Studio 2008 and 2010, Cygwin, MinGW), and
Mac OS X (Xcode 5.1).
The SVN repository on Google Code is now frozen and replaced by a Git
repository such that it can be used as Git submodule by projects. The main
hosting of this project remains at Google Code. Thanks to the distributed
character of Git, I can push (and pull) changes from both GitHub and Google Code
in order to keep the two public repositories in sync.
When fixing an issue for a pull request through either of these hosting
platforms, please reference the issue number as
[https://code.google.com/p/support/wiki/IssueTracker#Integration_with_version_control described here].
For the further development, I am following the
[http://nvie.com/posts/a-successful-git-branching-model/ Git branching model]
with feature branch names prefixed by "feature/" and bugfix branch names
prefixed by "bugfix/", respectively.
Binary and source distribution packages can be downloaded from
[https://github.com/schuhschuh/gflags GitHub] as Google Code no longer
permits the upload of such download packages.
=== 14 January 2013 ===
The migration of the build system to CMake is almost complete.
What remains to be done is rewriting the tests in Python such they can be
executed on non-Unix platforms and splitting them up into separate CTest tests.
Though merging these changes into the master branch yet remains to be done,
it is recommended to already start using the
[https://github.com/schuhschuh/gflags/tree/cmake-migration cmake-migration] branch.
=== 20 April 2013 ===
More than a year has past since I (Andreas) took over the maintenance for
...
...
cmake/package.cmake.in
View file @
3fd9fa70
...
...
@@ -27,40 +27,23 @@ elseif (CPACK_GENERATOR MATCHES "DEB")
else ()
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}0")
endif ()
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}_${CPACK_PACKAGE_VERSION}-1_${CMAKE_SYSTEM_PROCESSOR}")
execute_process (
COMMAND dpkg --print-architecture
RESULT_VARIABLE RV
OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE
)
if (NOT RV EQUAL 0)
set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
endif ()
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}_${CPACK_PACKAGE_VERSION}-1_${CPACK_PACKAGE_ARCHITECTURE}")
set (CPACK_DEBIAN_PACKAGE_DEPENDS)
set (CPACK_DEBIAN_PACKAGE_SECTION "devel")
set (CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
set (CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_RPM_PACKAGE_URL}")
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR}")
set (CPACK_DEBIAN_PACKAGE_SECTION "devel")
set (CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
set (CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_RPM_PACKAGE_URL}")
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR}")
set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE "${CPACK_PACKAGE_ARCHITECTURE}")
# ------------------------------------------------------------------------------
# RPM package
elseif (CPACK_GENERATOR MATCHES "RPM")
execute_process (
COMMAND dpkg --print-architecture
RESULT_VARIABLE RV
OUTPUT_VARIABLE CPACK_RPM_PACKAGE_ARCHITECTURE
)
if (NOT RV EQUAL 0)
set (CPACK_RPM_PACKAGE_ARCHITECTURE i386)
endif ()
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}")
if (DEVEL)
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-devel")
endif ()
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${CPACK_PACKAGE_VERSION}-1
_${CMAKE_SYSTEM_PROCESSOR
}")
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${CPACK_PACKAGE_VERSION}-1
.${CPACK_PACKAGE_ARCHITECTURE
}")
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