Initial library build

This commit is contained in:
2026-03-31 11:51:21 +01:00
commit e7a8166db2
9 changed files with 833 additions and 0 deletions

19
CopyHeaders.pri Normal file
View File

@@ -0,0 +1,19 @@
# Copy headers to output:
win32 {
include_headers.commands = "$$QMAKE_MKDIR $$shell_path($$OUT_PWD/include/$$PROJECT_NAME)"
for (f, HEADERS): \
include_headers.commands += "$$QMAKE_COPY $$shell_path($$absolute_path($$f, $$_PRO_FILE_PWD_)) $$shell_path($$OUT_PWD/include/$$PROJECT_NAME/)"
write_file($$OUT_PWD/copy_headers.bat, include_headers.commands)
QMAKE_CLEAN += -r $$OUT_PWD/include/
QMAKE_POST_LINK += $$OUT_PWD/copy_headers.bat
}
unix {
include_headers.commands = $$QMAKE_MKDIR $$shell_path($$OUT_PWD/include/$$PROJECT_NAME)
for (f, HEADERS): \
include_headers.commands += ; $$QMAKE_COPY $$shell_path($$absolute_path($$f, $$_PRO_FILE_PWD_)) $$shell_path($$OUT_PWD/include/$$PROJECT_NAME/)
QMAKE_CLEAN += -r $$OUT_PWD/include/
QMAKE_EXTRA_TARGETS += include_headers
QMAKE_POST_LINK += make include_headers
}