aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Lebedev <lebdron@gmail.com>2019-07-03 05:46:14 +0300
committerGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-07-02 19:46:14 -0700
commitf9fedc930cf36ce6cec69a3d09879b3c7f23eb0b (patch)
treead818d85c6209130bc0511ace6b61b951c1f52ba
parent269fa0e6be13ebe64060323579a2af68c0a21e4c (diff)
downloadvcpkg-f9fedc930cf36ce6cec69a3d09879b3c7f23eb0b.tar.gz
vcpkg-f9fedc930cf36ce6cec69a3d09879b3c7f23eb0b.zip
[tbb] Add shared library support for Linux and OSX (#6510)
* [tbb] Add shared library support for Linux and OSX Signed-off-by: Andrei Lebedev <lebdron@gmail.com> * Remove whitespace * Simplify string replace * Revert removal of lib exts
-rw-r--r--ports/tbb/CMakeLists.txt5
-rw-r--r--ports/tbb/CONTROL2
-rw-r--r--ports/tbb/portfile.cmake8
3 files changed, 9 insertions, 6 deletions
diff --git a/ports/tbb/CMakeLists.txt b/ports/tbb/CMakeLists.txt
index cc1dd3933..7216e3474 100644
--- a/ports/tbb/CMakeLists.txt
+++ b/ports/tbb/CMakeLists.txt
@@ -4,7 +4,10 @@ file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*)
file(COPY ${SOURCES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/src)
include(${CMAKE_CURRENT_BINARY_DIR}/src/cmake/TBBBuild.cmake REQUIRED)
-tbb_build(TBB_ROOT ${CMAKE_CURRENT_BINARY_DIR}/src MAKE_ARGS extra_inc=big_iron.inc)
+if(NOT BUILD_SHARED_LIBS)
+ set(TBB_STATIC_INCLUDE extra_inc=big_iron.inc)
+endif()
+tbb_build(TBB_ROOT ${CMAKE_CURRENT_BINARY_DIR}/src MAKE_ARGS ${TBB_STATIC_INCLUDE})
set(SUBDIR ${CMAKE_CURRENT_BINARY_DIR}/tbb_cmake_build/tbb_cmake_build_subdir)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
diff --git a/ports/tbb/CONTROL b/ports/tbb/CONTROL
index e3ae78936..39c34d784 100644
--- a/ports/tbb/CONTROL
+++ b/ports/tbb/CONTROL
@@ -1,4 +1,4 @@
Source: tbb
-Version: 2019_U7
+Version: 2019_U7-1
Homepage: https://github.com/01org/tbb
Description: Intel's Threading Building Blocks.
diff --git a/ports/tbb/portfile.cmake b/ports/tbb/portfile.cmake
index 119916757..4030bec4b 100644
--- a/ports/tbb/portfile.cmake
+++ b/ports/tbb/portfile.cmake
@@ -78,14 +78,14 @@ string(REPLACE
"${_contents}"
)
string(REPLACE
- "set(_tbb_release_lib \"/${TBB_LIB_PREFIX}\${_tbb_component}.${TBB_LIB_EXT}\")"
- "set(_tbb_release_lib \"\${_tbb_root}/lib/${TBB_LIB_PREFIX}\${_tbb_component}.${TBB_LIB_EXT}\")"
+ "set(_tbb_release_lib \"/${TBB_LIB_PREFIX}"
+ "set(_tbb_release_lib \"\${_tbb_root}/lib/${TBB_LIB_PREFIX}"
_contents
"${_contents}"
)
string(REPLACE
- "set(_tbb_debug_lib \"/${TBB_LIB_PREFIX}\${_tbb_component}_debug.${TBB_LIB_EXT}\")"
- "set(_tbb_debug_lib \"\${_tbb_root}/debug/lib/${TBB_LIB_PREFIX}\${_tbb_component}_debug.${TBB_LIB_EXT}\")"
+ "set(_tbb_debug_lib \"/${TBB_LIB_PREFIX}"
+ "set(_tbb_debug_lib \"\${_tbb_root}/debug/lib/${TBB_LIB_PREFIX}"
_contents
"${_contents}"
)