diff options
author | Tony Theodore <tonyt@logyst.com> | 2017-08-27 05:27:38 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2017-08-27 05:27:38 (GMT) |
commit | d6abbcea56e02f6e30cde50418376c1b8ef0d9e2 (patch) | |
tree | 9c5f6a118c5c577f96dc98f694cbd33c29814aa3 /src | |
parent | 454790e265d91cba274983a29e162bda3c9c7105 (diff) | |
download | mxe-d6abbcea56e02f6e30cde50418376c1b8ef0d9e2.zip mxe-d6abbcea56e02f6e30cde50418376c1b8ef0d9e2.tar.gz mxe-d6abbcea56e02f6e30cde50418376c1b8ef0d9e2.tar.bz2 |
add Intel Threading Building Blocks package
Diffstat (limited to 'src')
-rw-r--r-- | src/intel-tbb.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/intel-tbb.mk b/src/intel-tbb.mk new file mode 100644 index 0000000..99873c8 --- /dev/null +++ b/src/intel-tbb.mk @@ -0,0 +1,34 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := intel-tbb +$(PKG)_WEBSITE := https://www.threadingbuildingblocks.org +$(PKG)_DESCR := Intel Threading Building Blocks +$(PKG)_IGNORE := +$(PKG)_VERSION := c28c8be +$(PKG)_CHECKSUM := 95e45abe3cb6dc685c75df88f18b5f1be178a74bbf112ec69d51a9fd80a063ae +$(PKG)_GH_CONF := wjakob/tbb/master +$(PKG)_DEPS := gcc + +define $(PKG)_BUILD + # build and install the library + cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \ + -DTBB_BUILD_SHARED=$(CMAKE_SHARED_BOOL) \ + -DTBB_BUILD_STATIC=$(CMAKE_STATIC_BOOL) \ + -DTBB_BUILD_TESTS=OFF + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' + $(MAKE) -C '$(BUILD_DIR)' -j 1 install + + # create pkg-config files + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + (echo 'Name: $(PKG)'; \ + echo 'Version: $($(PKG)_VERSION)'; \ + echo 'Description: intel-tbb'; \ + echo 'Libs: $(addsuffix $(if $(BUILD_STATIC),_static),-ltbb -ltbbmalloc -ltbbmalloc_proxy)';) \ + > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc' + + # compile test + '$(TARGET)-g++' -W -Wall \ + '$(SOURCE_DIR)/examples/test_all/fibonacci/Fibonacci.cpp' \ + -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' $(PKG) --cflags --libs` +endef |