diff options
author | gichan2-jang <gichan2.jang@samsung.com> | 2024-10-11 13:44:05 +0900 |
---|---|---|
committer | Sangjung Woo <again4you@gmail.com> | 2024-10-14 19:39:20 +0900 |
commit | 681b884c6a50f3134065311d1610991dcdde916e (patch) | |
tree | 8d2832e9c2a129db3980bf1a3d63a5d768de8958 | |
parent | 2cddf634ee602c42808d3f6ad40e0647de61050a (diff) | |
download | machine-learning-accepted/tizen_unified_toolchain.tar.gz machine-learning-accepted/tizen_unified_toolchain.tar.bz2 machine-learning-accepted/tizen_unified_toolchain.zip |
[ml-service] Add staging header to prevent build errortizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20241022.113536accepted/tizen/unified/x/20241017.030735accepted/tizen/unified/toolchain/20241022.123029accepted/tizen/unified/toolchain/20241022.122619accepted/tizen/unified/20241016.160053accepted/tizen/9.0/unified/20241030.232113accepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchain
Staging header will be added to Tizen 7.0.
Add empty staging header file to prevent build errors for users using the header file.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
-rw-r--r-- | c/include/meson.build | 3 | ||||
-rw-r--r-- | c/include/ml-api-staging.h | 32 | ||||
-rw-r--r-- | packaging/machine-learning-api.spec | 10 |
3 files changed, 45 insertions, 0 deletions
diff --git a/c/include/meson.build b/c/include/meson.build index 4a5f5af..7dd8c0b 100644 --- a/c/include/meson.build +++ b/c/include/meson.build @@ -7,3 +7,6 @@ else endif nns_capi_service_headers = files('ml-api-service.h') +if get_option('enable-tizen') + nns_capi_service_headers += files('ml-api-staging.h') +endif diff --git a/c/include/ml-api-staging.h b/c/include/ml-api-staging.h new file mode 100644 index 0000000..0312567 --- /dev/null +++ b/c/include/ml-api-staging.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: Apache-2.0 */ +/** + * NNStreamer API / Tizen Machine-Learning API Internal Header + * Copyright (C) 2024 Gichan Jang <gichan2.jang@samsung.com> + */ +/** + * @file ml-api-staging.h + * @date 10 oct 2024 + * @brief Internal header for ML-API. + * @see https://github.com/nnstreamer/nnstreamer + * @author Gichan Jang <gichan2.jang@samsung.com> + * @bug No known bugs except for NYI items + */ + +#ifndef __ML_API_STAGING_H__ +#define __ML_API_STAGING_H__ + +#include <ml-api-common.h> +#include <ml-api-service.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * Temporarily use the API waiting for release. + */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* __ML_API_STAGING_H__ */ diff --git a/packaging/machine-learning-api.spec b/packaging/machine-learning-api.spec index 4078bda..d473da3 100644 --- a/packaging/machine-learning-api.spec +++ b/packaging/machine-learning-api.spec @@ -298,6 +298,13 @@ Group: Machine Learning/ML Framework Requires: capi-machine-learning-service = %{version}-%{release} %description -n capi-machine-learning-service-devel-static Static library of Tizen Machine Learning Service API. + +%package -n capi-machine-learning-staging +Summary: Tizen staging headers for Tizen Machine Learning API +Group: Machine Learning/ML Framework +Requires: capi-machine-learning-service-devel = %{version}-%{release} +%description -n capi-machine-learning-staging +Tizen staging headers for Tizen Machine Learning API. %endif %if 0%{?unit_test} @@ -541,6 +548,9 @@ install -m 0755 packaging/run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests %files -n capi-machine-learning-service-devel-static %{_libdir}/libcapi-ml-service.a + +%files -n capi-machine-learning-staging +%{_includedir}/nnstreamer/ml-api-staging.h %endif %if 0%{?unit_test} |