aboutsummaryrefslogtreecommitdiff
path: root/ports/tbb
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-10-18 17:05:14 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-10-18 17:05:14 -0700
commit30caaacb51630ebbb79b1609d11f79ca34cd1e9e (patch)
tree736601c34bde00f908f5ff8a7ec4e88b91677c8b /ports/tbb
parentaa63bb1e916a7482b0181a1eae2b61dbc516a3e2 (diff)
downloadvcpkg-30caaacb51630ebbb79b1609d11f79ca34cd1e9e.tar.gz
vcpkg-30caaacb51630ebbb79b1609d11f79ca34cd1e9e.zip
[tbb] Rename package to 'tbb'
Diffstat (limited to 'ports/tbb')
-rw-r--r--ports/tbb/CONTROL3
-rw-r--r--ports/tbb/portfile.cmake41
2 files changed, 44 insertions, 0 deletions
diff --git a/ports/tbb/CONTROL b/ports/tbb/CONTROL
new file mode 100644
index 000000000..b82b70555
--- /dev/null
+++ b/ports/tbb/CONTROL
@@ -0,0 +1,3 @@
+Source: tbb
+Version: 20160916
+Description: Intel's Threading Building Blocks.
diff --git a/ports/tbb/portfile.cmake b/ports/tbb/portfile.cmake
new file mode 100644
index 000000000..315010ba1
--- /dev/null
+++ b/ports/tbb/portfile.cmake
@@ -0,0 +1,41 @@
+# Common Ambient Variables:
+# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
+# TARGET_TRIPLET is the current triplet (x86-windows, etc)
+# PORT is the current port name (zlib, etc)
+# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
+# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
+#
+
+include(${CMAKE_TRIPLET_FILE})
+include(vcpkg_common_functions)
+
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tbb2017_20160916oss)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://www.threadingbuildingblocks.org/sites/default/files/software_releases/windows/tbb2017_20160916oss_win_1.zip"
+ FILENAME "tbb2017_20160916oss_win_1.zip"
+ SHA512 14bbc54aa0c4506bab6e6fdb7e9e562cbc88881cb683a8bd690e3101177e55433f25a2143e7af1ed52edacb44dc92fab354e1f2101bc13b33b3ea137def8bdd1
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+# Installation
+message(STATUS "Installing")
+file(COPY ${SOURCE_PATH}/bin DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
+file(COPY ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+file(COPY ${SOURCE_PATH}/lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
+
+# Remove artefacts for other architectures
+if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/bin/ia32)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/lib/ia32)
+else()
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/bin/intel64)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/lib/intel64)
+endif()
+
+vcpkg_copy_pdbs()
+
+message(STATUS "Installing done")
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/tbb-20160916)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/tbb-20160916/LICENSE ${CURRENT_PACKAGES_DIR}/share/tbb-20160916/copyright)