From d9cb646dd949ef18984f4d858df592586c04b5bd Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 22 Sep 2015 01:48:37 +0200 Subject: [PATCH] set meta data (win32) --- c++utilities.pro | 6 +++++- general.pri | 12 ++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/c++utilities.pro b/c++utilities.pro index e4d7f22..12a4c96 100644 --- a/c++utilities.pro +++ b/c++utilities.pro @@ -1,5 +1,8 @@ projectname = c++utilities -VERSION = 2.0.0 +appname = "C++ Utilities" +appauthor = Martchus +QMAKE_TARGET_DESCRIPTION = "Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities." +VERSION = 2.0.1 # include ../../common.pri when building as part of a subdirs project; otherwise include general.pri !include(../../common.pri) { @@ -8,6 +11,7 @@ VERSION = 2.0.0 } } +TEMPLATE = lib CONFIG -= qt CONFIG += shared diff --git a/general.pri b/general.pri index 9b062bc..60bf445 100644 --- a/general.pri +++ b/general.pri @@ -1,5 +1,3 @@ -# template -TEMPLATE = lib #dirs UI_DIR = ./gui MOC_DIR = ./moc @@ -75,7 +73,11 @@ guiqtwidgets { DEFINES += GUI_QTWIDGETS DEFINES += MODEL_UNDO_SUPPORT } -# configuration for cross compliation with mingw-w64 +# Windows stuff: configuration for cross compliation with mingw-w64 +win32 { + QMAKE_TARGET_PRODUCT = "$${appname}" + QMAKE_TARGET_COPYRIGHT = "by $${appauthor}" +} mingw-w64-manualstrip-dll { QMAKE_POST_LINK=$${CROSS_COMPILE}strip --strip-unneeded ./release/$(TARGET); \ $${CROSS_COMPILE}strip --strip-unneeded ./release/lib$(TARGET).a @@ -84,5 +86,7 @@ mingw-w64-manualstrip-exe { QMAKE_POST_LINK=$${CROSS_COMPILE}strip --strip-unneeded ./release/$(TARGET) } mingw-w64-noversion { - VERSION = "" + TARGET_EXT = ".dll" + TARGET_VERSION_EXT = "" + CONFIG += skip_target_version_ext }