From nobody Mon Jan 22 17:31:23 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TJchW5bh4z57rBN; Mon, 22 Jan 2024 17:31:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJchW5QJhz4jnY; Mon, 22 Jan 2024 17:31:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705944683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vGcsA2FwHacRTc38Uau4VeRz0MkixFFhLXcRUSevkvs=; b=BNr51UkeebuFa6bIcP6cbuaWv8ID7cCrODLSomCgd7mZh5MyuwgbQCp2G0pkPo45YnM4N9 kcdRXDrRpN/BTKcrF18sl9znrfQtOMpDqj+EA3MJIqT99zvMolGGj5aXhtsSV3GfJPu9Fx MbO5PEzgP5EkcwzYnjVCq62Wl05gRaL4j+vO9RA220Ov3iRq/L4YX0kbTrWsyQVggZZs1q GjvwBqoNRU+zTQYX8qY3gDRE+O+fzJVcG9H9T3mfuvWiRuBH/Z0JvsObXM10odkJxJG2is wTbTfnF1DwQtB3VTbzpY6HkmwWY7r6qtyKdOMz43TGlniilufm/4IkK52ZdIqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705944683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vGcsA2FwHacRTc38Uau4VeRz0MkixFFhLXcRUSevkvs=; b=riWuMU5G1Stp2xG4c2ycQze/etrBTipivvJLZB382glzPScRaTn2OcxkOM/+KFQDFyjDKe 12YAZCpVowz4lCiWucyQ/1uo6PQcUKHRVdi8nexMkdXuCbygjxwITZMLE8yUryP5XFmIh3 qcC9rWsaHigV2CoX3JqQmKHV9GCIb9H3vO0wAd2z3IN+56DPLGmDGYMMhLF7JZZKMMB8zb BK4iLTpnj4sRVymxfAWvn7CEywgayMOyFL4044HKeegEkTw3oOfQDTnbNeNZQbZXwF218D Bfu0XteD7C4C1NDannO26/sLQKHFJXTrZENSsX9LTa6qho5yoqD044+JrvfSwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705944683; a=rsa-sha256; cv=none; b=IAIQttr9/3nlAOaZ5B4zDJtX+r33n+SaruhaJwp+FEA3anGLKMpHAGqU7ZeJEY7siHKS6f 4VxhNUBphdg0ktomw1Bo6ZJOyGdhW89PgN09Wh6chZPk3GcUYkp7y3beTF1z2RjXzgGx2w jSzW6ErUDScFLX6A3tQYpr6kUXJTtESlhbQcjRQTKGxlEZwZHGHIx7DosjBwtD6xJsRFoK bZeFAs8CPVMV26qJb0erkj1EHCXIZwya35sTaAW8YEzdgRkwxPMXx+ewSRWbi0nDClVcIU qJhhUylSeiHM0M1Tk25gjiDl4HDOSLS4EDKbBEBp6pa5Uzr9Q1GHIW7rF1hGpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TJchW4Rl9z19b2; Mon, 22 Jan 2024 17:31:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40MHVNPm018490; Mon, 22 Jan 2024 17:31:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40MHVN9M018487; Mon, 22 Jan 2024 17:31:23 GMT (envelope-from git) Date: Mon, 22 Jan 2024 17:31:23 GMT Message-Id: <202401221731.40MHVN9M018487@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 16e7f0d257a9 - main - devel/libasyncplusplus: Add static library build option. List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 16e7f0d257a9602320a170cf9e9fd90cae452e37 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=16e7f0d257a9602320a170cf9e9fd90cae452e37 commit 16e7f0d257a9602320a170cf9e9fd90cae452e37 Author: Peter AuthorDate: 2024-01-21 18:48:23 +0000 Commit: Gleb Popov CommitDate: 2024-01-22 17:30:57 +0000 devel/libasyncplusplus: Add static library build option. Pull Request: https://github.com/freebsd/freebsd-ports/pull/220 --- devel/libasyncplusplus/Makefile | 11 + .../files/patch-Async++Config.cmake.in | 7 + devel/libasyncplusplus/files/patch-CMakeLists.txt | 243 +++++++++++++++++++++ devel/libasyncplusplus/pkg-plist | 5 +- 4 files changed, 264 insertions(+), 2 deletions(-) diff --git a/devel/libasyncplusplus/Makefile b/devel/libasyncplusplus/Makefile index 8fc90dff317c..d2a6aceed6c7 100644 --- a/devel/libasyncplusplus/Makefile +++ b/devel/libasyncplusplus/Makefile @@ -1,6 +1,7 @@ PORTNAME= libasyncplusplus DISTVERSIONPREFIX= v DISTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= peter@flytrace.com @@ -18,4 +19,14 @@ USE_GITHUB= yes GH_ACCOUNT= Amanieu GH_PROJECT= asyncplusplus +OPTIONS_DEFINE= STATIC +OPTIONS_DEFAULT= STATIC +OPTIONS_SUB= yes + +STATIC_DESC= Build static library + +CMAKE_ON= ASYNCXX_BUILD_SHARED + +STATIC_CMAKE_BOOL= ASYNCXX_BUILD_STATIC + .include diff --git a/devel/libasyncplusplus/files/patch-Async++Config.cmake.in b/devel/libasyncplusplus/files/patch-Async++Config.cmake.in new file mode 100644 index 000000000000..69fa3144894f --- /dev/null +++ b/devel/libasyncplusplus/files/patch-Async++Config.cmake.in @@ -0,0 +1,7 @@ +--- Async++Config.cmake.in.orig 2020-02-01 15:43:41 UTC ++++ Async++Config.cmake.in +@@ -1,3 +1,3 @@ + include(CMakeFindDependencyMacro) + find_dependency(Threads) +-include("${CMAKE_CURRENT_LIST_DIR}/Async++.cmake") ++include("${CMAKE_CURRENT_LIST_DIR}/asyncxx-targets.cmake") diff --git a/devel/libasyncplusplus/files/patch-CMakeLists.txt b/devel/libasyncplusplus/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..6c050d3d6bc3 --- /dev/null +++ b/devel/libasyncplusplus/files/patch-CMakeLists.txt @@ -0,0 +1,243 @@ +--- CMakeLists.txt.orig 2020-02-01 15:43:41 UTC ++++ CMakeLists.txt +@@ -21,17 +21,21 @@ + cmake_minimum_required(VERSION 3.1) + project(Async++ C CXX) + +-option(BUILD_SHARED_LIBS "Build Async++ as a shared library" ON) ++option(ASYNCXX_BUILD_SHARED "Build shared library" ON) ++option(ASYNCXX_BUILD_STATIC "Build static library" OFF) + option(USE_CXX_EXCEPTIONS "Enable C++ exception support" ON) + if (APPLE) + option(BUILD_FRAMEWORK "Build a Mac OS X framework instead of a library" OFF) +- if (BUILD_FRAMEWORK AND NOT BUILD_SHARED_LIBS) ++ if (BUILD_FRAMEWORK AND NOT ASYNCXX_BUILD_SHARED) + message(FATAL_ERROR "Can't build a framework with static libraries") + endif() + endif() + + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + ++set(ASYNCXX_SHARED_LIBRARY async++) ++set(ASYNCXX_STATIC_LIBRARY async++-static) ++ + # Add all source and header files so IDEs can see them + set(ASYNCXX_INCLUDE + ${PROJECT_SOURCE_DIR}/include/async++/aligned_alloc.h +@@ -61,59 +65,147 @@ set(ASYNCXX_SRC + ) + source_group(include FILES ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE}) + source_group(src FILES ${ASYNCXX_SRC}) +-add_library(Async++ ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE} ${ASYNCXX_SRC}) + +-# Async++ only depends on the C++11 standard libraries, but some implementations +-# require the -pthread compiler flag to enable threading functionality. +-if (NOT MSVC) +- target_compile_options(Async++ PRIVATE -std=c++11) ++if(${ASYNCXX_BUILD_SHARED}) ++ list(APPEND ASYNCXX_TARGETS ${ASYNCXX_SHARED_LIBRARY}) + endif() +-if (APPLE) +- # Use libc++ on Mac because the shipped libstdc++ version is ancient +- target_compile_options(Async++ PRIVATE -stdlib=libc++) +- set_target_properties(Async++ PROPERTIES LINK_FLAGS -stdlib=libc++) ++ ++if(${ASYNCXX_BUILD_STATIC}) ++ list(APPEND ASYNCXX_TARGETS ${ASYNCXX_STATIC_LIBRARY}) + endif() ++ ++if(NOT ASYNCXX_TARGETS) ++ message(FATAL_ERROR "No targets are specified") ++endif() ++ + set(THREADS_PREFER_PTHREAD_FLAG ON) + find_package(Threads REQUIRED) +-target_link_libraries(Async++ PUBLIC Threads::Threads) + +-# Set up preprocessor definitions +-target_include_directories(Async++ PRIVATE ${PROJECT_SOURCE_DIR}/include) +-set_target_properties(Async++ PROPERTIES DEFINE_SYMBOL LIBASYNC_BUILD) +-if (BUILD_SHARED_LIBS) +- # Minimize the set of symbols exported by libraries +- set_target_properties(Async++ PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN ON) +-else() +- target_compile_definitions(Async++ PUBLIC LIBASYNC_STATIC) +-endif() ++if(${ASYNCXX_BUILD_SHARED}) ++ message(STATUS "Creating shared library: ${ASYNCXX_SHARED_LIBRARY}") ++ add_library(${ASYNCXX_SHARED_LIBRARY} SHARED ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE} ${ASYNCXX_SRC}) ++ target_compile_features(${ASYNCXX_SHARED_LIBRARY} PUBLIC cxx_std_14) + ++# Async++ only depends on the C++11 standard libraries, but some implementations ++# require the -pthread compiler flag to enable threading functionality. ++ if (NOT MSVC) ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -std=c++11) ++ endif() ++ if (APPLE) ++ # Use libc++ on Mac because the shipped libstdc++ version is ancient ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -stdlib=libc++) ++ set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES LINK_FLAGS -stdlib=libc++) ++ endif() ++ target_link_libraries(${ASYNCXX_SHARED_LIBRARY} PUBLIC Threads::Threads) ++# Set up preprocessor definitions ++ target_include_directories(${ASYNCXX_SHARED_LIBRARY} PRIVATE ${PROJECT_SOURCE_DIR}/include) ++ set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES DEFINE_SYMBOL LIBASYNC_BUILD) ++ set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN ON) + # Enable warnings for strict C++ standard conformance +-if (NOT MSVC) +- target_compile_options(Async++ PRIVATE -Wall -Wextra -pedantic) +-endif() +- ++ if (NOT MSVC) ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -Wall -Wextra -pedantic) ++ endif() + # Async++ doesn't make use of RTTI information, so don't generate it. + # There are issues on Apple platforms with exceptions and -fno-rtti, so keep it + # enabled there. + # See https://stackoverflow.com/questions/21737201/problems-throwing-and-catching-exceptions-on-os-x-with-fno-rtti +-if (MSVC) +- target_compile_options(Async++ PRIVATE /GR-) +-elseif(NOT APPLE) +- target_compile_options(Async++ PRIVATE -fno-rtti) ++ if (MSVC) ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE /GR-) ++ elseif(NOT APPLE) ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -fno-rtti) ++ endif() ++# Allow disabling exceptions, but warn the user about the consequences ++ if (NOT USE_CXX_EXCEPTIONS) ++ message(WARNING "Exceptions have been disabled. Any operation that would " ++ "throw an exception will result in a call to std::abort() instead.") ++ target_compile_definitions(${ASYNCXX_SHARED_LIBRARY} PUBLIC LIBASYNC_NO_EXCEPTIONS) ++ if (MSVC) ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PUBLIC /EHs-c-) ++ else() ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PUBLIC -fno-exceptions) ++ endif() ++ endif() ++# /Zc:__cplusplus is required to make __cplusplus accurate ++# /Zc:__cplusplus is available starting with Visual Studio 2017 version 15.7 ++# (according to https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus) ++# That version is equivalent to _MSC_VER==1914 ++# (according to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019) ++# CMake's ${MSVC_VERSION} is equivalent to _MSC_VER ++# (according to https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html#variable:MSVC_VERSION) ++# GREATER and EQUAL are used because GREATER_EQUAL is available starting with CMake 3.7 ++# (according to https://cmake.org/cmake/help/v3.7/release/3.7.html#commands) ++ if ((MSVC) AND ((MSVC_VERSION GREATER 1914) OR (MSVC_VERSION EQUAL 1914))) ++ target_compile_options(${ASYNCXX_SHARED_LIBRARY} PUBLIC /Zc:__cplusplus) ++ endif() ++ list(APPEND TARGET_FILES ${ASYNCXX_SHARED_LIBRARY}) + endif() + +-# Allow disabling exceptions, but warn the user about the consequences +-if (NOT USE_CXX_EXCEPTIONS) +- message(WARNING "Exceptions have been disabled. Any operation that would " +- "throw an exception will result in a call to std::abort() instead.") +- target_compile_definitions(Async++ PUBLIC LIBASYNC_NO_EXCEPTIONS) ++if(${ASYNCXX_BUILD_STATIC}) ++ message(STATUS "Creating static library: ${ASYNCXX_STATIC_LIBRARY}") ++ add_library(${ASYNCXX_STATIC_LIBRARY} STATIC ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE} ${ASYNCXX_SRC}) ++ target_compile_features(${ASYNCXX_STATIC_LIBRARY} PUBLIC cxx_std_14) ++# Async++ only depends on the C++11 standard libraries, but some implementations ++# require the -pthread compiler flag to enable threading functionality. ++ if (NOT MSVC) ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -std=c++11) ++ endif() ++ if (APPLE) ++ # Use libc++ on Mac because the shipped libstdc++ version is ancient ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -stdlib=libc++) ++ set_target_properties(${ASYNCXX_STATIC_LIBRARY} PROPERTIES LINK_FLAGS -stdlib=libc++) ++ endif() ++ target_link_libraries(${ASYNCXX_STATIC_LIBRARY} PUBLIC Threads::Threads) ++# Set up preprocessor definitions ++ target_include_directories(${ASYNCXX_STATIC_LIBRARY} PRIVATE ${PROJECT_SOURCE_DIR}/include) ++ set_target_properties(${ASYNCXX_STATIC_LIBRARY} PROPERTIES DEFINE_SYMBOL LIBASYNC_BUILD) ++ target_compile_definitions(${ASYNCXX_STATIC_LIBRARY} PUBLIC LIBASYNC_STATIC) ++# Enable warnings for strict C++ standard conformance ++ if (NOT MSVC) ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -Wall -Wextra -pedantic) ++ endif() ++# Async++ doesn't make use of RTTI information, so don't generate it. ++# There are issues on Apple platforms with exceptions and -fno-rtti, so keep it ++# enabled there. ++# See https://stackoverflow.com/questions/21737201/problems-throwing-and-catching-exceptions-on-os-x-with-fno-rtti + if (MSVC) +- target_compile_options(Async++ PUBLIC /EHs-c-) +- else() +- target_compile_options(Async++ PUBLIC -fno-exceptions) ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE /GR-) ++ elseif(NOT APPLE) ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -fno-rtti) + endif() ++# Allow disabling exceptions, but warn the user about the consequences ++ if (NOT USE_CXX_EXCEPTIONS) ++ message(WARNING "Exceptions have been disabled. Any operation that would " ++ "throw an exception will result in a call to std::abort() instead.") ++ target_compile_definitions(${ASYNCXX_STATIC_LIBRARY} PUBLIC LIBASYNC_NO_EXCEPTIONS) ++ if (MSVC) ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PUBLIC /EHs-c-) ++ else() ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PUBLIC -fno-exceptions) ++ endif() ++ endif() ++# /Zc:__cplusplus is required to make __cplusplus accurate ++# /Zc:__cplusplus is available starting with Visual Studio 2017 version 15.7 ++# (according to https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus) ++# That version is equivalent to _MSC_VER==1914 ++# (according to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019) ++# CMake's ${MSVC_VERSION} is equivalent to _MSC_VER ++# (according to https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html#variable:MSVC_VERSION) ++# GREATER and EQUAL are used because GREATER_EQUAL is available starting with CMake 3.7 ++# (according to https://cmake.org/cmake/help/v3.7/release/3.7.html#commands) ++ if ((MSVC) AND ((MSVC_VERSION GREATER 1914) OR (MSVC_VERSION EQUAL 1914))) ++ target_compile_options(${ASYNCXX_STATIC_LIBRARY} PUBLIC /Zc:__cplusplus) ++ endif() ++# In *nix systems, the static library can have the same base filename ++# In Windows they need different names ++ if(UNIX) ++ set_target_properties(${ASYNCXX_STATIC_LIBRARY} PROPERTIES ++ OUTPUT_NAME ${ASYNCXX_SHARED_LIBRARY} ++ ) ++ endif() ++ list(APPEND TARGET_FILES ${ASYNCXX_STATIC_LIBRARY}) + endif() + ++# Produce find_package helper config file + include(CMakePackageConfigHelpers) + configure_package_config_file("${CMAKE_CURRENT_LIST_DIR}/Async++Config.cmake.in" + "${PROJECT_BINARY_DIR}/Async++Config.cmake" +@@ -126,22 +218,26 @@ install(FILES "${PROJECT_BINARY_DIR}/Async++Config.cma + + # Install the library and produce a CMake export script + include(GNUInstallDirs) +-install(TARGETS Async++ +- EXPORT Async++ ++install(TARGETS ${TARGET_FILES} ++ EXPORT asyncxx-targets + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + FRAMEWORK DESTINATION Frameworks + ) +-export(EXPORT Async++) +-install(EXPORT Async++ DESTINATION cmake) ++export(EXPORT asyncxx-targets) ++install(EXPORT asyncxx-targets DESTINATION cmake) + if (APPLE AND BUILD_FRAMEWORK) +- set_target_properties(Async++ PROPERTIES OUTPUT_NAME Async++ FRAMEWORK ON) ++ set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES OUTPUT_NAME Async++ FRAMEWORK ON) + set_source_files_properties(${ASYNCXX_INCLUDE} PROPERTIES MACOSX_PACKAGE_LOCATION Headers/async++) + set_source_files_properties(${PROJECT_SOURCE_DIR}/include/async++.h PROPERTIES MACOSX_PACKAGE_LOCATION Headers) + else() +- set_target_properties(Async++ PROPERTIES OUTPUT_NAME async++) +- target_include_directories(Async++ INTERFACE $ $) ++ if(${ASYNCXX_BUILD_SHARED}) ++ target_include_directories(${ASYNCXX_SHARED_LIBRARY} INTERFACE $ $) ++ endif() ++ if(${ASYNCXX_BUILD_STATIC}) ++ target_include_directories(${ASYNCXX_STATIC_LIBRARY} INTERFACE $ $) ++ endif() + install(FILES ${PROJECT_SOURCE_DIR}/include/async++.h DESTINATION include) + install(FILES ${ASYNCXX_INCLUDE} DESTINATION include/async++) + endif() diff --git a/devel/libasyncplusplus/pkg-plist b/devel/libasyncplusplus/pkg-plist index 19177d80ad1e..ebef4a6c9589 100644 --- a/devel/libasyncplusplus/pkg-plist +++ b/devel/libasyncplusplus/pkg-plist @@ -1,5 +1,5 @@ -cmake/Async++-%%CMAKE_BUILD_TYPE%%.cmake -cmake/Async++.cmake +cmake/asyncxx-targets-%%CMAKE_BUILD_TYPE%%.cmake +cmake/asyncxx-targets.cmake cmake/Async++Config.cmake include/async++.h include/async++/aligned_alloc.h @@ -18,3 +18,4 @@ include/async++/task_base.h include/async++/traits.h include/async++/when_all_any.h lib/libasync++.so +%%STATIC%%lib/libasync++.a