mv_machine_learning: pack header files for external plugin
authorInki Dae <inki.dae@samsung.com>
Thu, 20 Jul 2023 09:09:22 +0000 (18:09 +0900)
committerKwanghoon Son <k.son@samsung.com>
Mon, 7 Aug 2023 04:25:06 +0000 (13:25 +0900)
[Issue type] : package update

Pack two header files - machine_learning_exception.h and Preprocess.h
to devel package so that external plugin module can use them.

Change-Id: I69b26c3a415d817afb35e1537073f40e8226bb2f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/CMakeLists.txt
mv_machine_learning/common/CMakeLists.txt [new file with mode: 0644]
mv_machine_learning/meta/CMakeLists.txt [new file with mode: 0644]
packaging/capi-media-vision.spec

index 604acf9981f1c2fcf97ea1ad9f80ef8c5ce27bcc..b16d8390fc6661c481e916c70da830e37f63a8da 100644 (file)
@@ -1,4 +1,6 @@
 add_subdirectory(inference)
+add_subdirectory(common)
+add_subdirectory(meta)
 
 if (${ENABLE_ML_IMAGE_CLASSIFICATION})
     message("Enabled machine learning image classification task group.")
diff --git a/mv_machine_learning/common/CMakeLists.txt b/mv_machine_learning/common/CMakeLists.txt
new file mode 100644 (file)
index 0000000..7e0b560
--- /dev/null
@@ -0,0 +1,8 @@
+project(MV_MACHINE_LEARNING_COMMON)
+cmake_minimum_required(VERSION 2.6...3.13)
+
+install(
+    DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include/media
+    FILES_MATCHING
+    PATTERN "machine_learning_exception.h"
+    )
\ No newline at end of file
diff --git a/mv_machine_learning/meta/CMakeLists.txt b/mv_machine_learning/meta/CMakeLists.txt
new file mode 100644 (file)
index 0000000..03f842b
--- /dev/null
@@ -0,0 +1,8 @@
+project(MV_MACHINE_LEARNING_META)
+cmake_minimum_required(VERSION 2.6...3.13)
+
+install(
+    DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include/media
+    FILES_MATCHING
+    PATTERN "Preprocess.h"
+    )
\ No newline at end of file
index 5c1d6d1d998a349523f71a914a647541e802c273..c62219fbfb3d6c5cdc026c5de2dec14bf3448fdf 100644 (file)
@@ -419,6 +419,8 @@ find . -name '*.gcno' -not -path "./test/*" -not -path "./mv_machine_learning/*"
 
 %files machine_learning-devel
 %{_includedir}/media/mv_infer*.h
+%{_includedir}/media/machine_learning_exception.h
+%{_includedir}/media/Preprocess.h
 %{_libdir}/pkgconfig/*inference.pc
 %if "%{enable_ml_face_recognition}" == "1"
 %{_includedir}/media/mv_face_recognition*.h