File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,17 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
77SET (EXEC_PREFIX "${CMAKE_INSTALL_PREFIX} /bin" )
88SET (INCLUDEDIR "${CMAKE_INSTALL_PREFIX} /include" )
99SET (LIBDIR ${CMAKE_LIBDIR_PREFIX} )
10- SET (VERSION_MAJOR 0)
11- SET (VERSION "${VERSION_MAJOR} .1.0" )
10+
11+ IF (NOT DEFINED VERSION)
12+ SET (VERSION 0.1.0)
13+ ENDIF ()
14+
15+ STRING (REPLACE "." ";" VERSION_LIST ${VERSION} )
16+ LIST (GET VERSION_LIST 0 VERSION_MAJOR)
17+ LIST (GET VERSION_LIST 1 VERSION_MINOR)
18+ LIST (GET VERSION_LIST 2 VERSION_MICRO)
19+
20+ SET (VERSION_FLAGS "-DVERSION='\" ${VERSION} \" ' -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_MICRO=${VERSION_MICRO} " )
1221
1322INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR} )
1423INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR} /src )
@@ -30,7 +39,7 @@ ENDFOREACH(flag)
3039# SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions")
3140# SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall -Wextra -Wno-array-bounds -Wno-empty-body -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow -Wwrite-strings -Wswitch-default -Wno-unused-but-set-parameter -Wno-unused-but-set-variable")
3241
33- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -lrt" )
42+ SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${VERSION_FLAGS} -lrt" )
3443
3544SET (SRCS
3645 src/hal-api-ml.c
Original file line number Diff line number Diff line change 11Name: hal-api-ml
22Summary: hal-api-ml interface
3- Version: 0.0.1
3+ # Synchronize the version information.
4+ # 1. CMake : ./CMakeLists.txt
5+ # 2. Tizen : ./packaging/hal-api-ml.spec
6+ Version: 0.1.0
47Release: 0
58Group: Machine Learning/ML Framework
69License: Apache-2.0
@@ -83,3 +86,7 @@ rm -rf %{buildroot}
8386%defattr(-,root,root,-)
8487%manifest hal-api-ml.manifest
8588%{_bindir }/hal/ml-haltests
89+
90+ %changelog
91+ * Wed Aug 27 2025 Yongjoo Ahn <yongjoo1.ahn@samsung.com>
92+ - Release of 0.1.0 (Tizen 10.0 M2)
You can’t perform that action at this time.
0 commit comments