mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
abseil-cpp: fix build and add package install
- propagate CXX flag to compile correctly with protobuf - add missing install section Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
This commit is contained in:
committed by
Josef Schlehofer
parent
2b7ca411ec
commit
871198504d
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=abseil-cpp
|
||||
PKG_VERSION:=20240722.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/abseil/abseil-cpp/releases/download/$(PKG_VERSION)
|
||||
@@ -35,17 +35,22 @@ endef
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
CMAKE_HOST_OPTIONS += \
|
||||
-DCMAKE_CXX_STANDARD=14 \
|
||||
-DABSL_PROPAGATE_CXX_STD=ON \
|
||||
-DABSL_ENABLE_INSTALL=ON \
|
||||
-DABSL_USE_GOOGLETEST_HEAD=OFF
|
||||
|
||||
CMAKE_OPTIONS += \
|
||||
-DCMAKE_CXX_STANDARD=14 \
|
||||
-DABSL_PROPAGATE_CXX_STD=ON \
|
||||
-DABSL_ENABLE_INSTALL=ON \
|
||||
-DABSL_USE_GOOGLETEST_HEAD=OFF
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Package/abseil-cpp/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.a $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(call Build/InstallDev/cmake,$(1))
|
||||
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/absl_*.pc
|
||||
|
||||
Reference in New Issue
Block a user