OpenVoiceOS/buildroot-external/package/pthreadpool/pthreadpool.mk

34 lines
1.1 KiB
Makefile

################################################################################
#
# pthreadpool
#
################################################################################
PTHREADPOOL_VERSION = edeb5d6b967bef092ff195ab40e216fa5ac11f61
PTHREADPOOL_SITE = $(call github,Maratyszcza,pthreadpool,$(PTHREADPOOL_VERSION))
PTHREADPOOL_LICENSE = BSD-2-Clause
PTHREADPOOL_LICENSE_FILES = LICENSE
PTHREADPOOL_INSTALL_STAGING = YES
PTHREADPOOL_DEPENDENCIES = fxdiv
PTHREADPOOL_CFLAGS = $(TARGET_CFLAGS)
PTHREADPOOL_CXXFLAGS = $(TARGET_CXXFLAGS)
ifeq ($(BR2_PACKAGE_CPUINFO),y)
PTHREADPOOL_DEPENDENCIES += cpuinfo
PTHREADPOOL_CFLAGS += -DPTHREADPOOL_USE_CPUINFO=1
PTHREADPOOL_CXXFLAGS += -DPTHREADPOOL_USE_CPUINFO=1
else
PTHREADPOOL_CFLAGS += -DPTHREADPOOL_USE_CPUINFO=0
PTHREADPOOL_CXXFLAGS += -DPTHREADPOOL_USE_CPUINFO=0
endif
PTHREADPOOL_CONF_OPTS = \
-DCMAKE_C_FLAGS="$(PTHREADPOOL_CFLAGS)" \
-DCMAKE_CXX_FLAGS="$(PTHREADPOOL_CXXFLAGS)" \
-DFXDIV_SOURCE_DIR="$(FXDIV_DIR)" \
-DPTHREADPOOL_BUILD_TESTS=OFF \
-DPTHREADPOOL_BUILD_BENCHMARKS=OFF
$(eval $(cmake-package))