diff options
| author | Alexander Neumann <alexander.neumann@hamburg.de> | 2019-09-20 12:24:23 +0200 |
|---|---|---|
| committer | Alexander Neumann <alexander.neumann@hamburg.de> | 2019-09-20 12:24:23 +0200 |
| commit | 5b1e426929b40a9b60809284993b424b841a28fc (patch) | |
| tree | bd12300ad859bababb7d4acc03700fd31949fddc /ports/parallelstl | |
| parent | 279e25aecfe30f55296881ea9b0236c1d6ee030a (diff) | |
| parent | 358ec0954d9b71b0def4fd4b4dbafdd0b8478d81 (diff) | |
| download | vcpkg-5b1e426929b40a9b60809284993b424b841a28fc.tar.gz vcpkg-5b1e426929b40a9b60809284993b424b841a28fc.zip | |
Merge remote-tracking branch 'upstream/master' into path_separator
# Conflicts:
# scripts/cmake/vcpkg_common_definitions.cmake
Diffstat (limited to 'ports/parallelstl')
| -rw-r--r-- | ports/parallelstl/CONTROL | 5 | ||||
| -rw-r--r-- | ports/parallelstl/fix-install-header.patch | 12 | ||||
| -rw-r--r-- | ports/parallelstl/portfile.cmake | 27 |
3 files changed, 44 insertions, 0 deletions
diff --git a/ports/parallelstl/CONTROL b/ports/parallelstl/CONTROL new file mode 100644 index 000000000..6361e1bd9 --- /dev/null +++ b/ports/parallelstl/CONTROL @@ -0,0 +1,5 @@ +Source: parallelstl
+Version: 20190522-1
+Homepage: https://github.com/intel/parallelstl
+Description: Parallel STL is an implementation of the C++ standard library algorithms with support for execution policies, as specified in ISO/IEC 14882:2017 standard, commonly called C++17.
+Build-Depends: tbb
\ No newline at end of file diff --git a/ports/parallelstl/fix-install-header.patch b/ports/parallelstl/fix-install-header.patch new file mode 100644 index 000000000..cf2e11618 --- /dev/null +++ b/ports/parallelstl/fix-install-header.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c20a5c3..1ba8583 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -74,3 +74,6 @@ configure_file(
+
+ export(TARGETS ParallelSTL NAMESPACE pstl:: FILE ParallelSTLTargets.cmake)
+ export(PACKAGE ParallelSTL)
++
++#Install headers
++install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include DESTINATION include)
+\ No newline at end of file
diff --git a/ports/parallelstl/portfile.cmake b/ports/parallelstl/portfile.cmake new file mode 100644 index 000000000..8c906fee2 --- /dev/null +++ b/ports/parallelstl/portfile.cmake @@ -0,0 +1,27 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO intel/parallelstl
+ REF 20190522
+ SHA512 ad1b820ff4c2ce45ea3d6069dc8d5219449baca44d0bce86482aca247db7a4191e2bce10ab8365056ca278322809fdbb096519436e850cf95f2bb98fa7bc1ab1
+ HEAD_REF master
+ PATCHES fix-install-header.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DPARALLELSTL_USE_PARALLEL_POLICIES=ON
+)
+
+vcpkg_install_cmake()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
\ No newline at end of file |
