summaryrefslogtreecommitdiffstats
path: root/src/qca.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/qca.mk')
-rw-r--r--src/qca.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qca.mk b/src/qca.mk
index 00ac124..438163d 100644
--- a/src/qca.mk
+++ b/src/qca.mk
@@ -26,4 +26,11 @@ define $(PKG)_BUILD
-DQCA_MAN_INSTALL_DIR="$(BUILD_DIR)/null"
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
+
+ $(if $(BUILD_SHARED), \
+ mkdir '$(BUILD_DIR)/test-qca'
+ 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/')
endef
+