Skip to content

Commit c061a57

Browse files
committed
SWPROT-8953: build: Add i-p to packages
i-p: Link unify.so for rust Note this change fails to build on CI (disk full), but seems fine locally. Origin: #19 Signed-off-by: Philippe Coval <[email protected]>
1 parent d313407 commit c061a57

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,27 @@ include_directories(include ${CMAKE_CURRENT_BINARY_DIR}/include)
3232
# Subdirectories
3333
# #############################################################################
3434
add_subdirectory(applications)
35+
36+
# ##############################################################################
37+
# Extra targets
38+
# ##############################################################################
39+
40+
add_custom_target(unify-binary-dir
41+
DEPENDS unify
42+
COMMAND echo "Trick for building rust components depending on core libunify.so ${unifysdk_BINARY_DIR}"
43+
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/components/
44+
COMMAND ${CMAKE_COMMAND} -E create_symlink
45+
${unifysdk_BINARY_DIR}/components/$<TARGET_FILE_NAME:unify>
46+
${CMAKE_BINARY_DIR}/components/$<TARGET_FILE_NAME:unify>
47+
)
48+
3549
include(cmake/include/package.cmake)
3650
include(cmake/include/version_file.cmake)
51+
52+
if(BUILD_IMAGE_PROVIDER)
53+
# message(STATUS "Force to build uic-i-p package in zpc project (until it is built in core)")
54+
add_dependencies(uic_image_provider_build unify-binary-dir)
55+
add_dependencies(uic-image-provider_deb uic-image-provider)
56+
add_dependencies(uic-image-provider_deb package)
57+
add_dependencies(package_archive uic-image-provider_deb)
58+
endif()

0 commit comments

Comments
 (0)