2018-08-28 23:19:08 -07:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2019-05-02 22:57:43 -07:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2017-06-09 19:34:07 -07:00
|
|
|
endif()
|
2017-05-22 11:57:19 +02:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
[many ports] Updates 2019.05.24 (#6618)
* [many ports] Updates 2019.05.24
* Update SHA512 and resolve conflict for ebml and matroska
* [avro-c]Fix build error caused by jansson upgrades.
* [xxhash]Update to the next version to fix build error.(xxhash issue:#179)
* Fix failures and undo asio
* [libyaml, grpc, miniz, paho-mqtt, sqlitecpp] Update patches
* Update REF
* Undo nvtt flann itk libtins aws-sdk-cpp openvdb vlpp xmsh changes
* [flann, fastcdr] Fix old patches and build error.
* [flann, fastcdr] Fix build error.
* Fix ensmallen uvatlas cppcms libplist failures and undo aws-c-common libopusenc arb taglib changes
* [dcmtk, draco, flatbuffers, forge, ftgl, mosquitto,nmslib, ogre] Update old patches and fix build error.
* fix libusbmuxd failures and undo xxhash paho-mqtt mongo-c-driver flann libffi
* fix libimobiledevice and undo qhull harfbuzz lcm libbson draco flatbuffers
* undo libmupdf forge kd-soap qca
* [mosquitto] Fix installation of import libs
* [arb][asio][aws-c-common][collada-dom][concurrentqueue][cryptopp][ebml] Revert trivial/undesired changes
* [fastcdr] Minimize patch
* [many ports] Revert trivial changes
* [libyaml] Switch to non-dist tag
* [sqlite-modern-cpp] Track master due to infrequent release
* [nano-signal-slot] Revert downgrade
* [openvpn3] Bump control version to account for portfile change
* [sqlite-modern-cpp] Fixup wrong hash
* [mosquitto] Commit missing patch
2019-06-10 17:01:54 -07:00
|
|
|
REPO intel/tbb
|
2019-08-24 13:43:57 -07:00
|
|
|
REF 4bdba61bafc6ba2d636f31564f1de5702d365cf7
|
|
|
|
SHA512 0b00c9deefdac5dc1f4fbae314e91eb3513b54b47ff6dec08ed2460486fc7d211ab36d6130e5787bfd50523cb613c65f03f9217d967292ca9056e2d3f5010bf8
|
2019-03-26 12:13:42 -05:00
|
|
|
HEAD_REF tbb_2019
|
2018-08-28 23:19:08 -07:00
|
|
|
)
|
2017-05-22 11:57:19 +02:00
|
|
|
|
2018-08-28 23:19:08 -07:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2016-10-18 22:53:41 +01:00
|
|
|
|
2018-08-28 23:19:08 -07:00
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
2017-12-15 17:59:11 +08:00
|
|
|
|
2018-08-28 23:19:08 -07:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-04-08 23:23:31 -07:00
|
|
|
# Settings for TBBConfigInternal.cmake.in
|
2018-08-28 23:19:08 -07:00
|
|
|
set(TBB_LIB_EXT a)
|
|
|
|
set(TBB_LIB_PREFIX lib)
|
|
|
|
else()
|
|
|
|
if (VCPKG_CRT_LINKAGE STREQUAL static)
|
|
|
|
set(RELEASE_CONFIGURATION Release-MT)
|
|
|
|
set(DEBUG_CONFIGURATION Debug-MT)
|
|
|
|
else()
|
|
|
|
set(RELEASE_CONFIGURATION Release)
|
|
|
|
set(DEBUG_CONFIGURATION Debug)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_install_msbuild(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PROJECT_SUBPATH build/vs2013/makefile.sln
|
|
|
|
RELEASE_CONFIGURATION ${RELEASE_CONFIGURATION}
|
|
|
|
DEBUG_CONFIGURATION ${DEBUG_CONFIGURATION}
|
|
|
|
)
|
2019-04-08 23:23:31 -07:00
|
|
|
# Settings for TBBConfigInternal.cmake.in
|
2018-08-28 23:19:08 -07:00
|
|
|
set(TBB_LIB_EXT lib)
|
|
|
|
set(TBB_LIB_PREFIX)
|
|
|
|
endif()
|
2016-10-18 22:53:41 +01:00
|
|
|
|
2016-10-18 17:14:54 -07:00
|
|
|
file(COPY
|
|
|
|
${SOURCE_PATH}/include/tbb
|
|
|
|
${SOURCE_PATH}/include/serial
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
|
|
|
|
2019-04-08 23:23:31 -07:00
|
|
|
# Settings for TBBConfigInternal.cmake.in
|
2018-08-28 23:19:08 -07:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
set(TBB_DEFAULT_COMPONENTS tbb tbbmalloc)
|
|
|
|
else()
|
|
|
|
set(TBB_DEFAULT_COMPONENTS tbb tbbmalloc tbbmalloc_proxy)
|
|
|
|
endif()
|
2019-04-02 18:05:23 -07:00
|
|
|
|
2018-08-28 23:19:08 -07:00
|
|
|
file(READ "${SOURCE_PATH}/include/tbb/tbb_stddef.h" _tbb_stddef)
|
|
|
|
string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" _tbb_ver_major "${_tbb_stddef}")
|
|
|
|
string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" _tbb_ver_minor "${_tbb_stddef}")
|
|
|
|
string(REGEX REPLACE ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" TBB_INTERFACE_VERSION "${_tbb_stddef}")
|
|
|
|
set(TBB_VERSION "${_tbb_ver_major}.${_tbb_ver_minor}")
|
|
|
|
set(TBB_RELEASE_DIR "\${_tbb_root}/lib")
|
|
|
|
set(TBB_DEBUG_DIR "\${_tbb_root}/debug/lib")
|
2017-06-07 19:33:21 +02:00
|
|
|
|
2018-08-28 23:19:08 -07:00
|
|
|
configure_file(
|
2019-04-08 23:23:31 -07:00
|
|
|
${SOURCE_PATH}/cmake/templates/TBBConfigInternal.cmake.in
|
2018-08-28 23:19:08 -07:00
|
|
|
${CURRENT_PACKAGES_DIR}/share/tbb/TBBConfig.cmake
|
|
|
|
@ONLY
|
|
|
|
)
|
|
|
|
file(READ ${CURRENT_PACKAGES_DIR}/share/tbb/TBBConfig.cmake _contents)
|
2017-06-07 19:33:21 +02:00
|
|
|
string(REPLACE
|
2018-08-28 23:19:08 -07:00
|
|
|
"get_filename_component(_tbb_root \"\${_tbb_root}\" PATH)"
|
|
|
|
"get_filename_component(_tbb_root \"\${_tbb_root}\" PATH)\nget_filename_component(_tbb_root \"\${_tbb_root}\" PATH)"
|
|
|
|
_contents
|
|
|
|
"${_contents}"
|
|
|
|
)
|
2019-04-08 23:23:31 -07:00
|
|
|
string(REPLACE
|
2019-07-03 05:46:14 +03:00
|
|
|
"set(_tbb_release_lib \"/${TBB_LIB_PREFIX}"
|
|
|
|
"set(_tbb_release_lib \"\${_tbb_root}/lib/${TBB_LIB_PREFIX}"
|
2019-04-08 23:23:31 -07:00
|
|
|
_contents
|
|
|
|
"${_contents}"
|
|
|
|
)
|
|
|
|
string(REPLACE
|
2019-07-03 05:46:14 +03:00
|
|
|
"set(_tbb_debug_lib \"/${TBB_LIB_PREFIX}"
|
|
|
|
"set(_tbb_debug_lib \"\${_tbb_root}/debug/lib/${TBB_LIB_PREFIX}"
|
2019-04-08 23:23:31 -07:00
|
|
|
_contents
|
|
|
|
"${_contents}"
|
|
|
|
)
|
2018-08-28 23:19:08 -07:00
|
|
|
string(REPLACE "SHARED IMPORTED)" "UNKNOWN IMPORTED)" _contents "${_contents}")
|
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/tbb/TBBConfig.cmake "${_contents}")
|
2016-10-18 22:53:41 +01:00
|
|
|
|
|
|
|
# Handle copyright
|
2018-08-28 23:19:08 -07:00
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/tbb)
|
2016-10-18 17:14:54 -07:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/tbb/LICENSE ${CURRENT_PACKAGES_DIR}/share/tbb/copyright)
|
2018-08-28 23:19:08 -07:00
|
|
|
|
|
|
|
vcpkg_test_cmake(PACKAGE_NAME TBB)
|
2019-03-26 12:13:42 -05:00
|
|
|
#
|