Auto generate Windows rc file.

This commit is contained in:
Leonardo Zide 2020-04-18 10:20:20 -07:00
parent b27ef52025
commit cde5db25fe
3 changed files with 19 additions and 9 deletions

1
.gitignore vendored
View file

@ -30,5 +30,6 @@ Debug*
Makefile
library.bin
leocad_plugin_import.cpp
leocad_resource.*
uic_wrapper.bat
/tools/setup/*.exe

View file

@ -17,7 +17,15 @@ INCLUDEPATH += qt common
CONFIG += precompile_header incremental c++11 force_debug_info
win32 {
RC_FILE = qt/leocad.rc
RC_ICONS = resources/leocad.ico
VERSION = 19.7.1.0
QMAKE_TARGET_COMPANY = LeoCAD Software
QMAKE_TARGET_DESCRIPTION = LeoCAD
QMAKE_TARGET_COPYRIGHT = "Copyright (C) LeoCAD.org"
QMAKE_TARGET_PRODUCT = LeoCAD
RC_CODEPAGE = 1252
RC_LANG = 0x0409
LIBS += -lwininet
}
win32-msvc* {
@ -73,6 +81,8 @@ APPVEYOR_REPO_COMMIT = $$(APPVEYOR_REPO_COMMIT)
!isEmpty(APPVEYOR_REPO_COMMIT) {
isEmpty(APPVEYOR_REPO_TAG) {
DEFINES += "LC_CONTINUOUS_BUILD=$$system(git rev-parse --short HEAD)"
VERSION = 0.0.0.1
QMAKE_TARGET_DESCRIPTION = "LeoCAD Continuous Build $$system(git rev-parse --short HEAD)"
}
}

View file

@ -1 +0,0 @@
IDI_ICON1 ICON DISCARDABLE "../resources/leocad.ico"