1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# gflags 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunGFLAGS_VERSION = 2.2.2 8*4882a593SmuzhiyunGFLAGS_SITE = $(call github,gflags,gflags,v$(GFLAGS_VERSION)) 9*4882a593SmuzhiyunGFLAGS_INSTALL_STAGING = YES 10*4882a593SmuzhiyunGFLAGS_LICENSE = BSD-3-Clause 11*4882a593SmuzhiyunGFLAGS_LICENSE_FILES = COPYING.txt 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun# Force Release otherwise libraries will be suffixed by _debug which will raise 14*4882a593Smuzhiyun# unexpected build failures with packages that use gflags (e.g. rocksdb) 15*4882a593SmuzhiyunGFLAGS_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release 16*4882a593Smuzhiyun 17*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) 18*4882a593SmuzhiyunGFLAGS_CONF_OPTS += -DBUILD_gflags_LIB=OFF \ 19*4882a593Smuzhiyun -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -DNO_THREADS" 20*4882a593Smuzhiyunendif 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun$(eval $(cmake-package)) 23