Skip to content

Commit c57bbf6

Browse files
authored
Merge pull request #204 from drowe67/ms-packaging
Bump codec2 to 1.0.0.
2 parents 58fbd33 + 6f2c838 commit c57bbf6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ endif("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
4343
# Set project version information. This should probably be done via external
4444
# file at some point.
4545
#
46-
set(CODEC2_VERSION_MAJOR 0)
47-
set(CODEC2_VERSION_MINOR 9)
46+
set(CODEC2_VERSION_MAJOR 1)
47+
set(CODEC2_VERSION_MINOR 0)
4848
# Set to patch level if needed, otherwise leave FALSE.
4949
# Must be positive (non-zero) if set, since 0 == FALSE in CMake.
50-
set(CODEC2_VERSION_PATCH 2)
50+
set(CODEC2_VERSION_PATCH 0)
5151
set(CODEC2_VERSION "${CODEC2_VERSION_MAJOR}.${CODEC2_VERSION_MINOR}")
5252
# Patch level version bumps should not change API/ABI.
5353
set(SOVERSION "${CODEC2_VERSION_MAJOR}.${CODEC2_VERSION_MINOR}")
@@ -89,6 +89,12 @@ else()
8989
add_definitions(-DGIT_HASH="None")
9090
endif()
9191

92+
set(ARCHIVE_NAME "codec2-${CODEC2_VERSION_MAJOR}.${CODEC2_VERSION_MINOR}.${CODEC2_VERSION_PATCH}")
93+
add_custom_target(dist
94+
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
95+
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
96+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
97+
9298
# Set default C flags.
9399
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-strict-overflow")
94100

0 commit comments

Comments
 (0)