summaryrefslogtreecommitdiffstats
path: root/src/qca.mk
diff options
context:
space:
mode:
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