summaryrefslogtreecommitdiffstats
path: root/src/qca.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-03-26 05:01:19 (GMT)
committerBoris Pek <tehnick-8@yandex.ru>2017-03-29 09:55:16 (GMT)
commit946dbbec0f5dc5eb144b26b29da771e5dde37c69 (patch)
treeb673c4049d80b6df0098f129fd128ec48e12ffc0 /src/qca.mk
parent68f5df67445b142c2948f7b013402b8ec4939aee (diff)
downloadmxe-946dbbec0f5dc5eb144b26b29da771e5dde37c69.zip
mxe-946dbbec0f5dc5eb144b26b29da771e5dde37c69.tar.gz
mxe-946dbbec0f5dc5eb144b26b29da771e5dde37c69.tar.bz2
qca: install pkg-config file and add test
N.B. test fails with undefined references
Diffstat (limited to 'src/qca.mk')
-rw-r--r--src/qca.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qca.mk b/src/qca.mk
index baa28a5..0b7b550 100644
--- a/src/qca.mk
+++ b/src/qca.mk
@@ -15,6 +15,7 @@ define $(PKG)_BUILD
-DBUILD_TOOLS=OFF \
-DUSE_RELATIVE_PATHS=OFF \
-DBUILD_PLUGINS="auto" \
+ -DINSTAL_PKGCONFIG=ON \
-DQCA_MAN_INSTALL_DIR="$(BUILD_DIR)/null"
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
@@ -24,5 +25,12 @@ define $(PKG)_BUILD
cd '$(BUILD_DIR)/test-qca' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake' '$(PWD)/src/qca-test.pro'
$(MAKE) -C '$(BUILD_DIR)/test-qca' -j $(JOBS) $(BUILD_TYPE)
$(INSTALL) -m755 '$(BUILD_DIR)/test-qca/$(BUILD_TYPE)/test-qca5.exe' '$(PREFIX)/$(TARGET)/bin/')
+
+ # compile test
+ '$(TARGET)-g++' \
+ -W -Wall -Werror \
+ '$(SOURCE_DIR)/examples/base64test/base64test.cpp' \
+ -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
+ `'$(TARGET)-pkg-config' qca2-qt5 --cflags --libs`
endef