forked from Igalia/WPEBackend-fdo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the libtool versioning scheme for libWPEBackend
This is needed in preparation for the 1.0.0 release. VersioningUtils.cmake is imported from the WebKit source tree: https://trac.webkit.org/browser/webkit/trunk/Source/cmake/VersioningUtils.cmake Fixes Igalia#21
- Loading branch information
Showing
2 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
macro(SET_PROJECT_VERSION major minor micro) | ||
set(PROJECT_VERSION_MAJOR "${major}") | ||
set(PROJECT_VERSION_MINOR "${minor}") | ||
set(PROJECT_VERSION_MICRO "${micro}") | ||
set(PROJECT_VERSION "${major}.${minor}.${micro}") | ||
endmacro() | ||
|
||
# Libtool library version, not to be confused with API version. | ||
# See http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html | ||
macro(CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE library_name current revision age) | ||
math(EXPR ${library_name}_VERSION_MAJOR "${current} - ${age}") | ||
set(${library_name}_VERSION_MINOR ${age}) | ||
set(${library_name}_VERSION_MICRO ${revision}) | ||
set(${library_name}_VERSION ${${library_name}_VERSION_MAJOR}.${age}.${revision}) | ||
endmacro() |