From 6a75b6589ab45f671294882bd5275ee3b019dc4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Nystr=C3=B6m?= Date: Tue, 28 Apr 2026 22:10:15 +0200 Subject: [PATCH 1/2] Add a missing include of cstdint Change-Id: I2f0aa51f87f17820f97c63b1b210bfdfd713d340 --- backend/device/include/device/handle.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/device/include/device/handle.hpp b/backend/device/include/device/handle.hpp index ca2524e..e4928ce 100644 --- a/backend/device/include/device/handle.hpp +++ b/backend/device/include/device/handle.hpp @@ -32,6 +32,7 @@ #include +#include #include namespace hwcpipe { From 92e743d5c1a39dde264d167e5cdb587f7dc716fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20F=C3=B6rberg?= Date: Thu, 30 Apr 2026 09:12:34 +0200 Subject: [PATCH 2/2] Adapt project for OpenEmbedded integration - Add install rules for the library, example program and headers - Build a versioned shared library - When installed the program "api-example" is renamed to "hwcpipe-api-example" to avoid filesystem conflicts. --- examples/CMakeLists.txt | 5 +++++ hwcpipe/CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 95b0ae4..123a4fd 100755 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -12,6 +12,11 @@ target_link_libraries(api-example PRIVATE hwcpipe ) +install(PROGRAMS $ + DESTINATION bin + RENAME hwcpipe-api-example +) + target_compile_options(api-example PRIVATE -Werror -Wswitch-default diff --git a/hwcpipe/CMakeLists.txt b/hwcpipe/CMakeLists.txt index d1b9115..ac917b9 100644 --- a/hwcpipe/CMakeLists.txt +++ b/hwcpipe/CMakeLists.txt @@ -20,6 +20,11 @@ target_compile_options(hwcpipe -Wswitch-enum ) +set_target_properties(hwcpipe PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR} +) + if(HWCPIPE_PIC) set_target_properties(hwcpipe PROPERTIES POSITION_INDEPENDENT_CODE ON) endif() @@ -31,4 +36,13 @@ target_include_directories(hwcpipe target_link_libraries(hwcpipe PUBLIC device +) + +install(TARGETS hwcpipe + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) + +install(DIRECTORY include/ + DESTINATION include ) \ No newline at end of file