faster to compile. A small selection of packages was tested going from: Executed in 696.30 secs fish external usr time 82.98 mins 395.00 micros 82.98 mins sys time 9.02 mins 0.00 micros 9.02 mins to: Executed in 592.20 secs fish external usr time 84.84 mins 361.00 micros 84.84 mins sys time 8.85 mins 57.00 micros 8.85 mins Tested by running make -j 12 and wiping staging/build_dir/target_x Signed-off-by: Rosen Penev <rosenp@gmail.com>
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
#
|
|
# Copyright © 2020 David Woodhouse <dwmw2@infradead.org>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=cereal
|
|
PKG_VERSION:=1.3.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/USCiLab/cereal/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5
|
|
|
|
PKG_MAINTAINER:=David Woodhouse <dwmw2@infradead.org>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../devel/ninja/ninja-cmake.mk
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DCMAKE_CXX_FLAGS=-latomic \
|
|
-DJUST_INSTALL_CEREAL=ON \
|
|
-DSKIP_PORTABILITY_TEST=ON \
|
|
-DSKIP_PERFORMANCE_COMPARISON=ON \
|
|
-DWITH_WERROR=OFF
|
|
|
|
define Package/cereal
|
|
BUILDONLY:=1
|
|
SECTION:=devel
|
|
CATEGORY:=Development
|
|
SUBMENU:=Libraries
|
|
TITLE:=Cereal is a library of C++ header files for serialization
|
|
URL:=https://github.com/USCilab/cereal
|
|
endef
|
|
|
|
|
|
define Package/cereal/description
|
|
Cereal is a library of C++ headers for serialization
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,cereal))
|