2022-12-07 20:16:34 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pthreadpool
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-04-25 13:16:50 +02:00
|
|
|
PTHREADPOOL_VERSION = edeb5d6b967bef092ff195ab40e216fa5ac11f61
|
2022-12-07 20:16:34 +01:00
|
|
|
PTHREADPOOL_SITE = $(call github,Maratyszcza,pthreadpool,$(PTHREADPOOL_VERSION))
|
|
|
|
PTHREADPOOL_LICENSE = BSD-2-Clause
|
|
|
|
PTHREADPOOL_LICENSE_FILES = LICENSE
|
2023-04-25 13:16:50 +02:00
|
|
|
PTHREADPOOL_INSTALL_STAGING = YES
|
2022-12-07 20:16:34 +01:00
|
|
|
PTHREADPOOL_DEPENDENCIES = fxdiv
|
|
|
|
|
2023-04-25 13:16:50 +02:00
|
|
|
PTHREADPOOL_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
PTHREADPOOL_CXXFLAGS = $(TARGET_CXXFLAGS)
|
2022-12-07 20:16:34 +01:00
|
|
|
|
2023-04-25 13:16:50 +02:00
|
|
|
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
|
2022-12-07 20:16:34 +01:00
|
|
|
|
|
|
|
$(eval $(cmake-package))
|