forked from GerhardHoffmann/DCLibraries
Made libCamaster and libCAslave executable so they can output their
respective version info.
This commit is contained in:
parent
c2aa6f9d39
commit
407e25233c
@ -2,6 +2,7 @@ CONFIG += plugin
|
||||
QT -= gui
|
||||
QT += widgets serialport
|
||||
|
||||
|
||||
win32 {
|
||||
BUILD_DATE=$$system("date /t")
|
||||
BUILD_TIME=$$system("time /t")
|
||||
@ -29,10 +30,26 @@ DEFINES+=APP_EXTENDED_VERSION=\\\"$$EXTENDED_VERSION\\\"
|
||||
# keep comments, as /* fall through */
|
||||
QMAKE_CXXFLAGS += -C
|
||||
# _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
|
||||
QMAKE_CXXFLAGS += -O
|
||||
QMAKE_CXXFLAGS += -O2 -O
|
||||
QMAKE_CXXFLAGS += -g
|
||||
QMAKE_CXXFLAGS += -Wno-deprecated-copy
|
||||
|
||||
QMAKE_LFLAGS += -Wl,-e,main
|
||||
|
||||
gccmain.input = SOURCES_MAIN
|
||||
gccmain.output = main.o
|
||||
gccmain.commands = \
|
||||
$$QMAKE_CXX -c $$PWD/src/main.cpp -o main.o -fPIC -O0 -DAPP_VERSION=\\\"$$VERSION\\\" \
|
||||
-DAPP_BUILD_DATE=\\\"$$BUILD_DATE\\\" \
|
||||
-DAPP_BUILD_TIME=\\\"$$BUILD_TIME\\\" \
|
||||
-DAPP_EXTENDED_VERSION=\\\"$$EXTENDED_VERSION\\\" \
|
||||
-I. \
|
||||
-I../../DCLibraries/include \
|
||||
-I/opt/ptu5/opt/phytec-yogurt/i.MX6-thud-PCM058-KSP30-ATB-PTU5-2019-10-30/sysroots/cortexa9t2hf-neon-phytec-linux-gnueabi/usr/include/
|
||||
|
||||
QMAKE_EXTRA_COMPILERS += gccmain
|
||||
SOURCES_MAIN += $$PWD/src/main.cpp
|
||||
|
||||
# default
|
||||
ARCH = PTU5
|
||||
CONFIG += PTU5
|
||||
@ -80,9 +97,8 @@ HEADERS += \
|
||||
|
||||
SOURCES += \
|
||||
$${PWD}/src/com.cpp \
|
||||
$$PWD/src/datei.cpp \
|
||||
$$PWD/src/runProc.cpp \
|
||||
$$PWD/src/main.cpp \
|
||||
$${PWD}/src/datei.cpp \
|
||||
$${PWD}/src/runProc.cpp \
|
||||
$${PWD}/src/controlBus.cpp \
|
||||
$${PWD}/src/datIf.cpp \
|
||||
$${PWD}/src/dcBL.cpp \
|
||||
|
Loading…
Reference in New Issue
Block a user