From 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf Mon Sep 17 00:00:00 2001 From: takeshi_hoshina Date: Mon, 2 Nov 2020 11:07:33 +0900 Subject: basesystem-jj recipes --- .../files/Packaging-fixes.patch | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 external/meta-iot-cloud/recipes-aws/aws-iot-device-sdk-cpp/files/Packaging-fixes.patch (limited to 'external/meta-iot-cloud/recipes-aws/aws-iot-device-sdk-cpp/files/Packaging-fixes.patch') diff --git a/external/meta-iot-cloud/recipes-aws/aws-iot-device-sdk-cpp/files/Packaging-fixes.patch b/external/meta-iot-cloud/recipes-aws/aws-iot-device-sdk-cpp/files/Packaging-fixes.patch new file mode 100644 index 00000000..32c880e6 --- /dev/null +++ b/external/meta-iot-cloud/recipes-aws/aws-iot-device-sdk-cpp/files/Packaging-fixes.patch @@ -0,0 +1,67 @@ +From 3db20a53f35f9d0413c312b46815f6b16fe0afa4 Mon Sep 17 00:00:00 2001 +From: Scott Ware +Date: Fri, 8 Dec 2017 10:52:20 +0000 +Subject: [PATCH 4/5] Packaging fixes + +Signed-off-by: Scott Ware +--- + CMakeLists.txt | 12 ++++++++---- + awsiotsdk-cpp.pc.in | 11 +++++++++++ + 2 files changed, 19 insertions(+), 4 deletions(-) + create mode 100644 awsiotsdk-cpp.pc.in + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cb0ad9d..fa98c30 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,9 @@ + cmake_minimum_required(VERSION 3.2 FATAL_ERROR) +-project(aws-iot-sdk-cpp C CXX) ++project(aws-iot-sdk-cpp VERSION 1.3.0 LANGUAGES C CXX) + option(BUILD_SHARED_LIBRARY "Build the library as a shared object, will build it as a static library otherwise" NO) + ++include(GNUInstallDirs) ++ + ###################################### + # Section : Disable in-source builds # + ###################################### +@@ -51,7 +53,7 @@ add_definitions(-DSDK_VERSION_STRING="1.3.0") + set(SDK_TARGET_NAME aws-iot-sdk-cpp) + if (BUILD_SHARED_LIBRARY) + add_library(${SDK_TARGET_NAME} SHARED "") +- set_target_properties(${SDK_TARGET_NAME} PROPERTIES SUFFIX ".so") ++ set_target_properties(${SDK_TARGET_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR} VERSION ${PROJECT_VERSION}) + else() + add_library(${SDK_TARGET_NAME} "") + endif() +@@ -174,6 +176,8 @@ endif() + # Section: Define Install Target # + ################################## + if(NOT MSVC) +- install(TARGETS aws-iot-sdk-cpp DESTINATION lib) +- install(DIRECTORY include/ DESTINATION include) ++ install(TARGETS aws-iot-sdk-cpp DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++ install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/awsiotsdk) ++ configure_file (awsiotsdk-cpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/awsiotsdk-cpp.pc @ONLY) ++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/awsiotsdk-cpp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + endif() +diff --git a/awsiotsdk-cpp.pc.in b/awsiotsdk-cpp.pc.in +new file mode 100644 +index 0000000..0828942 +--- /dev/null ++++ b/awsiotsdk-cpp.pc.in +@@ -0,0 +1,11 @@ ++prefix=@CMAKE_INSTALL_PREFIX@ ++exec_prefix=@CMAKE_INSTALL_PREFIX@ ++libdir=@CMAKE_INSTALL_LIBDIR@ ++includedir=@CMAKE_INSTALL_INCLUDEDIR@/awsiotsdk ++ ++Name: awsiotsdk-cpp ++Description: SDK for connecting to AWS IoT from a device using C++ ++Version: @PROJECT_VERSION@ ++ ++Libs: -L${libdir} -laws-iot-sdk-cpp ++Cflags: -I${includedir} +-- +1.9.1 + -- cgit 1.2.3-korg