Skip to content

Commit 46589b3

Browse files
committed
Merge pull request #1089 from bettio/add-major-minor-to-version
Add defines for 3rd party components with info about version Add major, minor and patch defines that can be used from 3rd party components. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 8d9436a + e66bd5e commit 46589b3

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/libAtomVM/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ set(HEADER_FILES
6565
unicode.h
6666
utils.h
6767
valueshashtable.h
68+
atomvm_version.h
6869
${CMAKE_CURRENT_BINARY_DIR}/avm_version.h
6970
)
7071

src/libAtomVM/atomvm_version.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* This file is part of AtomVM.
3+
*
4+
* Copyright 2024 Davide Bettio <[email protected]>
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
*/
20+
21+
#ifndef _ATOMVM_VERSION_H_
22+
#define _ATOMVM_VERSION_H_
23+
24+
#define ATOMVM_VERSION_MAJOR 0
25+
#define ATOMVM_VERSION_MINOR 6
26+
#define ATOMVM_VERSION_PATCH 0
27+
28+
#endif

version.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
1919
#
2020

21+
# Please, keep also in sync src/libAtomVM/atomvm_version.h
2122
set(ATOMVM_BASE_VERSION "0.6.0-rc.0")
2223
set(ATOMVM_DEV TRUE)

0 commit comments

Comments
 (0)