mxe/src/qhttpengine.mk

22 lines
769 B
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2015-07-19 08:20:20 +01:00
PKG := qhttpengine
$(PKG)_WEBSITE := https://github.com/nitroshare/qhttpengine
2015-07-19 08:20:20 +01:00
$(PKG)_IGNORE :=
2018-03-15 08:32:48 +00:00
$(PKG)_VERSION := 1.0.1
$(PKG)_CHECKSUM := 6505cf889909dc29bab4069116656e7ca5a9e879f04935139439c5691a76c55e
$(PKG)_GH_CONF := nitroshare/qhttpengine/tags
$(PKG)_DEPS := cc qtbase
2015-07-19 08:20:20 +01:00
define $(PKG)_BUILD
2018-03-15 08:32:48 +00:00
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
2015-07-19 08:20:20 +01:00
2018-03-15 08:32:48 +00:00
# compile test
'$(TARGET)-g++' \
-W -Wall -Werror -std=c++11 \
'$(SOURCE_DIR)/examples/auth/server.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
2015-07-19 08:20:20 +01:00
endef