2017-04-20 02:50:12 +03:00
#-------------------------------------------------
#
# Project created by QtCreator 2013 - 05 - 10 T22 : 49 : 41
#
#-------------------------------------------------
2017-05-11 21:45:36 +03:00
QT += core gui
2017-04-20 02:50:12 +03:00
2017-05-08 19:59:37 +03:00
greaterThan ( QT_MAJOR_VERSION , 4 ) : QT += widgets printsupport multimedia
2017-04-20 02:50:12 +03:00
2019-08-26 03:23:19 +03:00
CONFIG += exceptions_off warn_on
2017-08-25 18:07:32 +03:00
2017-04-20 02:50:12 +03:00
TARGET = ponyprog
TEMPLATE = app
DESTDIR = build
OBJECTS_DIR = $ $ DESTDIR /. obj
MOC_DIR = $ $ DESTDIR /. moc
RCC_DIR = $ $ DESTDIR /. qrc
UI_DIR = $ $ DESTDIR /. ui
2019-09-03 17:14:48 +03:00
RC_ICONS = icons / ponyprog . ico
2017-05-10 22:54:09 +03:00
APP_NAME = "PonyProg"
APP_LOW_NAME = "ponyprog"
APP_LOW_H_NAME = ".ponyprog"
APP_AUTHOR = "Claudio Lanconelli"
2020-02-05 18:59:24 +03:00
APP_COPYRIGHT = "(C) 1997-2020 $$APP_AUTHOR"
APP_VERSION = "3.1.1"
2017-05-16 18:09:48 +03:00
# APP_BUILD_DATE = $ $ _ DATE_
2017-05-10 22:54:09 +03:00
APP_LONG_NAME = "$$APP_NAME $$APP_VERSION"
APP_EMAIL = "PonyProg2000@gmail.com"
APP_URL = "https://github.com/lancos/ponyprog/"
APP_URL_ISSUES = "https://github.com/lancos/ponyprog/issues"
APP_URL_WIKI = "https://github.com/lancos/ponyprog/wiki"
2017-05-11 21:45:36 +03:00
APP_USERAGENT = "PonyProg/$$APP_VERSION (github.com/lancos/ponyprog)"
# replace it with yours info for donates
2017-05-10 22:54:09 +03:00
# APP_DONATE_URL = "https://goo.gl/YFVJ0j"
2017-05-16 18:09:48 +03:00
win32 {
APP_BUILD_DATE = $ $ system ( date / t )
2017-05-19 12:24:12 +03:00
} else {
2017-05-16 18:09:48 +03:00
APP_BUILD_DATE = $ $ system ( date + %d-%m-%Y)
}
2017-04-20 02:50:12 +03:00
# TODO : please check this
win32 : INCLUDEPATH += $ $ PWD / windows
win32 : DEPENDPATH += $ $ PWD / windows
win64 : INCLUDEPATH += $ $ PWD / windows
2017-05-11 21:45:36 +03:00
win64 : DEPENDPATH += $ $ PWD / windows
# TODO : please add this for macx
# macx
# in case of manually installations , not from repositories
unix : INCLUDEPATH +=/ usr / local / include /
2017-04-20 02:50:12 +03:00
2017-05-11 21:45:36 +03:00
CODECFORTR = UTF - 8
CODECFORSRC = UTF - 8
exists ( . git ) {
APP_REVISION = $ $ system ( git rev - parse -- short HEAD )
}
isEmpty ( APP_REVISION ) {
APP_REVISION = ""
}
message ( ponyprog : PonyProg version is : \ " $ $ APP_VERSION \ " )
message ( ponyprog : Detected Qt version : \ " $ $ QT_VERSION \ " )
message ( ponyprog : Build destination directory : \ " $ $ DESTDIR \ " )
message ( ponyprog : Prefix directory : \ " $ $ PREFIX \ " )
message ( ponyprog : Build revision : \ " $ $ APP_REVISION \ " )
2017-08-25 18:07:32 +03:00
# message ( ponyprog : lrelease executable name : \ " $ $ LRELEASE_EXECUTABLE \ " )
2017-05-11 21:45:36 +03:00
# to add automatically in the source code
VERSION = $ $ APP_VERSION
2017-05-19 12:24:12 +03:00
versionconfig . input = SrcPony / version - qmake . h . in
versionconfig . output = $ $ PWD / SrcPony / version . h
2017-05-16 18:09:48 +03:00
QMAKE_SUBSTITUTES += versionconfig
# VERSION_FILE = $ $ OUT_PWD / SrcPony / version . h
2017-05-15 22:38:50 +03:00
# write_file . . .
2017-05-11 21:45:36 +03:00
win32 {
# Makes sure we use correct subsystem on Windows .
2017-05-12 13:44:45 +03:00
# ! contains ( QMAKE_TARGET . arch , x86_64 ) {
# message ( rssguard : Compilling x86 variant . )
# QMAKE_LFLAGS_WINDOWS = / SUBSYSTEM : WINDOWS , 5.01
# } else {
# message ( rssguard : Compilling x86_64 variant . )
# QMAKE_LFLAGS_WINDOWS = / SUBSYSTEM : WINDOWS , 5.02
# }
# QMAKE_TARGET_COMPANY = $ $ APP_AUTHOR
# QMAKE_TARGET_DESCRIPTION = $ $ APP_NAME
# QMAKE_TARGET_COPYRIGHT = $ $ APP_COPYRIGHT
# QMAKE_TARGET_PRODUCT = $ $ APP_NAME
2017-05-11 21:45:36 +03:00
}
2017-04-20 02:50:12 +03:00
INCLUDEPATH += qhexedit2 / src
SOURCES += SrcPony / aboutmdlg . cpp \
SrcPony / main . cpp \
SrcPony / e2app . cpp \
SrcPony / at25xxx . cpp \
SrcPony / at93cbus . cpp \
SrcPony / crc . cpp \
SrcPony / e24xx - 1. cpp \
SrcPony / e24xx - 2. cpp \
SrcPony / e24xx . cpp \
SrcPony / e24xx - 5. cpp \
SrcPony / e2profil . cpp \
SrcPony / fusemdlg . cpp \
2017-06-14 23:39:24 +03:00
SrcPony / bitfield . cpp \
2017-05-30 18:41:39 +03:00
SrcPony / blockmdlg . cpp \
2017-04-20 02:50:12 +03:00
SrcPony / intfbuf . cpp \
SrcPony / lpt_io_interf . cpp \
SrcPony / pgminter . cpp \
SrcPony / picbus . cpp \
SrcPony / progoption . cpp \
SrcPony / sernumdlg . cpp \
SrcPony / x2444 . cpp \
SrcPony / at17xxx . cpp \
SrcPony / at89sbus . cpp \
SrcPony / at93cxx8 . cpp \
SrcPony / csmfbuf . cpp \
SrcPony / e2cmdw . cpp \
SrcPony / e2awinfo . cpp \
SrcPony / easyi2c_interf . cpp \
SrcPony / i2cbus . cpp \
SrcPony / ispinterf . cpp \
SrcPony / microbus . cpp \
SrcPony / pic125xx . cpp \
SrcPony / picbusnew . cpp \
SrcPony / spi - bus . cpp \
SrcPony / at250bus2 . cpp \
SrcPony / at89sxx . cpp \
SrcPony / at93cxx . cpp \
SrcPony / device . cpp \
SrcPony / eeptypes . cpp \
SrcPony / imbus . cpp \
SrcPony / linuxsysfsint . cpp \
SrcPony / pic12bus . cpp \
SrcPony / ponyioint . cpp \
SrcPony / rs232int . cpp \
SrcPony / at250bus . cpp \
SrcPony / at90sbus . cpp \
SrcPony / binfbuf . cpp \
SrcPony / dt006interf . cpp \
SrcPony / e2dlg . cpp \
SrcPony / filebuf . cpp \
SrcPony / infomdlg . cpp \
SrcPony / lpt_ext_interf . cpp \
SrcPony / motsfbuf . cpp \
SrcPony / pic168xx . cpp \
SrcPony / portint . cpp \
SrcPony / sde2506 . cpp \
SrcPony / wait . cpp \
SrcPony / at250xx . cpp \
SrcPony / at90sxx . cpp \
SrcPony / busio . cpp \
SrcPony / e2401 . cpp \
SrcPony / e2pfbuf . cpp \
SrcPony / filldlg . cpp \
SrcPony / interfconv . cpp \
SrcPony / lptinterf . cpp \
2019-03-01 10:54:18 +03:00
SrcPony / mpsse_interf . cpp \
2017-04-20 02:50:12 +03:00
SrcPony / nvm3060 . cpp \
SrcPony / pic16xx . cpp \
SrcPony / x2444bus . cpp \
SrcPony / sdebus . cpp \
2017-05-01 23:36:48 +03:00
SrcPony / Translator . cpp \
2019-08-17 20:53:08 +03:00
SrcPony / usbwatcher . cpp \
2019-08-25 02:30:03 +03:00
SrcPony / prefdialog . cpp \
2017-04-20 02:50:12 +03:00
qhexedit2 / src / chunks . cpp \
qhexedit2 / src / commands . cpp \
2019-08-25 02:30:03 +03:00
qhexedit2 / src / qhexedit . cpp
2017-04-20 02:50:12 +03:00
HEADERS += SrcPony / e2app . h \
SrcPony / e2awinfo . h \
SrcPony / e2cmdw . h \
SrcPony / globals . h \
SrcPony / device . h \
SrcPony / microbus . h \
SrcPony / aboutmdlg . h \
SrcPony / at25xxx . h \
SrcPony / at93cbus . h \
SrcPony / busio . h \
SrcPony / dt006interf . h \
SrcPony / e24xx . h \
SrcPony / e2dlg . h \
SrcPony / eeptypes . h \
SrcPony / ispinterf . h \
SrcPony / lpt_io_interf . h \
SrcPony / pgminter . h \
SrcPony / picbus . h \
SrcPony / sde2506 . h \
SrcPony / at17xxx . h \
SrcPony / at89sbus . h \
SrcPony / at93cxx8 . h \
SrcPony / e2401 . h \
SrcPony / e2pfbuf . h \
SrcPony / errcode . h \
SrcPony / i2cbus . h \
SrcPony / jdminter . h \
SrcPony / pic125xx . h \
SrcPony / picbusnew . h \
SrcPony / progoption . h \
SrcPony / sdebus . h \
SrcPony / types . h \
SrcPony / at250bus2 . h \
SrcPony / at89sxx . h \
SrcPony / at93cxx . h \
SrcPony / crc . h \
SrcPony / e24xx - 1. h \
SrcPony / e2phead . h \
SrcPony / filebuf . h \
SrcPony / imbus . h \
SrcPony / linuxsysfsint . h \
SrcPony / pic12bus . h \
SrcPony / ponyioint . h \
SrcPony / resource . h \
SrcPony / sernumdlg . h \
SrcPony / wait . h \
SrcPony / at250bus . h \
SrcPony / at90sbus . h \
SrcPony / binfbuf . h \
SrcPony / csmfbuf . h \
SrcPony / e24xx - 2. h \
SrcPony / e2profil . h \
SrcPony / filldlg . h \
SrcPony / infomdlg . h \
SrcPony / lpt_ext_interf . h \
SrcPony / motsfbuf . h \
SrcPony / pic168xx . h \
SrcPony / portint . h \
SrcPony / spi - bus . h \
SrcPony / x2444bus . h \
SrcPony / at250xx . h \
SrcPony / at90sxx . h \
SrcPony / businter . h \
SrcPony / e24xx - 5. h \
SrcPony / easyi2c_interf . h \
SrcPony / fusemdlg . h \
2017-06-14 23:39:24 +03:00
SrcPony / bitfield . h \
2017-05-30 18:41:39 +03:00
SrcPony / blockmdlg . h \
2017-04-20 02:50:12 +03:00
SrcPony / intfbuf . h \
SrcPony / lptinterf . h \
2019-03-01 10:54:18 +03:00
SrcPony / mpsse_interf . h \
2017-04-20 02:50:12 +03:00
SrcPony / nvm3060 . h \
SrcPony / pic16xx . h \
SrcPony / ppuser . h \
SrcPony / rs232int . h \
SrcPony / x2444 . h \
2017-05-01 23:36:48 +03:00
SrcPony / Translator . h \
2019-08-15 21:01:41 +03:00
SrcPony / interfconv . h \
2019-08-17 20:53:08 +03:00
SrcPony / usbwatcher . h \
2019-08-25 02:30:03 +03:00
SrcPony / prefdialog . h \
2017-04-20 02:50:12 +03:00
qhexedit2 / src / chunks . h \
qhexedit2 / src / commands . h \
qhexedit2 / src / qhexedit . h
2017-06-14 20:54:21 +03:00
FORMS += SrcPony / forms / aboutdlg . ui \
2017-04-20 02:50:12 +03:00
SrcPony / forms / editdlg . ui \
2017-06-14 20:54:21 +03:00
SrcPony / forms / bitfield . ui \
2017-04-20 02:50:12 +03:00
SrcPony / forms / notesdlg . ui \
SrcPony / forms / e2dlg . ui \
SrcPony / forms / fusedlg . ui \
SrcPony / forms / mainwindow . ui \
SrcPony / forms / osccalibr . ui \
SrcPony / forms / progoption . ui \
2019-08-25 02:30:03 +03:00
SrcPony / forms / sernumcfg . ui \
2019-08-26 03:23:19 +03:00
SrcPony / forms / prefdialog . ui
2017-04-20 02:50:12 +03:00
2017-05-11 21:45:36 +03:00
# for next version , when script for ts files convertion is implemented
# TRANSLATIONS += localization / qtbase_cs . ts
2017-10-17 14:36:05 +03:00
2017-04-20 02:50:12 +03:00
# TODO : please check this
2017-05-12 13:44:45 +03:00
# win32 : LIBS += - L $ $ PWD / windows /
# win64 : LIBS += - L $ $ PWD / windows /
2017-04-20 02:50:12 +03:00
# TODO : please add this for macx
# macx : LIBS +=
2017-05-11 21:45:36 +03:00
# in case of manually installations , not from repositories
unix : ! macx : LIBS += - L / usr / local / lib
2019-03-01 13:53:11 +03:00
# libftdi
unix : ! macx : QMAKE_CXXFLAGS += $ $ system ( pkg - config libftdipp1 -- cflags )
unix : ! macx : LIBS += $ $ system ( pkg - config libftdipp1 -- libs )
2017-04-20 02:50:12 +03:00
2019-04-05 02:50:40 +03:00
# win32 : FTDIPATH = c : / libftdi1 - 1.4 _ devkit_mingw32_24June2018
win32 : FTDIPATH = c : / libftdi1 - 1.4 git_devkit_x86_x64_14June2018
win32 : QMAKE_CXXFLAGS += - I $ $ FTDIPATH / include / libftdi - I $ $ FTDIPATH / include / libusb - 1.0 - I $ $ FTDIPATH / include
win32 : LIBS += - L $ $ FTDIPATH / lib32 - lftdipp1 - lftdi1 - lusb - 1.0
2017-05-11 21:45:36 +03:00
# # Make sure QM translations are generated .
# lrelease . input = TRANSLATIONS
# lrelease . output = $ $ OUT_PWD / translations / $ { QMAKE_FILE_BASE } . qm
# lrelease . commands = $ $ LRELEASE_EXECUTABLE - compress $ { QMAKE_FILE_IN } - qm $ $ OUT_PWD / translations / $ { QMAKE_FILE_BASE } . qm
# lrelease . CONFIG += no_link target_predeps
2017-04-20 02:50:12 +03:00
2017-05-11 21:45:36 +03:00
# # Create new "make lupdate" target .
# lupdate . target = lupdate
# lupdate . commands = lupdate $ $ shell_path ( $ $ PWD / rssguard . pro ) - ts $ $ shell_path ( $ $ TRANSLATIONS_WO_QT )
#
# QMAKE_EXTRA_TARGETS += lupdate
# QMAKE_EXTRA_COMPILERS += lrelease
2017-04-20 02:50:12 +03:00
RESOURCES += SrcPony / ponyprog . qrc
2017-05-08 19:02:09 +03:00
CONFIG ( debug , debug | release ) {
# debug configuration
# QMAKE_CXXFLAGS_DEBUG += . . .
} else {
# release configuration
2017-08-26 16:34:08 +03:00
# QMAKE_CXXFLAGS_RELEASE -= - O2
# QMAKE_CXXFLAGS_RELEASE += - O3
# QMAKE_CXXFLAGS_RELEASE += - fno - exceptions - fno - rtti
2017-05-11 21:45:36 +03:00
DEFINES += QT_NO_DEBUG_OUTPUT QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
2017-05-08 19:02:09 +03:00
}
2017-05-12 13:44:45 +03:00
# - Wall are already on the command line ( where does it come from ? )
2017-06-01 19:37:51 +03:00
# for old GCC - std = c ++ 11 move to - std = c ++ 0 x
2017-08-26 16:34:08 +03:00
QMAKE_CXXFLAGS += - Wno - unused - parameter
2017-08-26 17:07:24 +03:00
unix : QMAKE_CXXFLAGS += - std = c ++ 11
2017-05-08 19:02:09 +03:00
2017-05-15 19:03:36 +03:00
# EK 2017
2017-05-11 21:45:36 +03:00
win32 {
2017-08-25 18:07:32 +03:00
target . path = $ $ PWD / distribution / innosetup
ponydeploy . path = $ $ PWD / distribution / innosetup
ponydeploy . extra = windeployqt -- no - angle -- no - opengl - sw -- release -- list relative $ $ PWD / distribution / innosetup / $ { TARGET }
lang . path = $ $ PWD / distribution / innosetup / lang
lang . files = lang /*
2017-08-26 16:34:08 +03:00
inpoutdll . path = $ $ PWD / distribution / innosetup
inpoutdll . files = InpOutLib / Win32 / inpout32 . dll
inpoutexe . path = $ $ PWD / distribution / innosetup
inpoutexe . files = InpOutLib / InstallDriver / InstallDriver . exe
2017-08-25 18:07:32 +03:00
# DEPLOY_TARGET = $ $ shell_quote ( $ $ shell_path ( $ $ { OUT_PWD } / release / $ $ { TARGET } $ $ { TARGET_CUSTOM_EXT } ) )
# isEmpty ( QTDIR ) : QTDIR = "c:/Qt/Qt$$QT_VERSION/$$QT_VERSION/mingw530_32"
# isEmpty ( MINGWDIR ) : MINGWDIR = "c:/Qt/Qt$$QT_VERSION/Tools/mingw530_32"
2017-05-11 21:45:36 +03:00
isEmpty ( ISCC ) : ISCC = " c : \ Program Files \ Inno Setup 5 \ ISCC . exe "
2017-05-16 02:17:55 +03:00
2017-08-25 18:07:32 +03:00
# message ( ponyprog : MINGWdir : \ " $ $ MINGWDIR \ " )
message ( ponyprog : ISCCdir : \ " $ $ ISCC \ " )
win32setup . depends = install
2017-05-11 21:45:36 +03:00
win32setup . target = win32setup
2017-05-16 02:17:55 +03:00
win32setup . commands = $ $ ISCC / DAPPNAME = $ $ APP_NAME \
2017-05-15 19:03:36 +03:00
/ DAPPVERSION = $ $ APP_VERSION \
2017-05-16 02:17:55 +03:00
/ DAPPCOPYRIGHT =\ " $ $ APP_COPYRIGHT \ " \
$ $ PWD / distribution / innosetup / ponyprog . iss
2017-05-11 21:45:36 +03:00
QMAKE_EXTRA_TARGETS += win32setup
2017-08-25 18:07:32 +03:00
2017-08-26 16:34:08 +03:00
INSTALLS += target lang inpoutexe inpoutdll ponydeploy
2017-08-25 18:07:32 +03:00
# QMAKE_POST_LINK = windeployqt -- no - angle -- no - opengl - sw -- release -- list relative $ { TARGET }
2017-05-11 21:45:36 +03:00
}
2017-05-15 19:03:36 +03:00
2017-05-11 21:45:36 +03:00
# Install all files on Linux .
unix : ! mac {
target . path = $ $ PREFIX / bin
misc_texts . files = $ $ TEXTS
misc_texts . path = $ $ quote ( $ $ PREFIX / share / $ $ TARGET / information / )
desktop_file . files = desktop / $ $ { TARGET } . desktop
desktop_file . path = $ $ quote ( $ $ PREFIX / share / applications / )
translations . files = $ $ OUT_PWD / lang
translations . path = $ $ quote ( $ $ PREFIX / share / $ $ TARGET / lang / )
INSTALLS += target misc_texts \
desktop_file translations
}
mac {
CONFIG -= app_bundle
target . path = $ $ quote ( $ $ PREFIX / Contents / MacOs / )
misc_texts . files = $ $ TEXTS
misc_texts . path = $ $ quote ( $ $ PREFIX / Contents / Resources / information / )
translations . files = $ $ OUT_PWD / lang
translations . path = $ $ quote ( $ $ PREFIX / Contents / Resources / lang / )
INSTALLS += target misc_texts translations
}