summaryrefslogtreecommitdiffstats
path: root/config.tests/arch/write_info.pri
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/arch/write_info.pri')
-rw-r--r--config.tests/arch/write_info.pri17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.tests/arch/write_info.pri b/config.tests/arch/write_info.pri
new file mode 100644
index 0000000000..79f980c873
--- /dev/null
+++ b/config.tests/arch/write_info.pri
@@ -0,0 +1,17 @@
+targetinfofile = $$basename(_PRO_FILE_)
+targetinfofile ~= s/pro$/target.txt/
+
+win32 {
+ ext = .exe
+} else:android {
+ file_prefix = lib
+ ext = .so
+} else:wasm {
+ equals(WASM_OBJECT_FILES, 1): \
+ ext = .o
+ else: \
+ ext = .wasm
+}
+
+content = $${file_prefix}$${TARGET}$${ext}
+write_file($$OUT_PWD/$$targetinfofile, content)