early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,15 @@
diff --git a/cmake/FindHwloc.cmake b/cmake/FindHwloc.cmake
index cdede78..6967abf 100644
--- a/cmake/FindHwloc.cmake
+++ b/cmake/FindHwloc.cmake
@@ -71,6 +71,9 @@ if(NOT TARGET Hwloc::hwloc)
add_library(Hwloc::hwloc INTERFACE IMPORTED)
target_include_directories(Hwloc::hwloc SYSTEM INTERFACE ${HWLOC_INCLUDE_DIR})
target_link_libraries(Hwloc::hwloc INTERFACE ${HWLOC_LIBRARIES})
-
+ if(APPLE)
+ target_link_libraries(Hwloc::hwloc INTERFACE "-framework CoreFoundation" "-framework IOKit")
+ endif()
+
mark_as_advanced(HWLOC_ROOT HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
endif()

99
externals/vcpkg/ports/hpx/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,99 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO STEllAR-GROUP/hpx
REF f48c81865800ae72618b40b4e79d4168cfb0bd56
SHA512 06d1384615b327194d871145c1899317bd350c43a072be2cbfdc773f7869b71aafce3e9cabf835a8fe902a13d7050d5e0400a76f74023985575347a645196b1d
HEAD_REF stable
PATCHES
fix-dependency-hwloc.patch
)
set(HPX_WITH_MALLOC system)
if(VCPKG_TARGET_IS_LINUX)
# This is done at the request of the hpx maintainers; see
# https://github.com/microsoft/vcpkg/pull/21673#issuecomment-979904882
# It must match when gperftools is treated as a dependency of this port.
set(HPX_WITH_MALLOC tcmalloc)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DHPX_WITH_VCPKG=ON
-DHPX_WITH_TESTS=OFF
-DHPX_WITH_EXAMPLES=OFF
-DHPX_WITH_TOOLS=OFF
-DHPX_WITH_RUNTIME=OFF
-DHPX_USE_CMAKE_CXX_STANDARD=ON
"-DHPX_WITH_MALLOC=${HPX_WITH_MALLOC}"
)
vcpkg_cmake_install()
# post build cleanup
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/HPX)
file(GLOB_RECURSE CMAKE_FILES "${CURRENT_PACKAGES_DIR}/share/hpx/*.cmake")
foreach(CMAKE_FILE IN LISTS CMAKE_FILES)
file(READ ${CMAKE_FILE} _contents)
string(REGEX REPLACE
"lib/([A-Za-z0-9_.-]+\\.dll)"
"bin/\\1"
_contents "${_contents}")
string(REGEX REPLACE
"lib/hpx/([A-Za-z0-9_.-]+\\.dll)"
"bin/hpx/\\1"
_contents "${_contents}")
file(WRITE ${CMAKE_FILE} "${_contents}")
endforeach()
vcpkg_replace_string(
"${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXConfig.cmake"
"set(HPX_BUILD_TYPE \"Release\")"
"set(HPX_BUILD_TYPE \"\${CMAKE_BUILD_TYPE}\")")
vcpkg_replace_string(
"${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXMacros.cmake"
"set(CMAKE_MODULE_PATH \${CMAKE_MODULE_PATH}"
"list(APPEND CMAKE_MODULE_PATH")
file(INSTALL
"${SOURCE_PATH}/LICENSE_1_0.txt"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/lib/*.dll")
if(DLLS)
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
file(REMOVE ${DLLS})
endif()
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/lib/hpx/*.dll")
if(DLLS)
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/bin/hpx")
file(REMOVE ${DLLS})
endif()
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll")
if(DLLS)
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
file(REMOVE ${DLLS})
endif()
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/debug/lib/hpx/*.dll")
if(DLLS)
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin/hpx")
file(REMOVE ${DLLS})
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_fixup_pkgconfig()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/hpxcxx" "\"${CURRENT_PACKAGES_DIR}\"" "os.path.dirname(os.path.dirname(os.path.realpath(__file__)))")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/hpxcxx" "\"${CURRENT_PACKAGES_DIR}/debug\"" "os.path.dirname(os.path.dirname(os.path.realpath(__file__)))")
vcpkg_copy_pdbs()

40
externals/vcpkg/ports/hpx/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,40 @@
{
"name": "hpx",
"version": "1.8.0",
"description": [
"The C++ Standards Library for Concurrency and Parallelism",
"HPX is a C++ Standards Library for Concurrency and Parallelism. It implements all of the corresponding facilities as defined by the C++ Standard. Additionally, in HPX we implement functionalities proposed as part of the ongoing C++ standardization process. We also extend the C++ Standard APIs to the distributed case."
],
"homepage": "https://github.com/STEllAR-GROUP/hpx",
"license": "BSL-1.0",
"dependencies": [
"asio",
"boost-accumulators",
"boost-config",
"boost-context",
"boost-dynamic-bitset",
"boost-exception",
"boost-filesystem",
"boost-iostreams",
"boost-lockfree",
"boost-range",
"boost-spirit",
"boost-system",
"boost-throw-exception",
"boost-variant",
"boost-winapi",
{
"name": "gperftools",
"platform": "linux"
},
"hwloc",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}