Last active
January 22, 2020 07:20
-
-
Save bamkrs/c6a5825734fb3eb51c23a33d0f8c83f4 to your computer and use it in GitHub Desktop.
oatpp OpenWRT Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Author: Benedikt-Alexander Mokroß <bam@icognize.de> | |
# | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=oatpp | |
PKG_VERSION:=0.19.12 | |
PKG_RELEASE=6 | |
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | |
PKG_SOURCE_PROTO:=git | |
PKG_SOURCE_URL:=https://github.com/oatpp/oatpp.git | |
PKG_SOURCE_VERSION:=884e1683c05742bc412f815d8b03047de496120b | |
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | |
PKG_LICENSE:=APACHE-2.0 | |
CMAKE_INSTALL:=1 | |
include $(INCLUDE_DIR)/package.mk | |
include $(INCLUDE_DIR)/cmake.mk | |
define Package/oatpp | |
SECTION:=iheadx | |
CATEGORY:=iCOGNIZE | |
SUBMENU:=Firmware | |
DEFAULT:=y | |
TITLE:=oat++ | |
ABI_VERSION:=$(PKG_VERSION) | |
DEPENDS:=+libatomic +libstdcpp | |
endef | |
define Package/oatpp-test | |
SECTION:=iheadx | |
CATEGORY:=iCOGNIZE | |
SUBMENU:=Firmware | |
DEFAULT:=m | |
TITLE:=oat++-test | |
ABI_VERSION:=$(PKG_VERSION) | |
DEPENDS:=+libatomic +oatpp +libstdcpp | |
endef | |
define Package/oatpp/description | |
Light, high-performance web framework. Create bleedingly-fast web-services. Organic. Pure C++. Cross-platform. Linux/Unix/Windows. | |
endef | |
define Package/oatpp-test/description | |
Tests for oat++ | |
endef | |
CMAKE_OPTIONS= \ | |
-DOATPP_DISABLE_POOL_ALLOCATIONS=ON | |
define Package/oatpp/install | |
$(INSTALL_DIR) $(1)/usr/lib | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/oatpp-$(PKG_VERSION)/liboatpp.a $(1)/usr/lib/ | |
endef | |
define Package/oatpp-test/install | |
$(INSTALL_DIR) $(1)/usr/lib | |
$(INSTALL_DIR) $(1)/usr/bin | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/oatpp-$(PKG_VERSION)/liboatpp-test.a $(1)/usr/lib/ | |
$(CP) $(PKG_BUILD_DIR)/test/oatppAllTests $(1)/usr/bin/ | |
endef | |
$(eval $(call BuildPackage,oatpp)) | |
$(eval $(call BuildPackage,oatpp-test)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment